Skip to content

Extra offset element in partial reads (Arrow compatibility) - #1970

Merged
joe-maley merged 6 commits into
devfrom
yt/3891_extra_offset_in_partial_reads
Jan 3, 2021
Merged

joe-maley merged 6 commits into
devfrom
yt/3891_extra_offset_in_partial_reads

Conversation

@ypatia

@ypatia ypatia commented Dec 24, 2020

Copy link
Copy Markdown
Member

This patch is an attempt to address the scenario that was not supported so far, where the user has enabled the usage of an extra element in the offset buffer (which indicates the size/length of data to be written), but the offsets buffer she has provided doesn't have space for the extra element.

This is a generic problem we solve today by partitioning the read ranges so that the results do not exceed the user's buffer sizes, so to support this we just make the subarray partitioner aware of the need for this extra element.

I have tried to address it with minimal changes, but I am not sure I fully understand the requirements, so please check the testcases I modified to confirm/correct my understanding.

@ypatia
ypatia force-pushed the yt/3891_extra_offset_in_partial_reads branch from 06fa3b8 to 2b25f3b Compare December 24, 2020 16:35
Base automatically changed from yt/3892_extra_element_offset_write_path to dev December 28, 2020 15:55
@joe-maley
joe-maley force-pushed the yt/3891_extra_offset_in_partial_reads branch from 2b25f3b to 577da82 Compare December 28, 2020 16:19
Comment thread test/src/unit-cppapi-var-offsets.cc

@joe-maley joe-maley left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great patch! This approach is much cleaner than the one I was envisioning. Great job. I left one minor test comment, but this LGTM otherwise.

@bekadavis9 bekadavis9 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@joe-maley
joe-maley merged commit 6c0fddd into dev Jan 3, 2021
@joe-maley
joe-maley deleted the yt/3891_extra_offset_in_partial_reads branch January 3, 2021 22:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants