-
Notifications
You must be signed in to change notification settings - Fork 14.5k
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
Time filtering - Not working on calculated fields #13702
Comments
I made a mistake while taking the screenshots (the ' character shouldn't be present). Sorry ! The error is present anyway, it is not related to it. |
It seems that Athena is not implicitly converted from string to datetime-like. This problem may exist in Athena / Clickhouse / Kylin2. @ValentinC-BR
Can it query? |
I get the following error : Casting it as TIMESTAMP work, however. |
ok. thanks for this debug. We will improve the corresponding SQL generation logic. |
@ValentinC-BR feel free to push a fix if it's urgent. 🙏 thanks for reporting |
closes by #14813 |
@ValentinC-BR regarding your issue I was wondering whether you tried setting the calculated column type—in the same modal where you defined the SQL expression? The reason I ask is I believe that is the correct mechanism for addressing your issue. See #16950 for details. |
Yes I did. But it wasn't working at that time. |
When using a calculated column as the TIME COLUMN, the preset filters (actually all the filters in the time section) do not work.
The calculated field (date or datetime) is compared to a STRING, causing the SQL request not to work.
Expected results
The calculated column should be compared to a DATE or DATETIME value when the user applies a filter
Actual results
The calculated column is compared to a STRING value
Screenshots
TABLE CONFIGURATION
CHART CONFIGURATION
GENERATED QUERY
How to reproduce the bug
Environment
(please complete the following information):
Checklist
Make sure to follow these steps before submitting your issue - thank you!
Additional context
None
The text was updated successfully, but these errors were encountered: