Closed iyinoluwaayoola closed 1 year ago
Thank you for reporting this and apologies for the late reply!
We recently released version 0.4.1
of the ZetaSQL Toolkit, which expands the column-level lineage support with a few new features. That includes properly mapping columns for set operations (i.e. UNION
s, INTERSECT
s, etc). I tested the query you shared explicitly and it works as expected.
Regarding your question, the current version of column-level lineage extraction should have all bases covered. It supports joins, subqueries, WITH
clauses, set operations, STRUCT
columns and operations, etc. The only major features that are explicitly not supported at the moment are the PIVOT
and UNPIVOT
operators.
However, we are yet to do more thorough testing to verify edge cases work as intended. I hope to do that in the near future. In the meantime, feel free to open an issue for any case you find not working as expected!
Hi maintainers, First of all, thanks for this awesome contribution to the community.
I'm trying to extract the column lineage from a union query, for example:
The extracted lineage looks like this:
But I'll expect:
Can you kindly point me to the required changes or help to support this case? Also what are the limitations of the current extractors, are there unsupported scenarios?