-
Notifications
You must be signed in to change notification settings - Fork 13k
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
Querying data from Clickhouse - ValueError: no field of name #15881
Comments
Hi @etadelta222, Based on your URL you are using the sqlalchemy-clickhouse driver, which is not maintained. Please switch to the clickhouse-sqlalchemy driver by changing to the correct URL. (Yes the name is confusing.) Your URL should look like the following: clickhouse+native://{username}:{password}@{hostname}:{port}/{database} Let me know if you still see the error there. |
Thanks @hodgesrm, I actually did install clickhouse-sqlalchemy (copied the command directly from the blog during install). I did expect the URI to be |
When you say clickhouse+native "didn't work" what exactly does that mean? Did the connection fail and if so what error message did you see in the log? You are able to connect to the github endpoint so that indicates the packages are correctly installed and Superset is seeing them. |
See this: |
Thanks for sharing that @save-my-heart! We were able to install clickhouse-sqlalchemy from master with the fix (in your link) and now I'm getting result in Superset. One thing which is still strange is that the clickhouse+native option is not working. I'm just using default http. |
when you are using |
Based on the comments above, this one sounds resolved. Let me know if that's not the case, and we can re-open with updated context. |
Installed the clickhouse-sqlalchemy driver per Altinity blog
Created user in Clickhouse and granted select on db per Altinity blog.
Clickhouse is single cluster version
Connected to Clickhouse via Superset using URI:
clickhouse://{username}:{password}@{hostname}:{port}/{database}
Successfully connected and am able to see the schema and tables. When I tried to query a table I did not see any result. When I query same table using DBeaver, logged in as the same user the query returns results. When I tried to use the PREVIEW: [table name] I get an error (below).
I checked the superset log and see this error:
I was able to query the system.errors table in Clickhouse but the result set didn't show the header.
It's capturing error code 192, UNKNOWN_USER: There is no user
superset user
in users.xmlExpected results
I expected the query to return result set.
How to reproduce the bug
create user:
create table:
Environment
(please complete the following information):
clickhouse-driver==0.2.1
clickhouse-sqlalchemy==0.1.6
Checklist
Make sure to follow these steps before submitting your issue - thank you!
Additional context
I posted about this in Superset slack channel and Robert Hodges suggested i create an issue. It might actually be a Clickhouse bug.
The text was updated successfully, but these errors were encountered: