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

Iceberg minor cleanup #12767

Merged
merged 3 commits into from
Jun 9, 2022
Merged

Conversation

findepi
Copy link
Member

@findepi findepi commented Jun 9, 2022

Extracted from #12766

@findepi findepi added the no-release-notes This pull request does not require release notes entry label Jun 9, 2022
@cla-bot cla-bot bot added the cla-signed label Jun 9, 2022
@@ -65,7 +65,8 @@
private final Optional<DataSize> maxScannedFileSize;

@JsonCreator
public IcebergTableHandle(
@Deprecated // For JSON deserialization only
Copy link
Member

Choose a reason for hiding this comment

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

Don't misuse @Deprecated like this. Name the method fromJsonForDeserializationOnly.

Don't invoke `IcebergTableHandle` constructor meant for deserialization
explicitly. This fixes potential information loss in
`IcebergMetadata.applyFilter` (it's believed it doesn't matter).

To prevent future mistakes, the deserialization constructor is changed
to a factory method.
@findepi findepi force-pushed the findepi/iceberg-minor-cleanup branch from a6f62e5 to 8b1a88d Compare June 9, 2022 20:10
@findepi findepi merged commit 3f9877f into trinodb:master Jun 9, 2022
@findepi findepi deleted the findepi/iceberg-minor-cleanup branch June 9, 2022 20:10
@github-actions github-actions bot added this to the 386 milestone Jun 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla-signed no-release-notes This pull request does not require release notes entry
Development

Successfully merging this pull request may close these issues.

3 participants