Incorrect nested error wrapped to ArrowError:External
variant for joins
#4981
Labels
bug
Something isn't working
ArrowError:External
variant for joins
#4981
Describe the bug
This line of code makes impossible to get real reason of error.
It could produce such error:
External error: Arrow error: External error: Arrow error: External error: Arrow error: External error: Arrow error: Csv error: ...
as a string-message, not a typeThat's actually really bad, because under
Csv error
it could be useful info. But instead of this I receive text error with too many nestedExternal
variants.To Reproduce
Occurrence depends on execution plan and my data that caused this is rather large.
I believe it should be possible to cover with simple test of error type:
Expected behavior
I expect to be able to take error type instead of message in string format.
However, I see that it's reference and need to figure out right way to handle this case. But current one breaks error handling system for datafustion.
Additional context
I would like to fix this behavior
And it probably make sense to request implementing
find_root
forarrow
(like exists for datafusion error) - but that's out of scopeThe text was updated successfully, but these errors were encountered: