Repository navigation
Conversation
ie. that they are sorted based on the UTF-8 encoding, not on any of the Unicode Collation algorithms.
Member
|
Could you make an Apache ORC JIRA and use it for this PR? Or, we can use |
Contributor
Author
|
Done |
cxzl25
approved these changes
Jul 6, 2023
wgtmac
approved these changes
Jul 6, 2023
cxzl25
pushed a commit
to cxzl25/orc
that referenced
this pull request
Jan 11, 2024
### What changes were proposed in this pull request? The spec is updated to clarify that dictionary entries are sorted based on the UTF-8 encoding, not on any of the Unicode Collation algorithms. ### Why are the changes needed? Not strictly needed, but I had a moment of doubt when reading the spec, and had to check the implementation. ### How was this patch tested This matches the C++ implementation: https://github.com/apache/orc/blob/294a5e28f7f0420eb1fdc76dffc33608692c1b20/c%2B%2B/src/ColumnWriter.cc#L913-L923 Closes apache#1561 from progval/spec-sort. Authored-by: Valentin Lorentz <vlorentz@softwareheritage.org> Signed-off-by: Gang Wu <ustcwg@gmail.com>
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?
The spec is updated to clarify that dictionary entries are sorted based on the UTF-8 encoding, not on any of the Unicode Collation algorithms.
Why are the changes needed?
Not strictly needed, but I had a moment of doubt when reading the spec, and had to check the implementation.
How was this patch tested
This matches the C++ implementation:
orc/c++/src/ColumnWriter.cc
Lines 913 to 923 in 294a5e2