Skip to content

ORC-669. Reduce breaking changes in ReaderImpl.java - #547

Merged
omalley merged 1 commit into
apache:masterfrom
dongjoon-hyun:ORC-669
Oct 2, 2020
Merged

omalley merged 1 commit into
apache:masterfrom
dongjoon-hyun:ORC-669

Conversation

@dongjoon-hyun

@dongjoon-hyun dongjoon-hyun commented Oct 1, 2020 •

Copy link
Copy Markdown
Member

What changes were proposed in this pull request?

Although this is Implementation class, this PR aims to reduce two breaking changes in ReaderImpl.java due to ORC-520 at Apache ORC 1.6.0 ~ 1.6.5.

Why are the changes needed?

This helps Apache Hive and Spark works with Apache ORC 1.6.x by removing the following breaking changes with a minor and safe revision.

[info] org.apache.spark.sql.hive.orc.OrcHadoopFsRelationSuite *** ABORTED ***
[info]   java.lang.NoSuchFieldError: types
[info]   at org.apache.hadoop.hive.ql.io.orc.ReaderImpl.<init>(ReaderImpl.java:64)

[info] org.apache.spark.sql.hive.orc.HiveOrcHadoopFsRelationSuite *** ABORTED ***
[info]   java.lang.IllegalAccessError: tried to access field org.apache.orc.impl.ReaderImpl.compressionKind
from class org.apache.hadoop.hive.ql.io.orc.ReaderImpl

How was this patch tested?

Manually review because this adds back a field and changes visibility of the field like ORC 1.5.x,

@dongjoon-hyun

Copy link
Copy Markdown
Member Author

Could you review this, @omalley ?

@dongjoon-hyun

dongjoon-hyun commented Oct 1, 2020 •

Copy link
Copy Markdown
Member Author

@omalley and @alanfgates .

I'm trying to make Apache Spark 3.1 (scheduled on December 2020) to use Apache ORC 1.6.6. We need at least

The other stuffs I'm looking at are the followings

  • The ORC's case-insensitive predicate handling change (1.6.x returns more rows compared with 1.5.x). Although Spark can filter this from Spark side, this may cause a performance regression.
  • OrcTail API change.

This will help Apache Hive eventually too.

@omalley

omalley commented Oct 2, 2020

Copy link
Copy Markdown
Contributor

Is Spark using the details of ReaderImpl?

@omalley
omalley merged commit c9bcc7a into apache:master Oct 2, 2020
@dongjoon-hyun

Copy link
Copy Markdown
Member Author

Thank you for merging, @omalley . The above two are not used Spark sql module, but are used in Hive library in Spark's hive module.

@dongjoon-hyun
dongjoon-hyun deleted the ORC-669 branch October 2, 2020 15:47
@dongjoon-hyun

Copy link
Copy Markdown
Member Author

If you don't mind, please land this to branch-1.6, too.

omalley pushed a commit that referenced this pull request Oct 2, 2020
Signed-off-by: Owen O'Malley <omalley@apache.org>
@omalley

omalley commented Oct 2, 2020

Copy link
Copy Markdown
Contributor

done

@dongjoon-hyun

Copy link
Copy Markdown
Member Author

Thank you so much!

zratkai pushed a commit to zratkai/orc that referenced this pull request Jun 20, 2024
…he#547)

Change-Id: If23db642543aeccf44bdc6e4c483fc661f29764f
zratkai pushed a commit to zratkai/orc that referenced this pull request Jun 20, 2024
…va (apache#547)"

This reverts commit c717b92.

Change-Id: I1d22e3a802f19fde607580db0d92c5cb249e42c5
zratkai pushed a commit to zratkai/orc that referenced this pull request Jun 20, 2024
…he#547)

Change-Id: If1e18dadec1cb9ad9f08b20d4f031a9b18afed77
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
…va (apache#547)"

This reverts commit 834a03f.

Change-Id: I4e74ac53e66dc0e36c4ac813a78a41ad18e99190
zratkai pushed a commit to zratkai/orc that referenced this pull request Jun 20, 2024
…he#547)

Change-Id: If1e18dadec1cb9ad9f08b20d4f031a9b18afed77
zratkai pushed a commit to zratkai/orc that referenced this pull request Jun 20, 2024
…he#547)

Change-Id: I5ac5da5ad7d5a35d649079878bb93ea044997f60
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