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

Support StringView and BinaryView in CDataInterface #6171

Merged
merged 2 commits into from
Aug 2, 2024

Conversation

a10y
Copy link
Contributor

@a10y a10y commented Aug 1, 2024

Which issue does this PR close?

Closes #6170

Rationale for this change

Get C FFI schema conversions for view types working

What changes are included in this PR?

Implement conversions in C FFI for Utf8View and BinaryView

Are there any user-facing changes?

Schemas with views can now be serialized over the C FFI

@github-actions github-actions bot added the arrow Changes to the arrow crate label Aug 1, 2024
@alamb alamb changed the title fix round-trip for view schema in CFFI Support StringView and BinaryView in CDataInterface Aug 2, 2024
Copy link
Contributor

@alamb alamb 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 @a10y -- looks great

@@ -390,8 +390,10 @@ impl TryFrom<&FFI_ArrowSchema> for DataType {
"e" => DataType::Float16,
"f" => DataType::Float32,
"g" => DataType::Float64,
"vz" => DataType::BinaryView,
Copy link
Contributor

Choose a reason for hiding this comment

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

I wouble checked that vz and vu are the correct format strings: https://arrow.apache.org/docs/format/CDataInterface.html#data-type-description-format-strings

@alamb alamb merged commit df59cdd into apache:master Aug 2, 2024
26 checks passed
@a10y a10y deleted the aduffy/fix-ffi-views branch August 2, 2024 15:07
@ion-elgreco
Copy link

@alamb @a10y when is this going to land in a release? :)

@alamb
Copy link
Contributor

alamb commented Aug 7, 2024

This change will be included in #6016

This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
arrow Changes to the arrow crate
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support BinaryView Types in C Schema FFI
3 participants