-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
base: main
Are you sure you want to change the base?
Conversation
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.
thanks for doing this cleanup!
public void testFileScanTaskParser(boolean caseSensitive) { | ||
PartitionSpec spec = TestBase.SPEC; | ||
FileScanTask fileScanTask = createFileScanTask(spec, caseSensitive); | ||
String jsonStr = FileScanTaskParser.toJson(fileScanTask); |
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.
Should this test be removed, or adapted to use a non-deprecated method?
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.
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) { |
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.
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 { |
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.
Thought to removed these unused methods after deprecating invokeChecked() . PLMK if it breaks any changes.
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 method wasn't marked as deprecated, so we can't remove it
.palantir/revapi.yml
Outdated
- 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\ |
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.
nit: unnecessary change
@@ -82,14 +76,6 @@ public <R> R invoke(Object target, Object... args) { | |||
return (R) newInstance(args); | |||
} | |||
|
|||
@Override | |||
@SuppressWarnings("unchecked") |
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 method wasn't marked as deprecated?
.palantir/revapi.yml
Outdated
\ 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" |
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.
can you update this message to Removing deprecated code
instead of method
?
No description provided.