We will simplify the timestamp literal when planning SQL to support the complex timezone issues in the different data sources. Something like
MSSQL only accepts the time zone offset.
Clikchouse only accepts the name of the time zone.
BigQuery has timestamp (impacted by timezone) and Datetime (non-impacted by timezone).
To handle them, Wren Core will convert all of the time zone literals to UTC, which is how other databases process the timestamp with the time zone literal.
Powered by DataFusion, both the offset and the timezone name are allowed. It can also handle the DST issue.
Description
We will simplify the timestamp literal when planning SQL to support the complex timezone issues in the different data sources. Something like
To handle them, Wren Core will convert all of the time zone literals to UTC, which is how other databases process the timestamp with the time zone literal.
Powered by DataFusion, both the offset and the timezone name are allowed. It can also handle the DST issue.
How the SQL transformed
When you input a SQL like
The planned SQL will be
Then, the dialect will be if the dialect is BigQuery.