[FEA][JNI] Throw specific exception from Table.readJSON
instead of AssertionError
#14331
Labels
0 - Backlog
In queue waiting for assignment
cuIO
cuIO issue
feature request
New feature or request
libcudf
Affects libcudf (C++/CUDA) code.
Spark
Functionality that helps Spark RAPIDS
Milestone
Is your feature request related to a problem? Please describe.
Per the discussion at NVIDIA/spark-rapids#9304 (comment), the Spark plugin currently has to parse the error message from an
AssertionError
, which is an anti-pattern. This happens when the plugin callsTable.readJSON
where the input is not JSON format.This exception is thrown in the constructor for
Table
:Describe the solution you'd like
We should throw a specific exception instead.
Describe alternatives you've considered
None
Additional context
None
The text was updated successfully, but these errors were encountered: