Commits


Andre Braga Reis authored and Andrew Lamb committed 6a5ed0a91c3
ARROW-11725: [Rust][DataFusion] Make use of the new divide_scalar kernel in arrow This is a small PR to make DataFusion use the just-merged `divide_scalar` arrow kernel (#9454). Performance-wise: * on the `arrow` side, this specialized kernel is ~40-50% faster than the standard `divide`, mostly due to not having to check for divide-by-zero on every row; * on the `datafusion` side, it can now skip the `scalar.to_array_of_size(num_rows)` allocation, which should be a decent win for operations on large arrays. The eventual goal is to have `op_scalar` variants for every arithmetic operation — `divide` will show the biggest performance gains but all variants should save DataFusion a (possibly expensive) allocation. Closes #9543 from abreis/datafusion-divide-scalar Authored-by: Andre Braga Reis <andre@brg.rs> Signed-off-by: Andrew Lamb <andrew@nerdnetworks.org>