Skip to content

GH-41684: [C++][Python] Add optional null_bitmap to MapArray::FromArrays - #41757

Merged
jorisvandenbossche merged 5 commits into
apache:mainfrom
AlenkaF:gh-41684-map-array-mask
May 31, 2024
Merged

jorisvandenbossche merged 5 commits into
apache:mainfrom
AlenkaF:gh-41684-map-array-mask

Conversation

@AlenkaF

@AlenkaF AlenkaF commented May 21, 2024 •

Copy link
Copy Markdown
Member

Rationale for this change

When constructing a MapArray with FromArrays one can not supply a null_bitmap.

What changes are included in this PR?

Optional null_bitmap argument is added to MapArray::FromArrays.

Are these changes tested?

TODO (have them locally, need to clean them up and commit.

Are there any user-facing changes?

No.

@AlenkaF
AlenkaF marked this pull request as ready for review May 27, 2024 17:59

@jorisvandenbossche jorisvandenbossche left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Looks good! Just two small comments

Comment thread cpp/src/arrow/array/array_nested.cc Resolved
Comment thread python/pyarrow/tests/test_array.py Resolved

@ianmcook ianmcook left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I tested this and confirmed it fixes the issue I described in #41684. Thanks!

@felipecrv felipecrv left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Sorry for not reviewing this before merge.

Comment thread cpp/src/arrow/array/array_nested.cc Resolved
Comment thread cpp/src/arrow/array/array_nested.cc Resolved
Comment thread cpp/src/arrow/array/array_nested.cc Resolved
Comment thread cpp/src/arrow/array/array_nested.cc Resolved
@AlenkaF

AlenkaF commented Jun 3, 2024

Copy link
Copy Markdown
Member Author

Thank you for the comments @felipecrv! Will create a follow-up issue and PR (tomorrow) 👍

@conbench-apache-arrow

Copy link
Copy Markdown

After merging your PR, Conbench analyzed the 7 benchmarking runs that have been run so far on merge-commit 255dbf9.

There were no benchmark performance regressions. 🎉

The full Conbench report has more details. It also includes information about 103 possible false positives for unstable benchmarks that are known to sometimes produce them.

felipecrv pushed a commit that referenced this pull request Jun 13, 2024
…ys (#41956)

### Rationale for this change

There have been some new comments regarding the work done in #41757.

### What changes are included in this PR?

This PR addresses the comments from #41757 (review)

### Are these changes tested?

Yes. Existing tests should pass.

### Are there any user-facing changes?

No.
* GitHub Issue: #41955

Lead-authored-by: AlenkaF <frim.alenka@gmail.com>
Co-authored-by: Alenka Frim <AlenkaF@users.noreply.github.com>
Co-authored-by: Sutou Kouhei <kou@cozmixng.org>
Signed-off-by: Felipe Oliveira Carvalho <felipekde@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants