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

Implement ArrowSerialize/ArrowDeserialize for Utf8Scalar #105

Closed
emilk opened this issue Mar 8, 2023 · 0 comments
Closed

Implement ArrowSerialize/ArrowDeserialize for Utf8Scalar #105

emilk opened this issue Mar 8, 2023 · 0 comments

Comments

@emilk
Copy link
Contributor

emilk commented Mar 8, 2023

Utf8Scalar is similar to Option<String> except they are refcounted, and thus support O(1) cloning and slicing.

In other words, this should work:

use arrow2_convert::{ArrowDeserialize, ArrowField, ArrowSerialize};

#[derive(ArrowField, ArrowSerialize, ArrowDeserialize)]
pub struct Foo {
    pub string: arrow2::scalar::Utf8Scalar<i32>,
}
@emilk emilk changed the title Implement ArrowSerialize/ArrowDeserialize for Utf8Scalar and Utf8Array Implement ArrowSerialize/ArrowDeserialize for Utf8Scalar Mar 8, 2023
@emilk emilk closed this as completed Mar 30, 2023
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 a pull request may close this issue.

1 participant