Skip to content

Commit

Permalink
fix(ingest): use more aggressive errors with sqlglot (datahub-project…
Browse files Browse the repository at this point in the history
  • Loading branch information
hsheth2 authored Jun 25, 2024
1 parent 32d5a81 commit c6f2839
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit c6f2839

Please sign in to comment.