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

type_id and value_offset are incorrect for sliced UnionArray #2087

Merged
merged 2 commits into from Jul 16, 2022

Conversation

viirya
Copy link
Member

@viirya viirya commented Jul 16, 2022

Which issue does this PR close?

Closes #2086.

Rationale for this change

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 Jul 16, 2022
@codecov-commenter
Copy link

codecov-commenter commented Jul 16, 2022

Codecov Report

Merging #2087 (781c606) into master (cb7e5b0) will increase coverage by 0.03%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master    #2087      +/-   ##
==========================================
+ Coverage   83.68%   83.71%   +0.03%     
==========================================
  Files         224      224              
  Lines       58826    59005     +179     
==========================================
+ Hits        49227    49396     +169     
- Misses       9599     9609      +10     
Impacted Files Coverage Δ
arrow/src/array/array_union.rs 90.89% <100.00%> (+0.74%) ⬆️
arrow/src/datatypes/datatype.rs 64.05% <0.00%> (-0.36%) ⬇️
parquet/src/encodings/encoding.rs 93.43% <0.00%> (-0.20%) ⬇️
parquet_derive/src/parquet_field.rs 65.75% <0.00%> (ø)
parquet/src/arrow/record_reader/mod.rs 89.17% <0.00%> (ø)
parquet/src/arrow/arrow_reader.rs 92.76% <0.00%> (+0.09%) ⬆️
arrow/src/compute/kernels/take.rs 95.46% <0.00%> (+0.19%) ⬆️
arrow/src/ipc/writer.rs 85.46% <0.00%> (+0.41%) ⬆️
parquet/src/arrow/array_reader/byte_array.rs 86.31% <0.00%> (+1.83%) ⬆️

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 cb7e5b0...781c606. Read the comment docs.

@@ -383,6 +383,7 @@ mod tests {
use crate::array::*;
use crate::buffer::Buffer;
use crate::datatypes::{DataType, Field};
use crate::record_batch::RecordBatch;
Copy link
Contributor

Choose a reason for hiding this comment

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

?

Copy link
Member Author

Choose a reason for hiding this comment

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

Hm? I need use RecordBatch, otherwise:

error[E0412]: cannot find type `RecordBatch` in this scope
   --> arrow/src/array/array_union.rs:994:49
    |
994 |         fn test_slice_union(record_batch_slice: RecordBatch) {
    |                                                 ^^^^^^^^^^^ not found in this scope

Copy link
Contributor

Choose a reason for hiding this comment

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

Oh, the diff rendered strangely on my phone - made it look like there were no other changes to this file

arrow/src/array/array_union.rs Show resolved Hide resolved
@tustvold tustvold merged commit 54e9181 into apache:master Jul 16, 2022
@ursabot
Copy link

ursabot commented Jul 16, 2022

Benchmark runs are scheduled for baseline = a6379fe and contender = 54e9181. 54e9181 is a master commit associated with this PR. Results will be available as each benchmark for each run completes.
Conbench compare runs links:
[Skipped ⚠️ Benchmarking of arrow-rs-commits is not supported on ec2-t3-xlarge-us-east-2] ec2-t3-xlarge-us-east-2
[Skipped ⚠️ Benchmarking of arrow-rs-commits is not supported on test-mac-arm] test-mac-arm
[Skipped ⚠️ Benchmarking of arrow-rs-commits is not supported on ursa-i9-9960x] ursa-i9-9960x
[Skipped ⚠️ Benchmarking of arrow-rs-commits is not supported on ursa-thinkcentre-m75q] ursa-thinkcentre-m75q
Buildkite builds:
Supported benchmarks:
ec2-t3-xlarge-us-east-2: Supported benchmark langs: Python, R. Runs only benchmarks with cloud = True
test-mac-arm: Supported benchmark langs: C++, Python, R
ursa-i9-9960x: Supported benchmark langs: Python, R, JavaScript
ursa-thinkcentre-m75q: Supported benchmark langs: C++, Java

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.

type_id and value_offset are incorrect for sliced UnionArray
4 participants