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

Clean up DictionaryArray construction in test #1314

Merged
merged 1 commit into from
Feb 19, 2022

Conversation

alamb
Copy link
Contributor

@alamb alamb commented Feb 15, 2022

Draft as builds on #1296 from @viirya

Which issue does this PR close?

Re #1299
Re #1295

Rationale for this change

The new API introduced for #1299 wasn't ready in time for #1296

What changes are included in this PR?

Update a test from #1296 to use DictionaryArray::try_new rather than directly creating buffers

Are there any user-facing changes?

No

@alamb alamb added the development-process Related to development process of arrow-rs label Feb 15, 2022
@github-actions github-actions bot added the arrow Changes to the arrow crate label Feb 15, 2022
.build()
.unwrap();
let dict_array = Int16DictionaryArray::from(dict_data);
let dict_array = DictionaryArray::<Int16Type>::try_new(&keys, &values).unwrap();
Copy link
Member

Choose a reason for hiding this comment

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

nice 👍

@alamb alamb force-pushed the alamb/clean_array_construction branch from 7b700a5 to 3899a4f Compare February 16, 2022 17:45
@alamb alamb marked this pull request as ready for review February 16, 2022 17:53
@nevi-me nevi-me merged commit 193b64c into apache:master Feb 19, 2022
@alamb alamb deleted the alamb/clean_array_construction branch February 28, 2022 19:42
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 development-process Related to development process of arrow-rs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants