Skip to content

Column Level Lineage with Python #256

Answered by reata
matsabella asked this question in Q&A
Discussion options

You must be logged in to vote

For the column level lineage Python API, I didn't document it because it's not stable enough. But you're free to try and welcome to reporting bugs if you met any.

result = LineageRunner(sql)
column_lineage = result.get_column_lineage()
# this returns List[Tuple[Column, Column]]

CTE and subqueries are indeed among the biggest issues with column lineage. I hope I can cover most of the edge cases before long. The current develop progress is behind my schedule because of the covid-19 lockdown in Shanghai. I sure hope things get better soon and I can come back to this.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@matsabella
Comment options

@AnubhaJ27
Comment options

@reata
Comment options

Answer selected by matsabella
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants