bitwise*
operators won't check arguments type when short circuited (Found by SQLancer-NoREC)
#11260
Labels
bug
Something isn't working
Describe the bug
All bitwise operators https://datafusion.apache.org/user-guide/sql/operators.html#op-bit-and don't allow two arguments both to be
Double
type, but if the bitwise expression is short-circuited, then type check won't be performed.This bug can be reproduced with any bitwise operator
It's better to return a planning error, because strictly (3.1<<3.2) should be an invalid expression like the following one, and can't be short-circuited
To Reproduce
No response
Expected behavior
No response
Additional context
Found by SQLancer #11030
The text was updated successfully, but these errors were encountered: