Skip to content

Commit

Permalink
Merge pull request #13 from open-metadata/sqllineag_bump_version
Browse files Browse the repository at this point in the history
  • Loading branch information
ulixius9 authored Jun 26, 2023
2 parents 74ed643 + 3df7d8c commit 2c683c2
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion sqllineage/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@


NAME = "openmetadata-sqllineage"
VERSION = "1.0.4"
VERSION = "1.1.0.0"
DEFAULT_LOGGING = {
"version": 1,
"disable_existing_loggers": False,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ class DmlInsertExtractor(LineageHolderExtractor):
SUPPORTED_STMT_TYPES = [
"insert_statement",
"create_table_statement",
"create_table_as_statement",
"create_view_statement",
"update_statement",
"copy_statement",
Expand Down
4 changes: 3 additions & 1 deletion sqllineage/core/parser/sqlfluff/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,9 @@ def _get_column_from_subquery(
).get_column_lineage(exclude_subquery=False)
]
source_columns = [
ColumnQualifierTuple(src_col.raw_name, src_col.parent.raw_name)
ColumnQualifierTuple(
src_col.raw_name, src_col.parent.raw_name if src_col.parent else None
)
for src_col in src_cols
]
return source_columns
Expand Down
5 changes: 4 additions & 1 deletion sqllineage/core/parser/sqlparse/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,10 @@ def _extract_source_columns(token: Token) -> List[ColumnQualifierTuple]:
)
]
source_columns = [
ColumnQualifierTuple(src_col.raw_name, src_col.parent.raw_name)
ColumnQualifierTuple(
src_col.raw_name,
src_col.parent.raw_name if src_col.parent else None,
)
for src_col in src_cols
]
else:
Expand Down

0 comments on commit 2c683c2

Please sign in to comment.