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
Passing wrong type into substr function causes the DataFusionError::InternalError
Internal error: The "substr" function can only accept strings.. This was likely caused by a bug in DataFusion's code and we would welcome that you file an bug report in our issue tracker
Describe the bug
Passing wrong type into
substrfunction causes theDataFusionError::InternalErrorTo Reproduce
Expected behavior
I'd expect the error kind to be
DataFusionError::Planprobably, like these ones: https://github.com/apache/arrow-datafusion/blob/c50268670f8bee2022a9892a0c67073fc360352a/datafusion/expr/src/type_coercion/aggregates.rs#L147-L150Additional context
I guess the reason is here: https://github.com/apache/arrow-datafusion/blob/c50268670f8bee2022a9892a0c67073fc360352a/datafusion/expr/src/built_in_function.rs#L1404-L1417
There are several usages of
InternalErrorin the file.No response