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-43727: [Python] RecordBatch fails gracefully on non-cpu devi…
…ces (apache#43729) ### Rationale for this change Throw a python exception if a RecordBatch API isn't able to be used when the memory is backed by non-cpu devices. ### What changes are included in this PR? * Assert the device is CPU for APIs that only support CPU ### Are these changes tested? Pytests ### Are there any user-facing changes? The user experiences Python exceptions instead of segfaults for unsupported APIs. * GitHub Issue: apache#43727 Authored-by: Dane Pitkin <dpitkin@apache.org> Signed-off-by: Joris Van den Bossche <jorisvandenbossche@gmail.com>
- Loading branch information
1 parent
86c84df
commit 8b66363
Showing
4 changed files
with
241 additions
and
1 deletion.
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.