Skip to content
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

feat(c/driver/postgresql): FIXED_SIZED_LIST Writer support #1975

Merged
merged 1 commit into from
Jul 6, 2024

Conversation

WillAyd
Copy link
Contributor

@WillAyd WillAyd commented Jul 5, 2024

Another enhancement for #1882

@WillAyd WillAyd requested a review from lidavidm as a code owner July 5, 2024 16:09
@github-actions github-actions bot added this to the ADBC Libraries 14 milestone Jul 5, 2024
@@ -452,13 +454,21 @@ class PostgresCopyListFieldWriter : public PostgresCopyFieldWriter {
constexpr int32_t ndim = 1;
constexpr int32_t has_null_flags = 0;

const int32_t start = ArrowArrayViewListChildOffset(array_view_, index);
const int32_t end = ArrowArrayViewListChildOffset(array_view_, index + 1);
// TODO: the LARGE_LIST should use 64 bit indexes
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Just discovered this as an issue in the current implementation - if there happens to be a LARGE_LIST that has a gap between the start/end offsets exceeding 32 bits of storage then we have to raise, as it would exceed what postgres allows for the dim field

I figured easier done in a follow up, but happy to do in this as well

Copy link
Member

Choose a reason for hiding this comment

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

I'm OK with a followup since I'm just going to merge this :)

Copy link
Member

@lidavidm lidavidm left a comment

Choose a reason for hiding this comment

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

Thanks!

@lidavidm lidavidm merged commit 22c5696 into apache:main Jul 6, 2024
63 of 65 checks passed
@WillAyd WillAyd deleted the fixed-size-list branch July 6, 2024 13:37
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.

2 participants