Repository navigation
ORC-1483: [Java] Remove obsolete FileMetadata - #1588
deshanxiao wants to merge 2 commits into
Conversation
| return this; | ||
| } | ||
|
|
||
| public FileMetadata getFileMetadata() { |
There was a problem hiding this comment.
Shall we mark this method as deprecated in early releases and then remove in 2.0?
There was a problem hiding this comment.
As @mystic-lama pointed, Apache ORC community cannot drop the public API without a deprecation, @deshanxiao .
There was a problem hiding this comment.
+1 for @mystic-lama points. Acutally this PR targets 2.0
There was a problem hiding this comment.
@deshanxiao What I meant is we need one more PR with this API marked as deprecated in a version that goes out before 2.0.0, so that people can expect the change. I don't have strong opinion on this, given breaking changes are expected in major release. Please choose what is least disruptive. Once we make a decision on this, I can give my +1
A big Thank You for deleting dead code 🙇♂️
There was a problem hiding this comment.
There are two more comments.
- +1 for another independent deprecation PR for specific discussion about that.
- Please note that
Deperecated Codeis not a dead code. If there is any usage in the downstream, we may not be able to delete the deprecated code. For example, we recovered the deleted code back for downstream projects.
ORC-677: Add a deprecated legacy constructor SargApplier back (#557)
ORC-676: Add getRawDataSizeFromColIndices back to ReaderImpl (#555)
ORC-671: Add OrcTail.getStripeStatistics back for backward compatiblility (#549)
We had better be very careful even in 2.0.0. Semantic Versioning means it allows breaking changes, but doesn't mean we need to break absolutely. The fundamental purpose of Semantic Versioning is to help users.
There was a problem hiding this comment.
Thank you @dongjoon-hyun @mystic-lama . I will open an independent PR.
What changes were proposed in this pull request?
This PR is aimed to remove obsolete FileMetadata.
Why are the changes needed?
For code optimization.
1.No class implements FileMetadata, and the constructor of ReaderImpl is extremely cumbersome.
2.
FileMetadatais obsolete and doesn't support encryption. See:orc/java/core/src/java/org/apache/orc/impl/ReaderImpl.java
Line 563 in b347df0
How was this patch tested?
Exist UT