2010YOUY01 opened a new issue, #11249: URL: https://github.com/apache/datafusion/issues/11249
### Describe the bug This is not a bug, but the error message can be better: The following queries' problem is just `bitwise_*` operator takes the not-supported argument type, so it should be a planning error. Current `Internal error` messages can be confusing, or cause a false positive for testing code. ```shell > select 2.0 << 1.5; Internal error: Data type Float64 not supported for binary operation 'bitwise_shift_left' on dyn arrays. 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 > select 3.14 >> 1.2; Internal error: Data type Float64 not supported for binary operation 'bitwise_shift_right' on dyn arrays. 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 > select 3.14 | 1.3; Internal error: Data type Float64 not supported for binary operation 'bitwise_or' on dyn arrays. 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 > select 1.3 ^ 3.14; Internal error: Data type Float64 not supported for binary operation 'bitwise_xor' on dyn arrays. 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 > select 1.5 & 1.6; Internal error: Data type Float64 not supported for binary operation 'bitwise_and' on dyn arrays. 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 ``` ### To Reproduce _No response_ ### Expected behavior _No response_ ### Additional context _No response_ -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
