You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
lateral view explode missing the relationship between table dw.scr and dw.dest.
To Reproduce
test.py
# -*- coding: utf-8 -*-fromsqllineage.runnerimportLineageRunnerdeftest_create_as():
sql="""INSERT OVERWRITE table dw.dest partition (dt)select a.nameid, get_json_object(b.alteration_list,'$.alterDate') as alter_date, get_json_object(b.alteration_list,'$.alterItem') as alter_item, get_json_object(b.alteration_list,'$.preAlter') as alter_before, get_json_object(b.alteration_list,'$.postAlter') as alter_after, current_date() as dtfrom ( select t1.nameid, split(regexp_replace(regexp_replace(t1.alterationList, '[\\[\\]]', ''), '(},\\{)', '}#\\{'), '#') as dd from (select nameid, alterationlist from dw.src where alterationlist is not null and alterationlist not rlike '暂无数据' and alterationlist != '[]' and nameid is not null ) t1 ) a lateral view explode(a.dd) b as alteration_list; """result=LineageRunner(sql, 'hive')
result.print_column_lineage()
print(result.source_tables)
print(result.target_tables)
if__name__=="__main__":
test_create_as()
Describe the bug
lateral view explode
missing the relationship between table dw.scr and dw.dest.To Reproduce
test.py
Expected behavior
maybe output should like
dw.dest.alter_date <- b.alteration_list <- a.dd <- dw.src.alterationList
Python version (available via
python --version
)SQLLineage version (available via
sqllineage --version
):The text was updated successfully, but these errors were encountered: