You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by "zhangstar333 (via GitHub)" <gi...@apache.org> on 2023/03/27 03:52:20 UTC

[GitHub] [doris] zhangstar333 commented on a diff in pull request #18116: [vectorized](function) Support array_shuffle and shuffle function.

zhangstar333 commented on code in PR #18116:
URL: https://github.com/apache/doris/pull/18116#discussion_r1148757075


##########
regression-test/suites/query_p0/sql_functions/array_functions/test_array_functions.groovy:
##########
@@ -112,6 +112,12 @@ suite("test_array_functions") {
     qt_select "SELECT k1, array_enumerate_uniq(k7) from ${tableName} ORDER BY k1"
     qt_select "SELECT k1, array_enumerate_uniq(k8) from ${tableName} ORDER BY k1"
     qt_select "SELECT k1, array_enumerate_uniq(k10) from ${tableName} ORDER BY k1"
+    qt_select_array_shuffle1 "SELECT k1, k2, array_shuffle(k2, 0), shuffle(k2, 0) from ${tableName} ORDER BY k1"
+    qt_select_array_shuffle2 "SELECT k1, k5, array_shuffle(k5, 0), shuffle(k5, 0) from ${tableName} ORDER BY k1"

Review Comment:
   the test case of result maybe add other array function to ensure generate stable results



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