Skip to content

Conversation

@namrathamyske
Copy link
Contributor

follow up from #5234, to refactoring minor comments left in last PR. @rdblue @amogh-jahagirdar please take a look at this.

@github-actions github-actions bot added the core label Jan 23, 2023
@namrathamyske
Copy link
Contributor Author

@jackye1995 can you also include this PR for the release ? This is just refactoring

@jackye1995 jackye1995 added this to the Iceberg 1.2.0 milestone Feb 24, 2023
Copy link
Contributor

@jackye1995 jackye1995 left a comment

Choose a reason for hiding this comment

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

looks good to me

Copy link
Contributor

@amogh-jahagirdar amogh-jahagirdar left a comment

Choose a reason for hiding this comment

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

Nonblocking comment, overall LGTM!

TableMetadata base = TestTables.readMetadata(TABLE_NAME);
long baseId =
latestSnapshot(base, branch) == null ? -1 : latestSnapshot(base, branch).snapshotId();
Snapshot latestSnapshot = latestSnapshot(base, branch);
Copy link
Contributor

@amogh-jahagirdar amogh-jahagirdar Feb 28, 2023

Choose a reason for hiding this comment

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

We don't need to handle in this PR but given #6651 we will end up using the SnapshotUtil api which is introduced. We can either update this PR with the proposed utility API since there's consensus on that or just later refactor to use the utility API when it gets merged as part of branch writes. Since this is a test class, I'm okay either way.

Copy link
Contributor

Choose a reason for hiding this comment

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

maybe we can just add the SnapshotUtil change in this PR? I don't think we can resolve the comments in that PR in time based on the current situation.

@jackye1995
Copy link
Contributor

@namrathamyske I updated based on Amogh's comment

@jackye1995
Copy link
Contributor

Merging since all comments are addressed, thanks for the review @yyanyy and @amogh-jahagirdar!

@jackye1995 jackye1995 merged commit 88ccf9a into apache:master Mar 1, 2023
@namrathamyske namrathamyske deleted the master_refactoring branch March 4, 2023 08:57
krvikash pushed a commit to krvikash/iceberg that referenced this pull request Mar 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants