erenavsarogullari opened a new pull request, #1312:
URL: https://github.com/apache/datafusion-comet/pull/1312

   ## Which issue does this PR close?
   Related to Epic: https://github.com/apache/datafusion-comet/issues/1042
   `arrays_overlap`: `select arrays_overlap(array('hello', '-', 'world'), 
array('hello'))` => `hello`
   DataFusion' s array_has_any has same behavior with Spark 's arrays_overlap 
function
   `Spark:` 
https://docs.databricks.com/en/sql/language-manual/functions/arrays_overlap.html
   `DataFusion:` 
https://datafusion.apache.org/user-guide/sql/scalar_functions.html#array-has-any
   
   ## Rationale for this change
   Defined under Epic: https://github.com/apache/datafusion-comet/issues/1042
   
   ## What changes are included in this PR?
   `planner.rs:` Maps Spark 's `arrays_overlap` function to DataFusion 
`array_has_any` physical expression from Spark physical expression with return 
type: DataType::Boolean,
   `expr.proto:` arrays_overlap message has been added,
   `QueryPlanSerde.scala:` arrays_overlap pattern matching case has been added,
   `CometExpressionSuite.scala:` A new UT has been added for arrays_overlap 
function.
   
   ## How are these changes tested?
   A new UT has been added.
   


-- 
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: github-unsubscr...@datafusion.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org
For additional commands, e-mail: github-h...@datafusion.apache.org

Reply via email to