Skip to content

Add extra element to offsets - read path - part1 (Arrow compatibility) - #1932

Merged
joe-maley merged 8 commits into
devfrom
yt/3890_add_offset_extra_element_arrow
Dec 2, 2020
Merged

joe-maley merged 8 commits into
devfrom
yt/3890_add_offset_extra_element_arrow

Conversation

@ypatia

@ypatia ypatia commented Nov 24, 2020

Copy link
Copy Markdown
Member

This is part of a series of tickets that are going to address compatibility with Arrow in the area of offsets.
We have already implemented support for element offsets (instead of the default byte offsets).

This PR is addressing the first part (Read path only - simple version) of supporting an extra element in the offset array that refers to the size of the returned data. In other words the end of each successful read (INCOMPLETE or COMPLETED), we are appending an extra offset that points to the end of the buffer.

However in this first part if the user's buffer has no space for the extra element we are just erroring-out the read, instead of handing it gracefully. Proper handing of the memory issue will be part of another ticket.

Comment thread tiledb/sm/c_api/tiledb.h Outdated
Comment thread tiledb/sm/query/reader.cc Outdated
Comment thread tiledb/sm/query/reader.cc Outdated
Comment thread tiledb/sm/query/reader.cc Outdated
@ypatia
ypatia force-pushed the yt/3890_add_offset_extra_element_arrow branch 2 times, most recently from 5448da9 to a23b3b4 Compare November 27, 2020 13:33
@ypatia
ypatia force-pushed the yt/3890_add_offset_extra_element_arrow branch from a23b3b4 to 315176c Compare November 27, 2020 18:14

@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.

Looks great! I have a few style-related comments below, but it looks functionally correct to me.

Comment thread test/src/unit-var_offsets.cc
Comment thread test/src/unit-var_offsets.cc Outdated
Comment thread test/src/unit-var_offsets.cc Outdated
Comment thread tiledb/sm/config/config.h Outdated
Comment thread tiledb/sm/query/reader.cc
Comment thread tiledb/sm/query/reader.cc Outdated
Comment thread tiledb/sm/query/reader.cc Outdated

@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!

@ypatia

ypatia commented Dec 1, 2020

Copy link
Copy Markdown
Member Author

The openAPI specification part of the serialization changes can be found here: TileDB-Inc/TileDB-Cloud-API-Spec#217

@joe-maley

Copy link
Copy Markdown
Contributor

The new serialization changes LGTM. Let's hope this fixes the CI issue. Thanks!

@joe-maley
joe-maley merged commit 0142c53 into dev Dec 2, 2020
@joe-maley
joe-maley deleted the yt/3890_add_offset_extra_element_arrow branch December 2, 2020 14:03
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.

4 participants