fix(ingest): use more aggressive errors with sqlglot (#10769)

This commit is contained in:
Harshal Sheth 2024-06-25 13:27:42 -07:00 committed by GitHub
parent 32d5a81dd8
commit c6f2839650
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -66,7 +66,7 @@ def _parse_statement(
sql: sqlglot.exp.ExpOrStr, dialect: sqlglot.Dialect
) -> sqlglot.Expression:
statement: sqlglot.Expression = sqlglot.maybe_parse(
sql, dialect=dialect, error_level=sqlglot.ErrorLevel.RAISE
sql, dialect=dialect, error_level=sqlglot.ErrorLevel.IMMEDIATE
)
return statement