-
Notifications
You must be signed in to change notification settings - Fork 3k
Rename last-assigned-partition-id to last-partition-id in table metadata #2188
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
| } | ||
|
|
||
| Integer lastAssignedPartitionId = JsonUtil.getIntOrNull(LAST_ASSIGNED_PARTITION_ID, node); | ||
| Integer lastAssignedPartitionId = JsonUtil.getIntOrNull(LAST_PARTITION_ID, node); |
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.
Won't this break backwards compatibility?
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.
This property was just added, so the rename is safe.
| this.nameToField = indexSpecByName(spec); | ||
| this.transformToField = indexSpecByTransform(spec); | ||
| this.lastAssignedPartitionId = base.lastAssignedPartitionId(); | ||
| this.lastAssignedPartitionId = base.lastPartitionId(); |
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.
I don't think we need to rename the method, just the property in the metadata file.
|
@jun-he, can you roll back the field and and method name changes in other classes? I think we only need to change the table metadata property, not the others. |
|
@rdblue Thanks for the review and updated the PR accordingly. |
|
Thanks, @jun-he! Looks good. |
Follow up of #2089