You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We looked into this one, but it's a bit tricky to transpile at the moment because units are not normalized like time formats. I'll close the ticket as out of scope for now, but may revisit when someone in the core team has more bandwidth. We'll also be happy to accept well-tested PRs.
sqlglot==25.28.0:
Expected result
SELECT DATE_TRUNC('day', CURRENT_TIMESTAMP()) FROM T
Here is the list of units supported by https://clickhouse.com/docs/en/sql-reference/functions/date-time-functions#date_trunc
Oracle's
trunc
function documentation https://docs.oracle.com/en/database/oracle/oracle-database/19/sqlrf/TRUNC-date.htmlThe text was updated successfully, but these errors were encountered: