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

Remove deprecated APIs up to 1.7.0 #10818

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

nk1506
Copy link
Contributor

@nk1506 nk1506 commented Jul 30, 2024

No description provided.

@nk1506 nk1506 changed the title Remove deprecated APIs up to 1.17.0 Remove deprecated APIs up to 1.7.0 Jul 30, 2024
@Fokko Fokko requested a review from findepi July 30, 2024 11:46
Copy link
Member

@findepi findepi left a comment

Choose a reason for hiding this comment

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

thanks for doing this cleanup!

public void testFileScanTaskParser(boolean caseSensitive) {
PartitionSpec spec = TestBase.SPEC;
FileScanTask fileScanTask = createFileScanTask(spec, caseSensitive);
String jsonStr = FileScanTaskParser.toJson(fileScanTask);
Copy link
Member

Choose a reason for hiding this comment

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

Should this test be removed, or adapted to use a non-deprecated method?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

There is already a test with new ScanTaskParser

/** Test backward compatibility where task-type field is absent from the JSON string */
@ParameterizedTest
@ValueSource(booleans = {true, false})
public void testFileScanTaskParserWithoutTaskTypeField(boolean caseSensitive) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Already a test with new ScanTaskParser

@@ -163,10 +162,6 @@ private BoundMethod(UnboundMethod method, Object receiver) {
this.receiver = receiver;
}

public <R> R invokeChecked(Object... args) throws Exception {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thought to removed these unused methods after deprecating invokeChecked() . PLMK if it breaks any changes.

Copy link
Contributor

Choose a reason for hiding this comment

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

this method wasn't marked as deprecated, so we can't remove it

- code: "java.element.noLongerDeprecated"
old: "method void org.apache.iceberg.encryption.PlaintextEncryptionManager::<init>()"
new: "method void org.apache.iceberg.encryption.PlaintextEncryptionManager::<init>()"
justification: "Constructor became private as part of deprecations cleanup for 1.6.0 release"
justification: "Constructor became private as part of deprecations cleanup for\
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: unnecessary change

@@ -82,14 +76,6 @@ public <R> R invoke(Object target, Object... args) {
return (R) newInstance(args);
}

@Override
@SuppressWarnings("unchecked")
Copy link
Contributor

Choose a reason for hiding this comment

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

this method wasn't marked as deprecated?

\ org.apache.iceberg.TableMetadata)"
new: "method org.apache.iceberg.BaseMetastoreOperations.CommitStatus org.apache.iceberg.BaseMetastoreTableOperations::checkCommitStatus(java.lang.String,\
\ org.apache.iceberg.TableMetadata)"
justification: "Removing deprecated method"
Copy link
Contributor

Choose a reason for hiding this comment

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

can you update this message to Removing deprecated code instead of method?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants