Skip to content

Commit

Permalink
update comment
Browse files Browse the repository at this point in the history
  • Loading branch information
mayurinehate committed Oct 26, 2023
1 parent 1fe4b02 commit c5ca9b2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion metadata-ingestion/src/datahub/utilities/sqlglot_lineage.py
Original file line number Diff line number Diff line change
Expand Up @@ -1164,7 +1164,8 @@ def view_definition_lineage_helper(
if result.query_type is QueryType.SELECT:
# Some platforms (e.g. postgres) store only <select statement> from view definition
# `create view V as <select statement>` . For such view definitions, `result.out_tables` and
# `result.column_lineage[].downstream` are empty in `sqlglot_lineage` response, whereas
# `result.column_lineage[].downstream` are empty in `sqlglot_lineage` response, whereas upstream
# details and downstream column details are extracted correctly.
# Here, we inject view V's urn in `result.out_tables` and `result.column_lineage[].downstream`
# to get complete lineage result.
result.out_tables = [view_urn]
Expand Down

0 comments on commit c5ca9b2

Please sign in to comment.