From 8a1f3853019af5b58a5281b8212bd6d70e48a082 Mon Sep 17 00:00:00 2001 From: zengyan1 <171838137@qq.com> Date: Wed, 11 Oct 2023 10:39:12 +0800 Subject: [PATCH] bvt case --- test/distributed/cases/dtype/datetime.result | 8 ++++---- test/distributed/cases/dtype/datetime.test | 2 -- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/test/distributed/cases/dtype/datetime.result b/test/distributed/cases/dtype/datetime.result index 540f671819f4..08ed933ab5ce 100644 --- a/test/distributed/cases/dtype/datetime.result +++ b/test/distributed/cases/dtype/datetime.result @@ -207,16 +207,16 @@ a drop table t1; SELECT CAST(20220101 AS datetime(0)) BETWEEN 20220101 AND -1; CAST(20220101 AS datetime(0)) BETWEEN 20220101 AND -1 -false +ERROR 20203 (HY000): invalid argument operator cast, bad value [BIGINT DATETIME] SELECT CAST(00000501 AS datetime(0)) NOT BETWEEN 100 AND -1; CAST(00000501 AS datetime(0)) NOT BETWEEN 100 AND -1 -true +ERROR 20203 (HY000): invalid argument operator cast, bad value [BIGINT DATETIME] SELECT CAST(0 AS datetime(0)) BETWEEN 0 AND -1; CAST(0 AS datetime(0)) BETWEEN 0 AND -1 -NULL +ERROR 20203 (HY000): invalid argument operator cast, bad value [BIGINT DATETIME] SELECT CAST(1000101 as datetime(0)) BETWEEN '1000-01-01' and '1000-01-02'; CAST(1000101 as datetime(0)) BETWEEN '1000-01-01' and '1000-01-02' -false +ERROR 20203 (HY000): invalid argument operator cast, bad value [BIGINT DATETIME] drop table if exists t1; drop table if exists t2; drop table if exists t3; diff --git a/test/distributed/cases/dtype/datetime.test b/test/distributed/cases/dtype/datetime.test index 4fb5961407f8..384596c4b849 100644 --- a/test/distributed/cases/dtype/datetime.test +++ b/test/distributed/cases/dtype/datetime.test @@ -136,12 +136,10 @@ SELECT * FROM t1 WHERE coalesce(a)!=20220301; SELECT * FROM t1 WHERE coalesce(a) in ('2022-03-01','2022-03-01 00:00:00.0001'); -- @bvt:issue drop table t1; --- @bvt:issue#3301 SELECT CAST(20220101 AS datetime(0)) BETWEEN 20220101 AND -1; SELECT CAST(00000501 AS datetime(0)) NOT BETWEEN 100 AND -1; SELECT CAST(0 AS datetime(0)) BETWEEN 0 AND -1; SELECT CAST(1000101 as datetime(0)) BETWEEN '1000-01-01' and '1000-01-02'; --- @bvt:issue #Test cases of update with single table drop table if exists t1;