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

GH-42116: [C++] Support list-view typed arrays in array_take and array_filter #42117

Merged
merged 4 commits into from
Jun 27, 2024

Conversation

felipecrv
Copy link
Contributor

@felipecrv felipecrv commented Jun 12, 2024

Rationale for this change

Completing the type coverage in array_take and array_filter.

What changes are included in this PR?

Add support for ListView and LargeListView in "array_take", "array_filter" and all the functions that indirectly rely on these to do their thing.

Are these changes tested?

New test cases were added.

@felipecrv felipecrv requested a review from pitrou June 12, 2024 00:49
@felipecrv
Copy link
Contributor Author

@pitrou

        FILE SIZE        VM SIZE
     --------------  --------------
      [NEW]    +318  [NEW]    +164    __ZNSt3__120__shared_ptr_emplaceIN5arrow12BooleanArrayENS_9allocatorIS2_EEEC1B8ue170006IJxRKNS_10shared_ptrINS1_6BufferEEEDnixEEES4_DpOT_
      [NEW]    +201  [NEW]     +40    __ZNSt3__120__shared_ptr_emplaceIN5arrow12BooleanArrayENS_9allocatorIS2_EEEC1B8ue170006IJxRKNS_10shared_ptrINS1_6BufferEEEDnixEEES4_DpOT_.cold.1
      [DEL]    -200  [DEL]     -40    __ZNSt3__120__shared_ptr_emplaceIN5arrow12BooleanArrayENS_9allocatorIS2_EEEC1B8ue170006IJxRNS_10shared_ptrINS1_6BufferEEEDnixEEES4_DpOT_.cold.1
      [DEL]    -264  [DEL]    -184    arrow::Result<std::__1::shared_ptr<arrow::BooleanArray> >::~Result()
     -22.1%    -264 -24.7%    -264    arrow::compute::internal::(anonymous namespace)::DropNullArray(std::__1::shared_ptr<arrow::Array> const&, arrow::compute::ExecContext*)
      [DEL]    -317  [DEL]    -164    __ZNSt3__120__shared_ptr_emplaceIN5arrow12BooleanArrayENS_9allocatorIS2_EEEC1B8ue170006IJxRNS_10shared_ptrINS1_6BufferEEEDnixEEES4_DpOT_
      -0.5%    -680  -0.8%    -496    TOTAL
@pitrou
Copy link
Member

pitrou commented Jun 27, 2024

Is it worth reviewing this before #41700 gets merged and rebased upon?

@felipecrv
Copy link
Contributor Author

Is it worth reviewing this before #41700 gets merged and rebased upon?

It is. I would like to merge any one of the PRs as soon as I can. Rebasing either way won't be hard.

@felipecrv felipecrv requested a review from pitrou June 27, 2024 13:21
@github-actions github-actions bot added awaiting changes Awaiting changes and removed awaiting committer review Awaiting committer review labels Jun 27, 2024
Copy link
Member

@pitrou pitrou left a comment

Choose a reason for hiding this comment

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

LGTM apart from adding a comment for the decision on null offsets.

@github-actions github-actions bot added awaiting change review Awaiting change review and removed awaiting changes Awaiting changes labels Jun 27, 2024
@felipecrv
Copy link
Contributor Author

CI failures are related to ORC.

@felipecrv felipecrv merged commit 62ee676 into apache:main Jun 27, 2024
35 of 39 checks passed
@felipecrv felipecrv removed the awaiting change review Awaiting change review label Jun 27, 2024
@felipecrv felipecrv deleted the list_view_take branch June 27, 2024 14:33
Copy link

After merging your PR, Conbench analyzed the 4 benchmarking runs that have been run so far on merge-commit 62ee676.

There were no benchmark performance regressions. 🎉

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

zanmato1984 pushed a commit to zanmato1984/arrow that referenced this pull request Jul 9, 2024
…d array_filter (apache#42117)

### Rationale for this change

Completing the type coverage in array_take and array_filter.

### What changes are included in this PR?

Add support for `ListView` and `LargeListView` in `"array_take"`, `"array_filter"` and all the functions that indirectly rely on these to do their thing.

### Are these changes tested?

New test cases were added.
* GitHub Issue: apache#42116

Authored-by: Felipe Oliveira Carvalho <[email protected]>
Signed-off-by: Felipe Oliveira Carvalho <[email protected]>
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.

2 participants