You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
## Rationale for this change
Table APIs should throw python exception instead of segfault if they don't support operating on non-cpu memory.
### What changes are included in this PR?
* Add is_cpu() property to Table
* Add _assert_cpu() checks to Table APIs that only support operating on cpu memory
### Are these changes tested?
* Unit tests
### Are there any user-facing changes?
No, besides receiving a friendlier error in certain scenarios.
* GitHub Issue: #43973
Lead-authored-by: Dane Pitkin <dpitkin@apache.org>
Co-authored-by: Joris Van den Bossche <jorisvandenbossche@gmail.com>
Signed-off-by: Joris Van den Bossche <jorisvandenbossche@gmail.com>
…pache#43974)
## Rationale for this change
Table APIs should throw python exception instead of segfault if they don't support operating on non-cpu memory.
### What changes are included in this PR?
* Add is_cpu() property to Table
* Add _assert_cpu() checks to Table APIs that only support operating on cpu memory
### Are these changes tested?
* Unit tests
### Are there any user-facing changes?
No, besides receiving a friendlier error in certain scenarios.
* GitHub Issue: apache#43973
Lead-authored-by: Dane Pitkin <dpitkin@apache.org>
Co-authored-by: Joris Van den Bossche <jorisvandenbossche@gmail.com>
Signed-off-by: Joris Van den Bossche <jorisvandenbossche@gmail.com>
Describe the enhancement requested
PyArrow should raise a python exception instead of segfault when a Table API doesn't support executing on non-cpu memory.
Component(s)
Python
The text was updated successfully, but these errors were encountered: