-
Notifications
You must be signed in to change notification settings - Fork 6
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
"Sets" seems not to be recognized with this last connector version (ClickHouse by Altinity Inc) #19
Comments
@Fred5778 |
Hi, the problem is that there is not SQL generated, even if a refresh the data source! In fact, as I tried to explain, when I use "ClickHouse by Altinity Inc", I have access to "sets", but all the calculated fields based on "sets" contains errors. I'am going to use the older odbc connexion, to show you that the calculation based on "sets" are OK : but the calculated fields based on "sets" doesn't show errors : In attach file, you will see my SQL Statement (Performance recording) with this last configuration first_query.txt Regards and thanks for your help. |
Hi Dima, Could you have a look to the issue I raised? If I can help you with other tests, do not hesitate. Regards, Fred |
@Fred5778 can you check if "cubedsl_derivecounters_daily_ndi.zipcode" is defined in CH as NULLABLE (field that could contain NULL values)? |
Hi, I'am going to answer you, but I think that you don't focus on the right issue! It describes the tow way of connexion. The second is via the Altinity ClickHouse Tableau Connector. The connector provides metadata that enables Tableau to translate native queries properly to ClickHouse SQL. With the connector, Tableau visualization features can be correctly implemented in ClickHouse." The problem : If I use the second way of connexion : No SQL Query is sent!. I have this problem I tried to explain you namely, all the calculated fields based on declared sets are in errors! Perhaps this is because, I set a wrong port in the connexion definition : 8123 instead of 8443. If I set the port 8443, I get this message : witch port do I have to set in the connexion? Nevertheless, I give you what you asked me : CREATE TABLE qoe_fixe.cubedsl_derivecounters_daily_ndi Regards, Fred |
Hi @Fred5778 sorry, I didnt get initially where the problem is. I thought problem was in wrong SQL. I would offer you to go this way. You already posted table DDL. If you could send me
then I will try to reproduce it on my local env. |
Hi,
I have tried your new connector with the hope it would correct limitations because Tableau does not understand the ClickHouse SQL dialect.
Before I had a several limitations and issues with JOIN ON syntax and LOD expressions as FIXED, INCLUDE etc.
for example :
Une erreur s'est produite lors de la communication avec la source de données Autres bases de données (ODBC) 'qoe_fixe'
Problème de connexion : Tableau n'a pas pu se connecter à la source de données.
Code d'erreur : B19090E0
HTTP status code: 501
Received error:
Code: 48, e.displayText() = DB::Exception: JOIN ON does not support OR. Unexpected '(zipcode = t0.zipcode) OR (isNull(zipcode) AND isNull(t0.zipcode))': While processing (zipcode = t0.zipcode) OR (isNull(zipcode) AND isNull(t0.zipcode)) (version 21.3.15.4 (official build))
but there were no errors displayed on calculated fields, even if they were based on "sets" etc..
Now, If I used your new connector, I encounter another problem:
It seems that "sets" are not recognized??
For exemple :
In this calculated field I use a set called « Dsl_Indispo_One_Day »
SUM(IIF(CONTAINS([Infra],'o1'),IIF([Dsl_Indispo_One_Day], 1, 0),0)) / SUM(IIF(CONTAINS([Infra],'o1'),1,0))
With the new connector, you can see that it has been replaced by [test] (Why ?) and it is writen that le calculation contains errors.
If I change in the [test] in _%NbIndispoDsl to use a condition instead of the « set », namely :
Instead of
The error disappears.
But, it doesn’t work with an other field.
If I do the same, it leads to an invalid calculation
and my dashboards are not displayed...
Thanks for your help.
Fred
The text was updated successfully, but these errors were encountered: