This is an automated email from the ASF dual-hosted git repository.

kxiao pushed a commit to branch branch-2.0
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/branch-2.0 by this push:
     new 436af9c6ab3 [fix](test) update case 
nereids_syntax_p0/test_timestamp_arithmetic.groovy (#25738)
436af9c6ab3 is described below

commit 436af9c6ab356e761e0924885a6fd9ada9fd635f
Author: morrySnow <[email protected]>
AuthorDate: Mon Oct 23 13:02:39 2023 +0800

    [fix](test) update case nereids_syntax_p0/test_timestamp_arithmetic.groovy 
(#25738)
---
 .../suites/nereids_syntax_p0/test_timestamp_arithmetic.groovy       | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git 
a/regression-test/suites/nereids_syntax_p0/test_timestamp_arithmetic.groovy 
b/regression-test/suites/nereids_syntax_p0/test_timestamp_arithmetic.groovy
index 46bb27fe42d..ad2b36dc271 100644
--- a/regression-test/suites/nereids_syntax_p0/test_timestamp_arithmetic.groovy
+++ b/regression-test/suites/nereids_syntax_p0/test_timestamp_arithmetic.groovy
@@ -22,12 +22,12 @@ suite("nereids_timestamp_arithmetic") {
 
     test {
         sql = "select bitmap_empty() + interval 1 year;"
-        exception = "Unexpected exception: Operand 'bitmap_empty()' of 
timestamp arithmetic expression 'years_add(bitmap_empty(), INTERVAL 1 YEAR)' 
returns type 'BITMAP'. Expected type 'TIMESTAMP/DATE/DATETIME'"
+        exception = "timestamp arithmetic could not contains object type"
     }
 
     test {
         sql = "select date '20200808' + interval array() day;"
-        exception = "the second argument must be a scalar type. but it is 
array()"
+        exception = "timestamp arithmetic could not contains complex type"
     }
 
     sql """
@@ -61,4 +61,4 @@ suite("nereids_timestamp_arithmetic") {
     qt_test_add """
         SELECT c2 + INTERVAL 1 DAY, c3 + INTERVAL 1 SECOND, c4 + INTERVAL 1 
DAY, c5 + INTERVAL 1 DAY, c6 + INTERVAL 1 DAY FROM nereids_test_ta
     """
-}
\ No newline at end of file
+}


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to