Repository navigation
ORC-685: Add ReaderImpl.extractFileTail back - #570
Conversation
|
Thank you for making this efforts, @pgaref . |
|
Currently using a dummy reader to retrieve Statistics variant from Tail buffer -- we could also have a Utility method to avoid Reader initialisation. Thoughts @omalley @dongjoon-hyun ? |
|
BTW, @pgaref . Did you run this with old program like Hive/Spark? |
Hey @dongjoon-hyun -- tried Tail extraction from the Hive side and was working fine (planning to check Spark at some point too). I started the effort as part of the Umbrella https://issues.apache.org/jira/browse/HIVE-23553 -- still early in the process though. |
dongjoon-hyun
left a comment
There was a problem hiding this comment.
Is there a reason not to add deprecated to ensureOrcFooter?
Hey @dongjoon-hyun -- I skipped it since its not user-facing method but it could be helpful to have indeed. |
Change-Id: I0758fdd828c5697b04971a0b017123bffd7a0a42 Extraction fixes plus Test Change-Id: I14a263899f86a7732cadfeae6231394c41ab724a Adding deprecation note Change-Id: I1b1c5027b54c0c3250add4903073e47ea116d638 Adding extra deprecation note Change-Id: Id0beb3605c6f8ed54e3e46783ddf48c58175ee75 Adding extra deprecation note Change-Id: I9bbf1870a3024f58360aa04fee515a1f800d404a
dongjoon-hyun
left a comment
There was a problem hiding this comment.
+1, LGTM. I verified this with Spark quickly with a subset testing.
Merged to master/branch-1.6.
### What changes were proposed in this pull request? This PR aims to add ReaderImpl.extractFileTail back to mitigate backward compatibility (partially as StripeStatistics are removed from ORCTail). ### Why are the changes needed? Apache ORC 1.6.0 ~ 1.6.5 removes extractFileTail from the ReaderImpl. This PR adds API backward compatibility. ### How was this patch tested? TestReaderImp. testOrcTailStripeStats() (cherry picked from commit dc0d061) Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
|
Thank you so much, @pgaref ! |
This PR aims to add ReaderImpl.extractFileTail back to mitigate backward compatibility (partially as StripeStatistics are removed from ORCTail). Apache ORC 1.6.0 ~ 1.6.5 removes extractFileTail from the ReaderImpl. This PR adds API backward compatibility. TestReaderImp. testOrcTailStripeStats() Change-Id: Ic678e98eddb2f2ea6d96c83eb2aeb76011f5b1b6
…pache#570)" This reverts commit 30a4e0c. Change-Id: I4b3659f1521e7aef06c6da279ba628b5b24e9b3a
This PR aims to add ReaderImpl.extractFileTail back to mitigate backward compatibility (partially as StripeStatistics are removed from ORCTail). Apache ORC 1.6.0 ~ 1.6.5 removes extractFileTail from the ReaderImpl. This PR adds API backward compatibility. TestReaderImp. testOrcTailStripeStats() Change-Id: I0494b4c6fca4d4cc8dc2a77ff3512203d88e329d
…into cdw-master * changes: CDPD-45931: ORC-661: Use ChronoLocalDate and day of epoch instead of java's Date for column statistics. CDPD-45931: ORC-398 col stats list map (apache#395) CDPD-45931: ORC-705: Predicate evaluation should take into account writer calendar (apache#588) CDPD-45931: ORC-706: Put back DataReaderProperties default maxDiskRangeChunkLimit CDPD-45931: ORC-685: Add `ReaderImpl.extractFileTail` back (apache#570) CDPD-45931: ORC-676. Add getRawDataSizeFromColIndices back to ReaderImpl (apache#555) CDPD-45931: ORC-671: Add OrcTail.getStripeStatistics back for backward compatiblility CDPD-45931: ORC-669: Reduce breaking changes in ReaderImpl.java (apache#547) Change-Id: If1e18dadec1cb9ad9f08b20d4f031a9b18afed77 CDPD-45931: ORC-621: Fix reader for empty positions list in first row index entry. CDPD-45931: ORC-548: Fix Java InStream to work with BufferChunks that don't start at the stream. CDPD-45931: ORC-520: Fix file merging for column encryption. CDPD-45931: ORC-529: Allow configuration and table properties to control encryption. CDPD-45931: ORC-487: Refactor stripe planning to a new class StripePlanner. CDPD-45931: ORC-523: Update ReaderImpl to work with column encryption. CDPD-45931: ORC-516: Update InStream for column compression. CDPD-45931: ORC-486: Add column entryption to the TreeWriters. CDPD-45931: ORC-484: Update PhysicalWriter to support encryption. CDPD-45931: ORC-509: Fix the KeyProvider to match the current spec. CDPD-45931: ORC-510: Cleanup API for StreamOptions and CompressionCodec.Options CDPD-45931: ORC-485. Add API to write encrypted files. CDPD-45931: ORC-483 Update protobuf for column encryption. CDPD-45931: ORC-421: Separate compression options from the CompressionCodec. CDPD-45931: ORC-251: Extend InStream and OutStream to support encryption.
…pache#570)" This reverts commit c751913. Change-Id: I063f6aa6950f21af8485048cf19c4ae5d7a0175b
This PR aims to add ReaderImpl.extractFileTail back to mitigate backward compatibility (partially as StripeStatistics are removed from ORCTail). Apache ORC 1.6.0 ~ 1.6.5 removes extractFileTail from the ReaderImpl. This PR adds API backward compatibility. TestReaderImp. testOrcTailStripeStats() Change-Id: I0494b4c6fca4d4cc8dc2a77ff3512203d88e329d
This PR aims to add ReaderImpl.extractFileTail back to mitigate backward compatibility (partially as StripeStatistics are removed from ORCTail). Apache ORC 1.6.0 ~ 1.6.5 removes extractFileTail from the ReaderImpl. This PR adds API backward compatibility. TestReaderImp. testOrcTailStripeStats() Change-Id: I17b5a5a28ceca18f0153f3c5c0ae406a1c714a38
What changes were proposed in this pull request?
This PR aims to add ReaderImpl.extractFileTail back to mitigate backward compatibility (partially as StripeStatistics are removed from ORCTail).
Why are the changes needed?
Apache ORC 1.6.0 ~ 1.6.5 removes extractFileTail from the ReaderImpl. This PR adds API backward compatibility.
How was this patch tested?
TestReaderImp. testOrcTailStripeStats()