type_to_form
returns non-JSON string in case of error
#1932
Labels
bug
The problem described is something that must be fixed
Version of Awkward Array
main
Description and code to reproduce
When using the
RDataFrame
integration, users attempting to work with unsupported column types see a cryptic error message. This occurs becausetype_to_form
returns the string"unsupported type"
for unsupported types, which then triggers an exception when Awkward attempts to calljson.loads
on the generated form.Could we use
std::variant
here to catch the error case?The text was updated successfully, but these errors were encountered: