Skip to content
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

Date columns not working in Tableau (Delta table) #421

Open
kutny opened this issue May 24, 2023 · 1 comment
Open

Date columns not working in Tableau (Delta table) #421

kutny opened this issue May 24, 2023 · 1 comment

Comments

@kutny
Copy link

kutny commented May 24, 2023

Hi, I have a delta table on AWS S3 created using your tutorial https://clickhouse.com/docs/en/engines/table-engines/integrations/deltalake

When using date columns in my Tableau dashboard, an error is triggered:

An error occurred while communicating with the Altinity ODBC ClickHouse by Altinity Inc data source 'jaffle_shop_orders+ (default)'
Bad Connection: Tableau could not connect to the data source.
Error Code: B19090E0
HTTP status code: 500
Received error:
Poco::Exception. Code: 1000, e.code() = 0, Exception: Cannot load time zone yyyy-MM-dd (version 23.4.2.11 (official build))


Connector Class: clickhouse_odbc, Version: 1.3
SELECT SUM(1) AS "cnt:jaffle_shop_orders_242FEC23DF364F49BAFF64BFECA94E47:ok",
  CAST(toYear((CASE WHEN (NOT isNull(toDate(parseDateTimeBestEffortOrNull(CAST("jaffle_shop_orders"."ORDER_DATE" AS Nullable(String)), 'yyyy-MM-dd')))) THEN toDate(parseDateTimeBestEffortOrNull(CAST("jaffle_shop_orders"."ORDER_DATE" AS Nullable(String)), 'yyyy-MM-dd')) WHEN (NOT isNull(toDate(parseDateTimeBestEffortOrNull(CAST("jaffle_shop_orders"."ORDER_DATE" AS Nullable(String)))))) THEN toDate(parseDateTimeBestEffortOrNull(CAST("jaffle_shop_orders"."ORDER_DATE" AS Nullable(String)))) ELSE NULL END)) AS Nullable(INTEGER)) AS "yr:ORDER_DATE:ok"
FROM "jaffle_shop_orders"
GROUP BY CAST(toYear((CASE WHEN (NOT isNull(toDate(parseDateTimeBestEffortOrNull(CAST("jaffle_shop_orders"."ORDER_DATE" AS Nullable(String)), 'yyyy-MM-dd')))) THEN toDate(parseDateTimeBestEffortOrNull(CAST("jaffle_shop_orders"."ORDER_DATE" AS Nullable(String)), 'yyyy-MM-dd')) WHEN (NOT isNull(toDate(parseDateTimeBestEffortOrNull(CAST("jaffle_shop_orders"."ORDER_DATE" AS Nullable(String)))))) THEN toDate(parseDateTimeBestEffortOrNull(CAST("jaffle_shop_orders"."ORDER_DATE" AS Nullable(String)))) ELSE NULL END)) AS Nullable(INTEGER))

Tableau schreenshot:

tablea_error

Delta table schema (from Databricks):

jaffle_shop_orders

@kutny
Copy link
Author

kutny commented May 24, 2023

Ok, works fine with the JDBC driver mentioned in your tutorial https://clickhouse.com/docs/en/integrations/tableau

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant