-
Notifications
You must be signed in to change notification settings - Fork 738
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
Support Empty Column Projection in ParquetRecordBatchReader
#1537
Labels
enhancement
Any new improvement worthy of a entry in the changelog
parquet
Changes to the parquet crate
Comments
tustvold
added
the
enhancement
Any new improvement worthy of a entry in the changelog
label
Apr 11, 2022
This was referenced Apr 11, 2022
Merged
alamb
changed the title
Support Empty Column Projection in ParquetRecordBatchReader
Support Empty Column Projection in Apr 15, 2022
ParquetRecordBatchReader
tustvold
added a commit
to tustvold/arrow-datafusion
that referenced
this issue
Apr 20, 2022
tustvold
added a commit
to apache/datafusion
that referenced
this issue
Apr 21, 2022
* Remove workaround for apache/arrow-rs#1537 * Handle batches with no columns in SchemaAdapter
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
enhancement
Any new improvement worthy of a entry in the changelog
parquet
Changes to the parquet crate
Is your feature request related to a problem or challenge? Please describe what you are trying to do.
If an empty array is passed to
ArrowReader::get_record_reader_by_columns
it returns an error.Describe the solution you'd like
It would be advantageous to support an empty projection within ParquetRecordBatchReader, and instead use file metadata to return the requisite number of rows. This will need the ability to create a RecordBatch with no columns and a non-zero row count #1536
Describe alternatives you've considered
We could not add this functionality
Additional context
This would simplify the implementation of Hive based partitioning, amongst other things - apache/datafusion#2000
The text was updated successfully, but these errors were encountered: