Skip to content
This repository has been archived by the owner on Feb 18, 2024. It is now read-only.

Added pop to utf8/binary/fixedSize MutableArray #966

Merged
merged 5 commits into from
Apr 29, 2022

Conversation

ygf11
Copy link
Contributor

@ygf11 ygf11 commented Apr 28, 2022

No description provided.

@codecov
Copy link

codecov bot commented Apr 28, 2022

Codecov Report

Merging #966 (296d7e7) into main (8fb3b8d) will increase coverage by 0.39%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main     #966      +/-   ##
==========================================
+ Coverage   71.09%   71.49%   +0.39%     
==========================================
  Files         351      355       +4     
  Lines       19456    19602     +146     
==========================================
+ Hits        13832    14014     +182     
+ Misses       5624     5588      -36     
Impacted Files Coverage Δ
src/array/binary/mutable.rs 83.53% <100.00%> (+4.96%) ⬆️
src/array/fixed_size_binary/mutable.rs 86.13% <100.00%> (+2.44%) ⬆️
src/array/utf8/mutable.rs 87.02% <100.00%> (+5.41%) ⬆️
src/io/parquet/write/primitive/nested.rs 83.33% <0.00%> (-3.04%) ⬇️
src/io/parquet/write/mod.rs 58.51% <0.00%> (-1.96%) ⬇️
src/bitmap/utils/slice_iterator.rs 86.20% <0.00%> (-1.73%) ⬇️
src/io/parquet/read/statistics/primitive.rs 58.33% <0.00%> (-1.67%) ⬇️
src/io/parquet/read/statistics/utf8.rs 81.81% <0.00%> (ø)
src/io/parquet/read/statistics/list.rs 55.17% <0.00%> (ø)
src/io/parquet/read/statistics/dictionary.rs 46.15% <0.00%> (ø)
... and 15 more

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 8fb3b8d...296d7e7. Read the comment docs.

Copy link
Owner

@jorgecarleitao jorgecarleitao left a comment

Choose a reason for hiding this comment

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

Thanks @ygf11 , looks awesome!

I left minor suggestions but it is otherwise ready to merge.

src/array/binary/mutable.rs Outdated Show resolved Hide resolved
src/array/fixed_size_binary/mutable.rs Outdated Show resolved Hide resolved
src/array/utf8/mutable.rs Outdated Show resolved Hide resolved
ygf11 and others added 3 commits April 29, 2022 14:08
Co-authored-by: Jorge Leitao <jorgecarleitao@gmail.com>
Co-authored-by: Jorge Leitao <jorgecarleitao@gmail.com>
Co-authored-by: Jorge Leitao <jorgecarleitao@gmail.com>
@ygf11
Copy link
Contributor Author

ygf11 commented Apr 29, 2022

BTW, I am confused why there is no need to operate validity in push_null() of FixedSizeBinaryArray?

fn push_null(&mut self) {
self.values.resize(self.values.len() + self.size, 0);
}

@jorgecarleitao
Copy link
Owner

BTW, I am confused why there is no need to operate validity in push_null() of FixedSizeBinaryArray?

fn push_null(&mut self) {
self.values.resize(self.values.len() + self.size, 0);
}

it is a bug!

@ygf11
Copy link
Contributor Author

ygf11 commented Apr 29, 2022

it is a bug!

I will try to fix it in another pr.

@jorgecarleitao jorgecarleitao merged commit b93333c into jorgecarleitao:main Apr 29, 2022
@jorgecarleitao jorgecarleitao added the feature A new feature label Apr 29, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature A new feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants