alamb commented on issue #3159:
URL: 
https://github.com/apache/arrow-datafusion/issues/3159#issuecomment-1215884332

   @sarahyurick  here is an example of doing something similar for `array`: 
   
   
https://github.com/apache/arrow-datafusion/pull/3122/files#diff-c01a34949db6258aa1593f011ecf90f62cbde406acd5cdbf8b9b60b970ace1cfR2372-R2374
   
   ```rust
           let fun = BuiltinScalarFunction::MakeArray;
           // follow postgres convention and name result "array"
           Ok(Expr::ScalarFunction { fun, args }.alias("array"))
   ```
   
   So in other words you can probably do something like (untested):
   
   
   ```rust
   Ok(binary_expr(left, Operator::IsNotDistinctFrom, right).alias("..."))
   ```
   
   
https://github.com/apache/arrow-datafusion/blob/ee55d89cbf20f4a6d17fe399c72d60dca6d67912/datafusion/expr/src/operator.rs#L59
   


-- 
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]

Reply via email to