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

implement take kernel for null arrays #939

Merged
merged 1 commit into from
Nov 11, 2021

Conversation

bjchambers
Copy link
Contributor

Which issue does this PR close?

Closes #938 .

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 Nov 10, 2021
@codecov-commenter
Copy link

Codecov Report

Merging #939 (1214341) into master (1945f6f) will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #939   +/-   ##
=======================================
  Coverage   82.34%   82.35%           
=======================================
  Files         168      168           
  Lines       48520    48541   +21     
=======================================
+ Hits        39955    39976   +21     
  Misses       8565     8565           
Impacted Files Coverage Δ
arrow/src/compute/kernels/take.rs 95.22% <100.00%> (+0.14%) ⬆️
parquet/src/encodings/encoding.rs 93.52% <0.00%> (-0.20%) ⬇️
arrow/src/error.rs 15.55% <0.00%> (+2.22%) ⬆️

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 1945f6f...1214341. Read the comment docs.

Copy link
Contributor

@alamb alamb left a comment

Choose a reason for hiding this comment

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

This looks great @bjchambers -- thank you

}

#[test]
fn test_null_array_indices_out_of_bounds() {
Copy link
Contributor

Choose a reason for hiding this comment

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

👍 for this test -- I was going to say something about validating bounds of the take indexes but this covers it. 👍

@alamb alamb merged commit ef1cd07 into apache:master Nov 11, 2021
@alamb
Copy link
Contributor

alamb commented Nov 11, 2021

Thanks again @bjchambers

alamb pushed a commit that referenced this pull request Nov 11, 2021
alamb added a commit that referenced this pull request Nov 12, 2021
Co-authored-by: Ben Chambers <35960+bjchambers@users.noreply.github.com>
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.

Take kernel panics on null array
3 participants