Skip to content
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

Fix column level lineage miss when use unnest #24620

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

hqbhoho
Copy link

@hqbhoho hqbhoho commented Jan 3, 2025

Description

Fixes #16946

Additional context and related issues

Release notes

( ) 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:

## Section
* Fix column level lineage miss when use unnest. ({issue}`16946`)

Copy link

cla-bot bot commented Jan 3, 2025

Thank you for your pull request and welcome to the Trino community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. Continue to work with us on the review and improvements in this PR, and submit the signed CLA to [email protected]. Photos, scans, or digitally-signed PDF files are all suitable. Processing may take a few days. The CLA needs to be on file before we merge your changes. For more information, see https://github.com/trinodb/cla

@hqbhoho hqbhoho changed the title Fix column level lineage missing when use unnest Fix column level lineage miss when use unnest Jan 3, 2025
@hqbhoho hqbhoho force-pushed the feature/add_unnest_lineage branch from e01ed1a to d2b88d2 Compare January 3, 2025 07:11
Copy link

cla-bot bot commented Jan 3, 2025

Thank you for your pull request and welcome to the Trino community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. Continue to work with us on the review and improvements in this PR, and submit the signed CLA to [email protected]. Photos, scans, or digitally-signed PDF files are all suitable. Processing may take a few days. The CLA needs to be on file before we merge your changes. For more information, see https://github.com/trinodb/cla

@hqbhoho
Copy link
Author

hqbhoho commented Jan 3, 2025

@ebyhr Could you help review it? thanks

@Praveen2112 Praveen2112 self-requested a review January 3, 2025 08:10
@hqbhoho hqbhoho force-pushed the feature/add_unnest_lineage branch from d2b88d2 to 4234601 Compare January 6, 2025 12:32
Copy link

cla-bot bot commented Jan 6, 2025

Thank you for your pull request and welcome to the Trino community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. Continue to work with us on the review and improvements in this PR, and submit the signed CLA to [email protected]. Photos, scans, or digitally-signed PDF files are all suitable. Processing may take a few days. The CLA needs to be on file before we merge your changes. For more information, see https://github.com/trinodb/cla

@hqbhoho
Copy link
Author

hqbhoho commented Jan 6, 2025

@Praveen2112 Thanks for the feedback! I've made the suggested changes. Please let me know if there's anything else.

@hqbhoho hqbhoho requested a review from Praveen2112 January 6, 2025 13:11
Comment on lines 159 to 163
if (schemaTableName.equals(new SchemaTableName("default", "tests_unnest_table"))) {
return ImmutableList.of(
new ColumnMetadata("test_varchar_array", new ArrayType(VARCHAR_15)),
new ColumnMetadata("test_bigint_array", new ArrayType(BIGINT)));
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can it be a part of test_table

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it sounds good, but will change some other test case code in this class, I will try.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you please take another look at this PR? I've made some updates based on your feedback.

@hqbhoho hqbhoho force-pushed the feature/add_unnest_lineage branch from 4234601 to da986a5 Compare January 7, 2025 01:50
Copy link

cla-bot bot commented Jan 7, 2025

Thank you for your pull request and welcome to the Trino community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. Continue to work with us on the review and improvements in this PR, and submit the signed CLA to [email protected]. Photos, scans, or digitally-signed PDF files are all suitable. Processing may take a few days. The CLA needs to be on file before we merge your changes. For more information, see https://github.com/trinodb/cla

@hqbhoho hqbhoho force-pushed the feature/add_unnest_lineage branch from da986a5 to c6cd0c8 Compare January 7, 2025 01:56
Copy link

cla-bot bot commented Jan 7, 2025

Thank you for your pull request and welcome to the Trino community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. Continue to work with us on the review and improvements in this PR, and submit the signed CLA to [email protected]. Photos, scans, or digitally-signed PDF files are all suitable. Processing may take a few days. The CLA needs to be on file before we merge your changes. For more information, see https://github.com/trinodb/cla

@hqbhoho hqbhoho force-pushed the feature/add_unnest_lineage branch from c6cd0c8 to 67f5a0b Compare January 7, 2025 02:47
Copy link

cla-bot bot commented Jan 7, 2025

Thank you for your pull request and welcome to the Trino community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. Continue to work with us on the review and improvements in this PR, and submit the signed CLA to [email protected]. Photos, scans, or digitally-signed PDF files are all suitable. Processing may take a few days. The CLA needs to be on file before we merge your changes. For more information, see https://github.com/trinodb/cla

@hqbhoho hqbhoho requested a review from Praveen2112 January 7, 2025 02:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Column level Lineage will missing when use Unnest
2 participants