Skip to content

Conversation

@jun-he
Copy link
Collaborator

@jun-he jun-he commented Dec 28, 2020

Add some of additional tests (from #922) for partition spec updates.

@github-actions github-actions bot added the core label Dec 28, 2020
@jun-he
Copy link
Collaborator Author

jun-he commented Dec 28, 2020

@rdblue @aokolnychyi can you take a look? Thanks.

TableMetadata updated = table.ops().current();
Integer updatedVersion = TestTables.metadataVersion("test");
Assert.assertEquals(current, updated);
Assert.assertEquals(++currentVersion, updatedVersion.intValue());
Copy link
Contributor

Choose a reason for hiding this comment

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

We don't use the return value of the ++ operator because it is not obvious which value is returned. Could you move these to separate lines?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Thanks for the comments and updated the PR accordingly.

Copy link
Contributor

@rdblue rdblue 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, just one minor issue to fix. Thanks @jun-he!

@aokolnychyi aokolnychyi merged commit 767d551 into apache:master Dec 29, 2020
@aokolnychyi
Copy link
Contributor

Thanks for adding these, @jun-he!

@jun-he jun-he deleted the jun/additional-update-spec-test branch December 29, 2020 17:09
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.

3 participants