Skip to content

Commit

Permalink
format file according to black
Browse files Browse the repository at this point in the history
  • Loading branch information
nadavgross committed Jul 15, 2024
1 parent b1ce288 commit 2cccd76
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions metadata-ingestion/src/datahub/sql_parsing/sqlglot_lineage.py
Original file line number Diff line number Diff line change
Expand Up @@ -845,7 +845,7 @@ def _sqlglot_lineage_inner(
default_schema: Optional[str] = None,
default_dialect: Optional[str] = None,
) -> SqlParsingResult:

if not default_dialect:
dialect = get_dialect(schema_resolver.platform)
else:
Expand Down Expand Up @@ -1027,8 +1027,8 @@ def sqlglot_lineage(
can be brittle with respect to missing schema information and complex
SQL logic like UNNESTs.
The SQL dialect can be given as an argument called default_dialect or it can
be inferred from the schema_resolver's platform.
The SQL dialect can be given as an argument called default_dialect or it can
be inferred from the schema_resolver's platform.
The set of supported dialects is the same as sqlglot's. See their
`documentation <https://sqlglot.com/sqlglot/dialects/dialect.html#Dialects>`_
for the full list.
Expand All @@ -1043,7 +1043,7 @@ def sqlglot_lineage(
schema_resolver: The schema resolver to use for resolving table schemas.
default_db: The default database to use for unqualified table names.
default_schema: The default schema to use for unqualified table names.
default_dialect: A default dialect to override the dialect provided by 'schema_resolver'.
default_dialect: A default dialect to override the dialect provided by 'schema_resolver'.
Returns:
A SqlParsingResult object containing the parsed lineage information.
Expand Down

0 comments on commit 2cccd76

Please sign in to comment.