Skip to content

ORC-685: Add ReaderImpl.extractFileTail back - #570

Merged
dongjoon-hyun merged 1 commit into
apache:masterfrom
pgaref:ORC-685
Nov 26, 2020
Merged

dongjoon-hyun merged 1 commit into
apache:masterfrom
pgaref:ORC-685

Conversation

@pgaref

@pgaref pgaref commented Nov 21, 2020 •

Copy link
Copy Markdown
Contributor

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()

@dongjoon-hyun

Copy link
Copy Markdown
Member

Thank you for making this efforts, @pgaref .

@pgaref
pgaref marked this pull request as ready for review November 23, 2020 14:57
@pgaref

pgaref commented Nov 23, 2020

Copy link
Copy Markdown
Contributor Author

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 ?
https://github.com/apache/orc/pull/570/files#diff-059408b5b3948fe28049eb419a2516a755be6e98706308370d8c2af81f5b0e15R382

@dongjoon-hyun

Copy link
Copy Markdown
Member

BTW, @pgaref . Did you run this with old program like Hive/Spark?

@pgaref

pgaref commented Nov 25, 2020

Copy link
Copy Markdown
Contributor Author

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).
However, bumping Hive to 1.6 entirely is a much bigger effort as LLAP relies on too many ORC internal APIs (mostly because of their tightly coupled relationship).

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 dongjoon-hyun left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Is there a reason not to add deprecated to ensureOrcFooter?

@pgaref

pgaref commented Nov 25, 2020 •

Copy link
Copy Markdown
Contributor Author

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.
Adding it now

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 dongjoon-hyun left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

+1, LGTM. I verified this with Spark quickly with a subset testing.
Merged to master/branch-1.6.

@dongjoon-hyun
dongjoon-hyun merged commit dc0d061 into apache:master Nov 26, 2020
dongjoon-hyun pushed a commit that referenced this pull request Nov 26, 2020
### 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>
@dongjoon-hyun

Copy link
Copy Markdown
Member

Thank you so much, @pgaref !

zratkai pushed a commit to zratkai/orc that referenced this pull request Jun 20, 2024
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
zratkai pushed a commit to zratkai/orc that referenced this pull request Jun 20, 2024
…pache#570)"

This reverts commit 30a4e0c.

Change-Id: I4b3659f1521e7aef06c6da279ba628b5b24e9b3a
zratkai pushed a commit to zratkai/orc that referenced this pull request Jun 20, 2024
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
zratkai pushed a commit to zratkai/orc that referenced this pull request Jun 20, 2024
…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.
zratkai pushed a commit to zratkai/orc that referenced this pull request Jun 20, 2024
…pache#570)"

This reverts commit c751913.

Change-Id: I063f6aa6950f21af8485048cf19c4ae5d7a0175b
zratkai pushed a commit to zratkai/orc that referenced this pull request Jun 20, 2024
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
zratkai pushed a commit to zratkai/orc that referenced this pull request Jun 20, 2024
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants