- Grafana version 10.3.1
Hi all, I’m trying to group by day from a PostgreSQL timestamp. It is simple to do with PostgreSQL, however executing the right query in Grafana gives different results than usual.
I would like to understand what is going on here.
Here is the query Grafana says it is using:
Note the cast: “date_time::date” - this should return only the date part of date_time, which worked fine when I tested it in SQL Workbench:
That is the exact same query, copy and pasted from the Grafana query inspector.
Here are the results in Grafana:
Note that a timestamp is present now in the “day” column.
How is this possible? There are no Transformations on this panel. It’s just the query shown.