This is an automated email from the ASF dual-hosted git repository.
yiguolei pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/master by this push:
new ca7b2e27a8 [regression-test](function) add regression test for
money_format with truncate (#16052)
ca7b2e27a8 is described below
commit ca7b2e27a8d8812d57083f9b23536fa5c231ba6f
Author: gnehil <[email protected]>
AuthorDate: Sat Feb 4 23:10:01 2023 +0800
[regression-test](function) add regression test for money_format with
truncate (#16052)
---
.../query_p0/sql_functions/string_functions/test_string_function.out | 3 +++
.../sql_functions/string_functions/test_string_function.groovy | 1 +
2 files changed, 4 insertions(+)
diff --git
a/regression-test/data/query_p0/sql_functions/string_functions/test_string_function.out
b/regression-test/data/query_p0/sql_functions/string_functions/test_string_function.out
index 671cdc2cc8..5e3bba66ba 100644
---
a/regression-test/data/query_p0/sql_functions/string_functions/test_string_function.out
+++
b/regression-test/data/query_p0/sql_functions/string_functions/test_string_function.out
@@ -182,6 +182,9 @@ ab d
-- !sql --
1,123.40
+-- !sql --
+1,000.00
+
-- !sql --
true
diff --git
a/regression-test/suites/query_p0/sql_functions/string_functions/test_string_function.groovy
b/regression-test/suites/query_p0/sql_functions/string_functions/test_string_function.groovy
index 569e7822c5..13d217dd68 100644
---
a/regression-test/suites/query_p0/sql_functions/string_functions/test_string_function.groovy
+++
b/regression-test/suites/query_p0/sql_functions/string_functions/test_string_function.groovy
@@ -97,6 +97,7 @@ suite("test_string_function") {
qt_sql "select money_format(17014116);"
qt_sql "select money_format(1123.456);"
qt_sql "select money_format(1123.4);"
+ qt_sql "select money_format(truncate(1000,10))"
qt_sql "select null_or_empty(null);"
qt_sql "select null_or_empty(\"\");"
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]