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

[Minor] Clean up DecimalArray API Usage #1869

Merged
merged 11 commits into from
Mar 6, 2022

Conversation

alamb
Copy link
Contributor

@alamb alamb commented Feb 21, 2022

Draft as it builds on #1851

Which issue does this PR close?

N/A

Rationale for this change

Use a faster (less bounds checking) and more idiomatic API for creating DecimalArray mostly so that when others are looking for examples of how to create DecimalArrays they find one of these rather than DecimalBuilder

What changes are included in this PR?

Cleans up some DecimalArray creation using APIs added in apache/arrow-rs#1223

I didn't spend any time cleaning up binary.rs as I believe @liukun4515 has plans for that

Are there any user-facing changes?

@github-actions github-actions bot added ballista datafusion Changes in the datafusion crate sql SQL Planner labels Feb 21, 2022
@alamb alamb force-pushed the alamb/cleanup_decimal_array branch from 9e4f672 to c0a4784 Compare March 5, 2022 14:14
@alamb alamb changed the title Alamb/cleanup decimal array Clean up DecimalArray API Usage Mar 5, 2022
@alamb alamb marked this pull request as ready for review March 5, 2022 14:15
@liukun4515
Copy link
Contributor

I will review this tomorrow later.

@alamb alamb changed the title Clean up DecimalArray API Usage [Minor] Clean up DecimalArray API Usage Mar 6, 2022
@alamb alamb merged commit d082fa3 into apache:master Mar 6, 2022
@liukun4515
Copy link
Contributor

Draft as it builds on #1851

Which issue does this PR close?

N/A

Rationale for this change

Use a faster (less bounds checking) and more idiomatic API for creating DecimalArray mostly so that when others are looking for examples of how to create DecimalArrays they find one of these rather than DecimalBuilder

What changes are included in this PR?

Cleans up some DecimalArray creation using APIs added in apache/arrow-rs#1223

I didn't spend any time cleaning up binary.rs as I believe @liukun4515 has plans for that

Are there any user-facing changes?

Thanks for your refactor. @alamb
I will go through the codebase and find any place needed to clean up.

@alamb alamb deleted the alamb/cleanup_decimal_array branch March 7, 2022 12:12
@alamb
Copy link
Contributor Author

alamb commented Mar 7, 2022

I will go through the codebase and find any place needed to clean up.

Thank you @liukun4515

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
datafusion Changes in the datafusion crate sql SQL Planner
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants