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
select ca as c from a
union all
select cb as c from b
union all
select cc as c from c
running
node = lineage("c",file_content,dialect = Dialects.POSTGRES)
meta = LineageHTML(node)
only shows the last unioned table, ideally it should show all of them?
Code snippet to reproduce:
import sqlglot
from sqlglot.lineage import lineage, LineageHTML
from sqlglot.dialects.dialect import Dialects
file_content = """
select ca as c from a
union all
select cb as c from b
union all
select cc as c from c
"""
node = lineage("c",file_content,dialect = Dialects.POSTGRES)
meta = LineageHTML(node)
with open("./eg.html", 'w') as file:
# Write the string to the file
file.write(str(meta))
Consider the following SQL:
running
only shows the last unioned table, ideally it should show all of them?
Code snippet to reproduce:
https://sqlglot.com/sqlglot/lineage.html
The text was updated successfully, but these errors were encountered: