Parse simple SQL statements into an abstract syntax tree (AST) with the visited tableList and convert it back to SQL
798
stars
180
forks
source link
Trino dialect - Parser providing incorrect error information #1935
Closed
npmccauslin closed 4 months ago
Describe the bug
1 Using trino dialect, this query has error positioning issues:
I don't think the ----* is valid trino syntax but it doesn't error, instead it reports an error at the t('today') part, which I think is valid.
2 This query also falsely reports error on the brackets:
Database Engine Trino
To Reproduce -the SQL that be parsed:
and
-the node-sql-parser version: v5.2.0 -the node version: v18.20.2
Expected behavior I would expect the error to report on the first * (and the message to be that it isn't valid) rather than the t in
t('today')
.Screenshots Current errors for above queries: