-
Notifications
You must be signed in to change notification settings - Fork 40
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
Choose correct dynamic type when filters are applied #454
Comments
We might need UX input there to decide on solution for the issue |
Let me elaborate in the issue so we can decide on specific solutions. The root of the issue is that a dynamic column needs to be parsed as a specific type so you cannot do:
Instead it should be casted:
To know which specific types a dynamic column can have, we are getting the schema using the
This returns the list of all the different types from the last 50000 rows of the table. The list can contain any type (e.g. Give that, there are several things we can do to mitigate the issue:
We can probably do 1. to unblock the user and keeps working towards 3. Thoughts? |
See grafana/support-escalations#3478. When a filter is applied on a column with a dynamic type the schema used is for the full column. This can lead to the incorrect type being chosen when the data is cast in a summarize statement.
Expected behaviour:
The appropriate type should be chosen based on the remaining values after a filter is applied to the column.
The text was updated successfully, but these errors were encountered: