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

Internal Remove GenericStringArray::from_vec and GenericStringArray::from_opt_vec #1147

Merged
merged 1 commit into from
Jan 11, 2022

Conversation

alamb
Copy link
Contributor

@alamb alamb commented Jan 9, 2022

Which issue does this PR close?

Minor change

Rationale for this change

Less code is easier to maintain and faster to compile

I noticed this while working on #1145 / #197. These two functions are totally redundant, and are not part of the public api (are pub(crate))

What changes are included in this PR?

  1. remove named functions (including one unsafe usage) and update callsites

Are there any user-facing changes?

  1. No all functions are pub(crate)

@github-actions github-actions bot added the arrow Changes to the arrow crate label Jan 9, 2022
@codecov-commenter
Copy link

Codecov Report

Merging #1147 (e88e526) into master (719096b) will decrease coverage by 0.01%.
The diff coverage is 80.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1147      +/-   ##
==========================================
- Coverage   82.55%   82.54%   -0.02%     
==========================================
  Files         169      169              
  Lines       50456    50436      -20     
==========================================
- Hits        41655    41632      -23     
- Misses       8801     8804       +3     
Impacted Files Coverage Δ
arrow/src/array/array_string.rs 97.29% <66.66%> (+0.21%) ⬆️
arrow/src/array/equal/mod.rs 93.11% <100.00%> (-0.03%) ⬇️
parquet_derive/src/parquet_field.rs 65.75% <0.00%> (-0.69%) ⬇️
parquet/src/encodings/encoding.rs 93.52% <0.00%> (-0.20%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 719096b...e88e526. Read the comment docs.

@jhorstmann
Copy link
Contributor

Less code is nice 🚀

@alamb alamb merged commit 79d4ab0 into apache:master Jan 11, 2022
@alamb alamb deleted the alamb/remove_redundant branch January 11, 2022 19:11
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.

3 participants