forked from apache/arrow
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
apacheGH-43728: [Python] ChunkedArray fails gracefully on non-cpu dev…
…ices (apache#43795) ### Rationale for this change ChunkedArrays that are backed by non-cpu memory should not segfault when the user invokes an incompatible API. ### What changes are included in this PR? * Add IsCpu() to ChunkedArray * Throw a python exception for known incompatible APIs on non-cpu device ### Are these changes tested? Unit tests ### Are there any user-facing changes? The user should no longer see segfaults for certain APIs, just python exceptions. * GitHub Issue: apache#43728 Authored-by: Dane Pitkin <[email protected]> Signed-off-by: Dane Pitkin <[email protected]>
- Loading branch information
1 parent
6382c0a
commit 50219ef
Showing
4 changed files
with
218 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.