You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I found a regression in the new LimitedRecordBatchReader wrapper.
RecordBatchReader.read_batch() relies on the reader's file_io, blob_field_indices, and vector_field_indices attributes when it creates OffsetRows. Other batch-reader wrappers propagate those attributes from the inner reader, but LimitedRecordBatchReader currently doesn't. Since RawFileSplitRead now wraps append-only readers with this class whenever with_limit() is set, iterator reads lose the BLOB/VECTOR metadata.
A minimal repro is an append-only table with a BLOB column:
On this PR that raises TypeError: Field at position ... is not a BLOB field, while the same table works without with_limit(). Please propagate the inner reader metadata in LimitedRecordBatchReader (and add a regression test for with_limit() + to_iterator() + get_blob(); get_vector() is affected by the same missing metadata).
I found a regression in the new LimitedRecordBatchReader wrapper.
RecordBatchReader.read_batch() relies on the reader's file_io, blob_field_indices, and vector_field_indices attributes when it creates OffsetRows. Other batch-reader wrappers propagate those attributes from the inner reader, but LimitedRecordBatchReader currently doesn't. Since RawFileSplitRead now wraps append-only readers with this class whenever with_limit() is set, iterator reads lose the BLOB/VECTOR metadata.
A minimal repro is an append-only table with a BLOB column:
On this PR that raises TypeError: Field at position ... is not a BLOB field, while the same table works without with_limit(). Please propagate the inner reader metadata in LimitedRecordBatchReader (and add a regression test for with_limit() + to_iterator() + get_blob(); get_vector() is affected by the same missing metadata).
Rechecked the latest commit. The metadata propagation in LimitedRecordBatchReader addresses my previous concern: with_limit() + to_iterator() + row.get_blob() now works in my local repro, and the focused limit/blob tests pass locally.
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
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.
Purpose
Push limit down to the reader layer for append table.
Tests