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: Add IPC schema encoding #568

Merged
merged 5 commits into from
Jul 31, 2024
Merged

Conversation

bkietz
Copy link
Member

@bkietz bkietz commented Jul 26, 2024

  • added ArrowIpcEncoderEncodeSchema
  • added a parameter to ArrowIpcEncoderFinalizeBuffer which controls whether encapsulated/padded message buffers will be produced instead of raw
  • tests reuse the decoder tests, replacing arrow C++'s encoder with ArrowIpcEncoder

Extracted from #555 (review)

@bkietz bkietz requested a review from paleolimbot July 26, 2024 20:03
Copy link
Member

@paleolimbot paleolimbot left a comment

Choose a reason for hiding this comment

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

Thank you!

n = ArrowSchemaToString(schema, out.data(), out.size(), /*recursive=*/true);
}
return out;
}
Copy link
Member

Choose a reason for hiding this comment

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

This is nanoarrow's fault for not having a proper schema comparison; however, this is technically not comparing metadata or flags. We could tack those on to this output string or punt to a better schema comparison (your call!).

Copy link
Member Author

Choose a reason for hiding this comment

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

For now, I'll just add the metadata to the string.

@bkietz bkietz force-pushed the ipc-schema-encoding branch from 2e55b7b to ad96b40 Compare July 29, 2024 17:26
@bkietz bkietz merged commit 9668b18 into apache:main Jul 31, 2024
34 checks passed
@bkietz bkietz deleted the ipc-schema-encoding branch July 31, 2024 01:11
@paleolimbot paleolimbot added this to the nanoarrow 0.6.0 milestone Sep 17, 2024
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