When querying our Metabase driver, a query such as:
SELECT TIMESTAMP '2010-10-31 01:00 UTC' AT TIME ZONE 'America/Los_Angeles',
TIMESTAMP '2010-10-31 01:00 UTC' AT TIME ZONE 'UTC'
returns twice the same datetime, adjusted to the local timezone. One of our users claims it's a bug as Postgresql gives a different result. But is it a bug? The two columns represent the same timestamp, albeit in two different time zones. When receiving a timestamp with a time zone, what is read-column-thunk for Types/TIMESTAMP_WITH_TIMEZONE supposed to return?
Hi @lpoulain
What is "our Metabase driver" ? Does your driver even have full timezone handling?
And which versions are you testing against? And what is the Report Timezone?
I'm talking about the Starburst Metabase driver, which does support the Types/TIMESTAMP_WITH_TIMEZONE type. But whether it returns a ZonedDateTime object or an Instant the result is the same.
So I'm wondering what is read-column-thunk supposed to return, and whether the two columns in the above query should return two different values in Metabase or the same value.
As far as the version, it's a locally built version which should be fairly recent.
@lpoulain What happens if you run the exact same query directly on the database? And how about via something like DBeaver with the plain JDBC driver?
Postgres will return different results.
@flamber when I run the same query in Starburst I get 2010-10-30 18:00:00 America/Los_Angeles and 2010-10-31 01:00:00 UTC.
How do I know who is my Metabase contact? The colleague who worked on the driver only had someone explaining how to submit the driver but no technical assistance.