-
-
Notifications
You must be signed in to change notification settings - Fork 138
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Driver fail on enums with empty string #147
Comments
Issue persists with the 21.9.4.35 as well |
I suspect enum.Enum('%s_enum' % name, options) can't build a Enum object if SQL enum contains an empty string, which the case for https://clickhouse.com/docs/en/getting-started/example-datasets/cell-towers/ |
It is just about that python can't have empty string as Enum name. There is no easy way to do so, so you need to alter schema and rename '' enum key in ClickHouse. |
It's Python's |
Describe the bug
Driver fail on Enums with empty string.
To Reproduce
Populate clickhouse with https://clickhouse.com/docs/en/getting-started/example-datasets/cell-towers/
CREATE TABLE cell_towers
(
radio Enum8('' = 0, 'CDMA' = 1, 'GSM' = 2, 'LTE' = 3, 'NR' = 4, 'UMTS' = 5),
....
)
Install apache superset and try to "Add dataset"
Expected behavior
Should work with an empty string in Enums.
Versions
clickhouse-sqlalchemy latest from git
Python version 3.9.2
The text was updated successfully, but these errors were encountered: