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