Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
### What changes were proposed in this pull request? Enable the functionality behind `orc.create.index`. ### Why are the changes needed? In #1373, we disabled the configuration "orc.create.index" because the orc reader cannot work well when orc.create.index=false. During the write of a file with `orc.create.index=false` and `orc.row.index.stride > 0` no indexes are created in the ORC file. The `orc.row.index.stride` is persisted into the file metadata. During a read that requires the use of indexes e.g. in the presence of search arguments we get a read failure as the reader was expecting indexes based on the value of `orc.row.index.stride` but none exist. Two changes are proposed here: * Enable consistent writes i.e. assume orc.row.index.stride=0 if orc.create.index=false or if orc.row.index.stride >0 then assume orc.create.index=true * Enable the reader to handle the absence of row index information. During the process of selecting row groups in a stripe if the index information is seen as missing then we assume that all row groups should be read as the index information is missing. ### How was this patch tested? UT
- Loading branch information
1 parent
e6a9fe2
commit 7f90bbd
Showing
7 changed files
with
72 additions
and
6 deletions.
There are no files selected for viewing
Binary file added
BIN
+307 Bytes
examples/TestOrcFile.testSargSkipPickupGroupWithoutIndexCPlusPlus.orc
Binary file not shown.
Binary file not shown.
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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