You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For the nullable enum column (in this case, 'status') Query Builder fails to select the column as is and displays the error message: sql: Scan error on column index 2, name "status": converting NULL to string is unsupported: Could not process SQL results
As a workaround, this can be fixed by manually wrapping the enum column with toString() function in SQL Editor.
Sample table to reproduce:
CREATETABLEtest_nullable_enum
(
timestamp DateTime64,
id String(64),
status Nullable(
Enum(
'Success'=1,
'Fail'=2
)
)
) ENGINE = MergeTree
ORDER BY id;
INSERT INTO test_nullable_enum (timestamp, id, status) VALUES ('2024-04-18 00:00:00.000', 'i0', NULL);
INSERT INTO test_nullable_enum (timestamp, id, status) VALUES ('2024-04-18 11:11:11.000', 'i1', 'Success');
INSERT INTO test_nullable_enum (timestamp, id, status) VALUES ('2024-04-18 22:22:22.000', 'i2', 'Fail');
SELECT*FROM test_nullable_enum;
For the nullable enum column (in this case, 'status') Query Builder fails to select the column as is and displays the error message:
sql: Scan error on column index 2, name "status": converting NULL to string is unsupported: Could not process SQL results
As a workaround, this can be fixed by manually wrapping the enum column with
toString()
function in SQL Editor.Sample table to reproduce:
Screenshots
Environment:
The text was updated successfully, but these errors were encountered: