You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TL;DR: Not officially tested since it requires a license however use the MySQL drivers but with the TDC customization.
Since Starrocks is not fully compatible with MySQL, you can use Tableau data source customization (TDC) files to fine-tune the connection information, making the SQL emitted by Tableau more suitable for StarRocks , thereby improving performance. In addition, custom ODBC parameters can solve some compatibility problems.
TDC file must be suffixed with .tdc (the file name does not matter) and must be placed in the specified directory.
Mac /Users/albert/Documents/My Tableau Repository/Datasources
Windows C:\Users\albert\Documents\My Tableau Repository\Datasources
Save the following as a starrocks_odbc.tdc file in TDC specified directory.
ODBC-connect-string-extras is the ODBC parameter. The default authentication method in MySQL ODBC 8 is caching_sha2_password, which needs to be set to mysql_native_password.
When there is no dimension column and the index column is summed directly, the sql issued cannot hit the rollup table. CAP_QUERY_HAVING_REQUIRES_GROUP_BY can be optimized. the sql is as follows:
Unoptimized
SELECT SUM(`orders`.`sales`) AS `sum_sales_ok`
FROM `orders`
HAVING COUNT(1) > 0
Optimized
SELECT SUM(`orders`.`sales`) AS `sum_sales_ok`
FROM `orders`
GROUP BY 1.1000000000000001
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
TL;DR: Not officially tested since it requires a license however use the MySQL drivers but with the TDC customization.
Since Starrocks is not fully compatible with MySQL, you can use Tableau data source customization (TDC) files to fine-tune the connection information, making the SQL emitted by Tableau more suitable for StarRocks , thereby improving performance. In addition, custom ODBC parameters can solve some compatibility problems.
TDC file must be suffixed with .tdc (the file name does not matter) and must be placed in the specified directory.
Save the following as a starrocks_odbc.tdc file in TDC specified directory.
Why have those settings
Unoptimized
Optimized
Beta Was this translation helpful? Give feedback.
All reactions