-
Notifications
You must be signed in to change notification settings - Fork 4k
ARROW-3769: [C++] Add support for reading non-dictionary encoded binary Parquet columns directly as DictionaryArray #3721
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from all commits
Commits
Show all changes
35 commits
Select commit
Hold shift + click to select a range
21fc450
Add some basic unittests that exercise the DecodeArrow methods
fa50415
Implement DecodeArrowNonNull and unit tests
4a26f74
remove todo message
31667ff
added tests for DictByteArrayDecoder and reworked previous tests
ef55081
added benchmarks for decoding plain encoded data using arrow builders
89de5d5
rework data generation so that decoding benchmark runs using a more r…
39a5f19
fix appveyor windows failure
4fbcf1f
fix loop increment in templated PlainByteArrayDecoder::DecodeArrow me…
f234ca2
respond to code review feedback - many readability fixes in benchmark…
84df23b
prefer range-based for loop to KeepRunning while loop pattern
78eddb8
Use value parameterization in decoding tests
ff38021
prefer mersenne twister prng over default one which is implemenation …
hatemhelal b16eaa9
prefer default_random_engine to avoid potential slowdown with Mersenn…
8f59198
Add overloads for decoding using a StringDictionaryBuilder
hatemhelal 28d76b7
Add benchmark for dictionary decoding using arrow builder
hatemhelal a8c1535
Add support for requesting a parquet column be read as a DictionaryArray
hatemhelal a6740f3
Make sure to update the schema when reading a column as a DictionaryA…
hatemhelal a357544
Basic unittests for reading DictionaryArray directly from parquet
hatemhelal 077a8f1
Move function definition to (hopefully) resolve appveyor build failur…
hatemhelal 7aac84c
Reworked encoding benchmark to reduce code duplication
hatemhelal a267a27
remove unnecessary inlines
babe52e
replace deprecated ReadableFileInterface with RandomAccessFile
6e65fdb
simplify ArrowReaderProperties and mark as experimental
4d7bb30
Refactor dictionary data generation into RandomArrayGenerator
hatemhelal 5fb9e86
Rework parquet encoding tests
7347cfa
Fix DecodeArrow from plain encoded columns
9da1331
Temporarily disable tests for arrow builder decoding from dictionary …
e6ca0db
Fix DictEncoding test: need to use PutSpaced instead of Put in setup
hatemhelal 7719b94
Use random string generator instead of poor JSON
hatemhelal 2c8fa7e
revert incorrect changes to PlainByteArrayDecoder::DecodeArrow method
5bc933b
use PutSpaced in test setup to correctly initialize encoded data
2026b51
Rework ByteArrayDecoder interface to reduce code duplication
99e9dee
Removed dependencies on arrow builder in parquet/encoding
023c022
Add virtual destructor to WrappedBuilderInterface
f644fff
Move schema fix logic to post-processing step
hatemhelal File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is the error?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Swapping in the cast implementation for setting up the
expected_dict_table results in an a test assertion failure inAssertTablesEqual. I used a debugger to work out that the trouble is the dictionary generated by the cast has indices with typearrow::Int32Typewhile the builder generated one has indices with typearrow::Int8Type.I don't know if this is actually an artifact of the trivial test cases that I used?