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

Add PrimitiveArray::new (#3879) #3909

Merged
merged 3 commits into from
Mar 23, 2023
Merged

Conversation

tustvold
Copy link
Contributor

Which issue does this PR close?

Part of #3879

Rationale for this change

Adds a safe API to construct a PrimitiveArray from its constituent parts

What changes are included in this PR?

Are there any user-facing changes?

@github-actions github-actions bot added the arrow Changes to the arrow crate label Mar 22, 2023
@tustvold tustvold force-pushed the primitive-array-new branch from fb5f209 to 2a1c9bf Compare March 22, 2023 19:06
fn assert_compatible(data_type: &DataType) {
assert!(
Self::is_compatible(data_type),
"PrimitiveArray expected ArrayData with type {} got {}",
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
"PrimitiveArray expected ArrayData with type {} got {}",
"PrimitiveArray expected ScalarBuffer with type {} got {}",

@tustvold tustvold merged commit 2d68ed5 into apache:master Mar 23, 2023
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.

2 participants