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


##########
regression-test/suites/nereids_p0/sql_functions/string_functions/test_string_function.groovy:
##########
@@ -188,6 +188,31 @@ suite("test_string_function") {
     qt_sql "select elt(1, \"hello\", \"doris\");"
     qt_sql "select elt(2, \"hello\", \"doris\");"
     qt_sql "select elt(3, \"hello\", \"doris\");"
+    qt_sql """
+    SELECT t1.no
+      ,t1.sub_str
+      ,t1.str
+      ,substring_index(t1.str, t1.sub_str, -1)

Review Comment:
   should write 2 cases:
   1. insert the data into a table and then use select statement to test it.
   2. test literal value



-- 
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-unsubscr...@doris.apache.org

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


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

Reply via email to