alamb commented on issue #1610: URL: https://github.com/apache/arrow-datafusion/issues/1610#issuecomment-1016866295
`binary_array_op_scalar!` calls `compute_op_scalar!` https://github.com/apache/arrow-datafusion/blob/ad392fd529f9f8631b90271f7dbf3a4f2feadb7b/datafusion/src/physical_plan/expressions/binary.rs#L595-L601 `compute_op_scalar!` then calls the `eq_scalar` or other kernel in https://github.com/apache/arrow-datafusion/blob/ad392fd529f9f8631b90271f7dbf3a4f2feadb7b/datafusion/src/physical_plan/expressions/binary.rs#L475-L489 Specifically, this bit of macro magic: https://github.com/apache/arrow-datafusion/blob/ad392fd529f9f8631b90271f7dbf3a4f2feadb7b/datafusion/src/physical_plan/expressions/binary.rs#L484 Slaps a `_scalar` on to the argument So when invoked with `$OP = lt`, this ```rust paste::expr! {[<$OP _scalar>]} ``` Becomes ```rust lt_scalar ``` Does that help @matthewmturner ? -- 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]
