-
Notifications
You must be signed in to change notification settings - Fork 186
Tableau: <table>.<column> syntax not supported #213
Comments
Thanks for reporting! I can reproduce the issue from my end. Looking into the code. |
There seems 2 functionality gaps for this issue in our code:
I'm trying to figure out workaround for both. Thanks. |
Thanks for the update, Chen! |
@jordanw-bq I'm going to open a separate issue for support for ordinal in |
@dai-chen From our investigation so far, most if not all queries generated by Tableau have a |
Just to clarify, I meant |
I opened a separate issue #215 for this. Please let us know if you found this support is actually not required for Tableau. |
I tried to apply our existing alias generate rewriter to all queries (previously only to sub query) or use table name as table alias if alias not present. However, both approaches will break many test cases and need more patches elsewhere because:
Based on the troubles I've met, I'm trying to do this in the opposite way - remove table alias prefix for field name in query. This seems a much easier patch for the old codebase and can be done in preprocessing manner without touching many places. Will finish the coding and send out PR once issue #212 be merged. |
This change should take care when multiple tables are passed as part of simple query, because then there would be multiple aliases. I created a separate issue #221 . |
The fix here seems able to fix issue #99 too with minor tweak. Rather than remove table name prefix only when table alias is not present, we may be able to extend the scope of new rewriter to remove table alias prefix for all simple queries too. Making the code changes and verifying if any special case. |
As Abbas reminded, issue #175 may be able to be fixed altogether. Adding new IT to verify. |
This issue is already fixed but need to add IT to double check once #212. |
Using Docker image
amazon/opendistro-for-elasticsearch:1.2.0
Dataset: Flights sample data (loaded through Kibana)
SQL Plugin version: 1.2.0.0
Tableau version: 2019.3
Tableau generated SQL (MySQL dialect):
SELECT `kibana_sample_data_flights`.`Carrier` from `kibana_sample_data_flights` GROUP BY 1
Generated SQL without quotes (#212):
SELECT kibana_sample_data_flights.Carrier from kibana_sample_data_flights GROUP BY 1
Result: No data
Expected Behaviour:
kibana_sample_data_flights.Carrier
should be recognized as a qualified column name (columnCarrier
from thekibana_sample_data_flights
table), rather than a full column name (columnkibana_sample_data_flights.Carrier
from thekibana_sample_data_flights
table).Impact: Since this syntax is used for every Tableau query, all queries to the Elasticsearch data source will fail. This means that the JDBC driver cannot currently be used with Tableau.
The text was updated successfully, but these errors were encountered: