[FEA] Throw std::out_of_range
exception when an API involving indices includes an index larger than column size
#15315
Labels
feature request
New feature or request
Is your feature request related to a problem? Please describe.
There are APIs like
split
andslice
where some of the inputs are host-accessible index ranges. In such cases these ranges may represent indices that are out of bounds, and this can be verified without any introspection.Describe the solution you'd like
Instead of
cudf::logic_error
, we should throwstd::out_of_range
exceptions in these cases.Describe alternatives you've considered
None
Additional context
This proposal does not indicate that we should try to detect out of range indices in APIs like
gather
orscatter
. Those would require introspection of device data, which is out of scope for libcudf, so behavior in those cases remains undefined.The text was updated successfully, but these errors were encountered: