Repository navigation
ORC-1568: Use readDiskRanges if orc.use.zerocopy is enabled - #1723
Closed
dongjoon-hyun wants to merge 1 commit into
Closed
dongjoon-hyun wants to merge 1 commit into
dongjoon-hyun wants to merge 1 commit into
Conversation
Member
Author
|
Let me merge this because this is identical with the legacy behavior. |
cxzl25
pushed a commit
to cxzl25/orc
that referenced
this pull request
Jan 11, 2024
### What changes were proposed in this pull request? This PR aims to use legacy `readDiskRanges` method if `orc.use.zerocopy` is enabled. ### Why are the changes needed? Since `orc.use.zerocopy` is disabled by default, Apache ORC will use `Vectored IO` still after this PR. The main background of this PR is that we had better keep the original behavior until Apache ORC take advantages of new `Vectored IO` API with ZeroCopy code path. We can improve later at Apache ORC 2.1.x. Note that `ZeroCopy` reader is known to be used by `Apache Hive LLAP` (`LlapOrcCacheLoader`, `LlapRecordReaderUtil`, `OrcEncodedDataReader`) like the following. However, `Apache Hive 4.0.0` is incompatible with Apache ORC 2.0.0 because it still requires Java 8 minimum support. - https://github.com/apache/hive/blob/b33b3d3454cc9c65a1879c68679f33f207f21c0e/llap-server/src/java/org/apache/hadoop/hive/llap/io/encoded/LlapOrcCacheLoader.java#L92 ```java boolean useZeroCopy = (daemonConf != null) && OrcConf.USE_ZEROCOPY.getBoolean(daemonConf); ``` ### How was this patch tested? Pass the CIs. Closes apache#1723 from dongjoon-hyun/ORC-1568. Authored-by: Dongjoon Hyun <dongjoon@apache.org> Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changes were proposed in this pull request?
This PR aims to use legacy
readDiskRangesmethod iforc.use.zerocopyis enabled.Why are the changes needed?
Since
orc.use.zerocopyis disabled by default, Apache ORC will useVectored IOstill after this PR.The main background of this PR is that we had better keep the original behavior until Apache ORC take advantages of new
Vectored IOAPI with ZeroCopy code path. We can improve later at Apache ORC 2.1.x.Note that
ZeroCopyreader is known to be used byApache Hive LLAP(LlapOrcCacheLoader,LlapRecordReaderUtil,OrcEncodedDataReader) like the following. However,Apache Hive 4.0.0is incompatible with Apache ORC 2.0.0 because it still requires Java 8 minimum support.How was this patch tested?
Pass the CIs.