-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Add Lineage Information to EXPLAIN (TYPE IO) #24952
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Add Lineage Information to EXPLAIN (TYPE IO) #24952
Conversation
4766517
to
ee119fa
Compare
@Praveen2112 PTAL |
abee3ea
to
aef0a7f
Compare
@Praveen2112 Hi Praveen, a previous concurrency issue has been fixed |
@predator4ann Hello, just wanted to thank you for this feature. It'd be very useful for me, so I fetched it locally to try on my data. In most cases it works great, but I found a problem with complex queries with UNIONs.
As a result we would get this output:
As you can see for this "id" column sourceColumns lack another source which is "id" from "table_1_3". Have you encountered this issue? It is probably due to
|
@RedEminence Hi, thank you for using and feedback. I think the issue is probably due to the need to add the implementation of the |
@RedEminence Hi, I proposed a PR to solve the issue of |
Thank you so much! I'll take a look when I have a chance |
@Praveen2112 would you please help to review this PR? |
This pull request has gone a while without any activity. Ask for help on #core-dev on Trino slack. |
Signed-off-by: predator4ann <[email protected]>
aef0a7f
to
19271c1
Compare
Description
This PR introduces the following changes to support column lineage information in EXPLAIN (TYPE IO):
outputColumns
field is added to the query output metadata. This field provides detailed column lineage information, enabling users to trace the origin of each column in the result set.INSERT
andCREATE TABLE
statements.Additional context and related issues
#22606
Release notes
(x) This is not user-visible or is docs only, and no release notes are required.
( ) Release notes are required. Please propose a release note for me.
( ) Release notes are required, with the following suggested text:
Examples