-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Core, API: BaseReplacePartitions to branch test Refactoring #6650
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
Conversation
|
@jackye1995 can you also include this PR for the release ? This is just refactoring |
jackye1995
left a comment
There was a problem hiding this 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
amogh-jahagirdar
left a comment
There was a problem hiding this 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); |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
cd47f0d to
310f86c
Compare
|
@namrathamyske I updated based on Amogh's comment |
|
Merging since all comments are addressed, thanks for the review @yyanyy and @amogh-jahagirdar! |
follow up from #5234, to refactoring minor comments left in last PR. @rdblue @amogh-jahagirdar please take a look at this.