-
Notifications
You must be signed in to change notification settings - Fork 14.3k
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
Superset Clickhouse driver #13285
Comments
@srinify ^ 🙏 |
Hello @suedschwede, I'm testing this case and need some advice on the problem you are seeing. To check datatypes I made a small table and added a row to enable queries.
I can see the effect of syncing columns in the Edit Dataset view. The data types that return are STRING, NULLABLE(STRING), LOWCARDINALITY(STRING), DATETIME, NULLABLE(DATETIME). It looks as if the SQLAlchemy driver is getting these out of system.columns. A couple of questions:
It looks as Sqllite returns standard SQL types by comparison. Thanks! I appended a copy of the Edit Dataset view mentioned above. |
Adding to the original request by @suedschwede, I strongly recommend switching to clickhouse-sqlalchemy as the standard driver for ClickHouse. The reasons for this switch are as follows.
To the extent that there are compatibility issues like the one discussed here, we (Altinity) can get them fixed fairly quickly. We currently recommend clickhouse-sqlalchemy and clickhouse-driver to our users and have made fixes to them in the past, most recently in December. What are the next steps to making this switch? |
We're currently working on improving type inference (#13294). We'll make it top priority to enable this for Clickhouse as soon as possible. |
I have created a temporary fix on my environment It seems that the master branch does not work with clickhouse-sqlalchemy==0.1.6 |
Superset now uses |
Hi @villebro, I see the issue is still happening in the current superset version, is there a fix planned, or HeinzMayer temporary fix the current solution? Thanks! |
At the moment there are two superset drivers "clickhouse-sqlalchemy","sqlalchemy-clickhouse"
There are problems with both drivers and that leads to a lot of questions
sqlalchemy-clickhouse
clickhouse-sqlalchemy
For me the only stable driver is "clickhouse-sqlalchemy" with the native interface
The documentation should recommend "clickhouse-sqlalchemy" instead of "sqlalchemy-clickhouse"
https://superset.apache.org/docs/databases/installing-database-drivers
It would be nice if the columns sync works correctly with "clickhouse-sqlalchemy"
The text was updated successfully, but these errors were encountered: