alamb commented on code in PR #13928: URL: https://github.com/apache/datafusion/pull/13928#discussion_r1899129235
########## docs/source/user-guide/sql/scalar_functions.md: ########## @@ -2907,26 +2906,26 @@ array_has(array, element) ### `array_has_any` -Returns true if the array contains the element. +Returns true if any elements exist in both arrays. ``` -array_has(array, element) +array_has_any(array, sub-array) ``` #### Arguments - **array**: Array expression. Can be a constant, column, or function, and any combination of array operators. -- **element**: Scalar or Array expression. Can be a constant, column, or function, and any combination of array operators. +- **sub-array**: Array expression. Can be a constant, column, or function, and any combination of array operators. #### Example ```sql -> select array_has([1, 2, 3], 2); -+-----------------------------+ -| array_has(List([1,2,3]), 2) | -+-----------------------------+ -| true | -+-----------------------------+ +> select array_has_any([1, 2, 3], [3, 4]); Review Comment: Agree -- thank you @Chen-Yuan-Lai for your diligence while porting the code to also fix the docs -- 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