-
Notifications
You must be signed in to change notification settings - Fork 121
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
Support for DateTime([timezone]) time fields consistently #625
Comments
dropdown should be fixed in 6ea625b |
@oplehto i tried to reproduce I created table which contains DateTime('Europe/Moscow') server in UTC and create dashboard I don't see any issues
Could you provide more concrete examples for your issue? |
An example here would be the timestamp column for the logs panel (in the logs mode) as I mentioned in the issue. I assume you are testing with a Graph or Table panel? I think it's due to the very specific matching done here for the column type: clickhouse-grafana/src/datasource/sql_series.ts Lines 474 to 484 in 0ad4543
There may be issues with other panel types as well. I didn't look. Hence this request to review that the timestamp with timezone support is comprehensive meaning all the panel types support it. |
It seems like in certain cases DateTime values with a timezone i.e. (
DateTime('America/Chicago')
) are not considered valid. For basic timeseries and tables they work but in some cases they fail.Examples that I found:
splitByChar('(',type)[1] AS type
?. At the same time it could be optimized with aGROUP BY type, name
to return only distinct valuesclickhouse-grafana/src/views/ConfigEditor/FormParts/DefaultValues/DefaultValues.tsx
Line 5 in a521a07
There are probably other situations as well. Seems like some type matching is happening where only
DateTime
andDateTime64(N)
are considered timestamps.While doing this it should be ensured that the timezone-enabled timestamps work correctly and do not get skewed (i.e. timezone shift done twice accidentally so a GMT+4 becomes GMT+8)
The text was updated successfully, but these errors were encountered: