Time Grain Not Available in Azure Databricks #14044
Replies: 8 comments
-
Issue-Label Bot is automatically applying the label Links: app homepage, dashboard and code for this bot. |
Beta Was this translation helpful? Give feedback.
-
Hi, I am having the same issue. Running SuperSet 0.36, but had the same problem in 0.29. Connection to a sqlalchemy_sqlany backend. DATETIME_ID (type TIMESTAMP) and DAET_ID (type DATE) are giving 0 Time Grain option(s). With kind regards, |
Beta Was this translation helpful? Give feedback.
-
What does your connection string look like? What SQL dialect is this most like? Hive? You probably want to add a new module here: |
Beta Was this translation helpful? Give feedback.
-
@rbk-paul are you connecting using this connector? https://pypi.org/project/databricks-dbapi/ |
Beta Was this translation helpful? Give feedback.
-
@villebro. yes, using the connector you specified. @mistercrunch, connection string looks like this: |
Beta Was this translation helpful? Give feedback.
-
@mistercrunch : In my case: sqlalchemy_sqlany://..., connecting to Sybase |
Beta Was this translation helpful? Give feedback.
-
It worked for me. I copied the mssql.py db_engine_specs, renamed it to sqlalchemy_sqlany. Only thing I had to fix after that was replace the "0" within DATEADD and DATEDIFF. The results these functions get comparing to todays datetime is giving an error (probably too high value). Replacing "0" by e.g. '2020-01-01' did the trick. |
Beta Was this translation helpful? Give feedback.
-
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. For admin, please label this issue |
Beta Was this translation helpful? Give feedback.
-
A clear and concise description of what the bug is.
The "Time Grain" filter does not have any options available (shows "0 Options"), despite detecting correct the various "Time Columns".
This problem exists for all Visualization Types.
Found a similar issue reported but was closed and marked stale:
#8009
Data Source is from Azure Databricks.
Expected results
Time Grain filter shows different options like Year, Month, Day...
Actual results
Shows "0 Options"
Screenshots
How to reproduce the bug
Environment
(please complete the following information):
Checklist
Make sure these boxes are checked before submitting your issue - thank you!
Additional context
Add any other context about the problem here.
Beta Was this translation helpful? Give feedback.
All reactions