zxealous commented on code in PR #10749:
URL: https://github.com/apache/doris/pull/10749#discussion_r918507521
##########
regression-test/suites/query/sql_functions/string_functions/test_string_function.groovy:
##########
@@ -38,6 +38,9 @@ suite("test_string_function", "query") {
qt_sql "select concat_ws(\"or\", \"d\", \"is\");"
qt_sql "select concat_ws(NULL, \"d\", \"is\");"
qt_sql "select concat_ws(\"or\", \"d\", NULL,\"is\");"
+ qt_sql "select concat_ws(\"or\", [\"d\", \"is\"]);"
+ qt_sql "select concat_ws(NULL, [\"d\", \"is\"]);"
+ qt_sql "select concat_ws(\"or\", [\"d\", NULL,\"is\"]);"
Review Comment:
done
##########
docs/zh-CN/docs/sql-manual/sql-functions/string-functions/concat_ws.md:
##########
@@ -58,6 +59,27 @@ mysql> select concat_ws("or", "d", NULL,"is");
+---------------------------------+
| doris |
+---------------------------------+
+
+mysql> select concat_ws("or", ["d", "is"]);
++-----------------------------------+
+| concat_ws('or', ARRAY('d', 'is')) |
++-----------------------------------+
+| doris |
++-----------------------------------+
+
+mysql> select concat_ws(NULL, ["d", "is"]);
++-----------------------------------+
+| concat_ws(NULL, ARRAY('d', 'is')) |
++-----------------------------------+
+| NULL |
++-----------------------------------+
+
+mysql> select concat_ws("or", ["d", NULL,"is"]);
++-----------------------------------------+
+| concat_ws('or', ARRAY('d', NULL, 'is')) |
++-----------------------------------------+
+| doris |
++-----------------------------------------+
```
### keywords
CONCAT_WS,CONCAT,WS
Review Comment:
done
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]