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
SELECT CAST(DATE'2024-01-30'ASTIMESTAMP(6) WITH TIME ZONE)
JavaScript/TypeScript code
import{TrinoSQL}from'dt-sql-parser';constparser=newTrinoSQL();constquery=`SELECT CAST(DATE '2024-01-30' AS TIMESTAMP(6) WITH TIME ZONE)`;consterrors=parser.validate(query);console.log(errors);
What happened?
The error is thrown only if timestamp is used with the precision parameter, for example SELECT CAST(DATE '2024-01-30' AS TIMESTAMP WITH TIME ZONE) is parsed correctly
Relevant log output
missing ')' at 'WITH'
The text was updated successfully, but these errors were encountered:
Version
v4.0.2
Which SQL?
Trino
SQL content
JavaScript/TypeScript code
What happened?
The error is thrown only if timestamp is used with the precision parameter, for example
SELECT CAST(DATE '2024-01-30' AS TIMESTAMP WITH TIME ZONE)
is parsed correctlyRelevant log output
The text was updated successfully, but these errors were encountered: