49761: colexec: add support for bit and some arithmetic binary operators r=yuzefovich a=yuzefovich **sem: unify division by zero check and fix it in a few places** Release note (bug fix): Previously, in some cases, CockroachDB didn't check whether the right argument of `Div` (`/`), `FloorDiv` (`//`), or `Mod` (`%`) operations was zero, so instead of correctly returning a "division by zero" error, we were returning `NaN`, and this is now fixed. Additionally, the error message of "modulus by zero" has been changed to "division by zero" to be inline with Postgres. **colexec: add support for bit and some arithmetic binary operators** This commit adds support for `Bitand`, `Bitor`, `Bitxor`, `FloorDiv`, and `Mod` binary operators for both native and datum-backed types. Release note (sql change): Vectorized execution engine now supports `Bitand` (`&`), `Bitor` (`|`), `Bitxor` (`^`), `FloorDiv` (`//`), and `Mod` (`%`) binary operators. Co-authored-by: Yahor Yuzefovich <[email protected]>
Showing with 303 additions and 103 deletions
This diff is collapsed.