You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by "yiguolei (via GitHub)" <gi...@apache.org> on 2023/06/05 00:25:43 UTC

[GitHub] [doris] yiguolei commented on a diff in pull request #20085: [Improve](array-function)Improve array function intersect

yiguolei commented on code in PR #20085:
URL: https://github.com/apache/doris/pull/20085#discussion_r1217285233


##########
regression-test/suites/query_p0/sql_functions/array_functions/test_array_functions_by_literal.groovy:
##########
@@ -219,6 +219,12 @@ suite("test_array_functions_by_literal") {
     qt_sql "select (array(cast ('2023-02-06' as datev2), cast ('2023-02-05' as datev2)))[1:2]"
     qt_sql "select (array(cast (111.111 as decimalv3(6,3)),cast (222.222 as decimalv3(6,3))))[1:2]"
 
+    // array_intersect
+    qt_sql_intersect_1 "select array_intersect([1,2,3], [1,2,3], [null])"

Review Comment:
   Is the result stable? For example, sometimes return [null, 1] , sometimes return [1, null] ? 



-- 
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: commits-unsubscribe@doris.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org