From 13cd1481f92551a76b528676ba42522680af9257 Mon Sep 17 00:00:00 2001 From: caorong <caorong13@huawei.com> Date: Sat, 28 Dec 2024 17:24:37 +0800 Subject: [PATCH] =?UTF-8?q?CI=E5=A4=B1=E8=B4=A5=E7=94=A8=E4=BE=8B=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...ngauss_Compatibility_Ignore_Error_Case0003 | 5 +++++ ...ngauss_Compatibility_Ignore_Error_Case0004 | 6 ++++++ ...ngauss_Compatibility_Ignore_Error_Case0006 | 1 + ...ngauss_Compatibility_Ignore_Error_Case0007 | 2 ++ ...ngauss_Compatibility_Ignore_Error_Case0009 | 4 ++-- ...ngauss_Compatibility_Ignore_Error_Case0010 | 2 ++ ...ngauss_Compatibility_Ignore_Error_Case0016 | 4 ++++ ...ngauss_Compatibility_Ignore_Error_Case0019 | 4 ++++ ...ngauss_Compatibility_Ignore_Error_Case0023 | 20 +++++++++---------- ...ngauss_Compatibility_Ignore_Error_Case0024 | 1 + ...ngauss_Compatibility_Ignore_Error_Case0026 | 1 + ...ngauss_Compatibility_Ignore_Error_Case0028 | 10 +++++----- ...ngauss_Compatibility_Ignore_Error_Case0035 | 6 ++++++ ...ngauss_Compatibility_Ignore_Error_Case0036 | 7 +++++++ ...ngauss_Compatibility_Ignore_Error_Case0037 | 1 + ...ngauss_Compatibility_Ignore_Error_Case0039 | 1 + ...ngauss_Compatibility_Ignore_Error_Case0040 | 4 ++++ ...ngauss_Compatibility_Ignore_Error_Case0041 | 1 + ...ngauss_Compatibility_Ignore_Error_Case0043 | 1 + ...ngauss_Compatibility_Ignore_Error_Case0045 | 4 ++++ ...ngauss_Compatibility_Ignore_Error_Case0046 | 1 + ...ngauss_Compatibility_Ignore_Error_Case0048 | 1 + ...ngauss_Compatibility_Ignore_Error_Case0050 | 2 ++ ...ngauss_Compatibility_Ignore_Error_Case0052 | 2 ++ ...ngauss_Compatibility_Ignore_Error_Case0053 | 2 ++ ...ngauss_Compatibility_Ignore_Error_Case0054 | 2 ++ ...ngauss_Compatibility_Ignore_Error_Case0055 | 2 ++ ...ngauss_Compatibility_Ignore_Error_Case0056 | 1 + ...ngauss_Compatibility_Ignore_Error_Case0057 | 1 + 29 files changed, 82 insertions(+), 17 deletions(-) diff --git a/openGaussBase/expect/COMPATIBILITY/GRAMMAR/HINT/Opengauss_Compatibility_Ignore_Error_Case0003 b/openGaussBase/expect/COMPATIBILITY/GRAMMAR/HINT/Opengauss_Compatibility_Ignore_Error_Case0003 index 8a0086aa6f..f223781a19 100644 --- a/openGaussBase/expect/COMPATIBILITY/GRAMMAR/HINT/Opengauss_Compatibility_Ignore_Error_Case0003 +++ b/openGaussBase/expect/COMPATIBILITY/GRAMMAR/HINT/Opengauss_Compatibility_Ignore_Error_Case0003 @@ -10,6 +10,7 @@ SQL SUCCESS insert into t_ignore_0003 values(1); SQL SUCCESS insert /*+ ignore_error */ into t_ignore_0003 values(1); +?.* SQL SUCCESS select * FROM t_ignore_0003; +----+ @@ -19,6 +20,7 @@ select * FROM t_ignore_0003; +----+ --step3:插入多行,一个重复值,其它为有效值;expect:遇到重复值,不中止,除重复值外,其他有效值插入成功,1 warning insert /*+ ignore_error */ into t_ignore_0003 values(1),(2),(3); +?.* SQL SUCCESS select * FROM t_ignore_0003; +----+ @@ -30,6 +32,9 @@ select * FROM t_ignore_0003; +----+ --step4:插入多行,多个重复值; expect:并未插入成功,几个重复值几个warning insert /*+ ignore_error */ into t_ignore_0003 values(1),(2),(3),(4); +?.* +?.* +?.* SQL SUCCESS select count(*) FROM t_ignore_0003; +-------+ diff --git a/openGaussBase/expect/COMPATIBILITY/GRAMMAR/HINT/Opengauss_Compatibility_Ignore_Error_Case0004 b/openGaussBase/expect/COMPATIBILITY/GRAMMAR/HINT/Opengauss_Compatibility_Ignore_Error_Case0004 index 5de2e3021d..faae75c588 100644 --- a/openGaussBase/expect/COMPATIBILITY/GRAMMAR/HINT/Opengauss_Compatibility_Ignore_Error_Case0004 +++ b/openGaussBase/expect/COMPATIBILITY/GRAMMAR/HINT/Opengauss_Compatibility_Ignore_Error_Case0004 @@ -10,6 +10,7 @@ insert into t_ignore_0004 values(1,1,1); SQL SUCCESS --step2:插入单行,一个重复值;expect:并未插入成功,1 warning insert /*+ ignore_error */ into t_ignore_0004 values(1,2,3); +?.* SQL SUCCESS select count(*) FROM t_ignore_0004; +-------+ @@ -19,6 +20,7 @@ select count(*) FROM t_ignore_0004; +-------+ --step3:插入单行,2个重复值;expect:并未插入成功,1 warning insert /*+ ignore_error */ into t_ignore_0004 values(1,1,2); +?.* SQL SUCCESS select count(*) FROM t_ignore_0004; +-------+ @@ -28,6 +30,7 @@ select count(*) FROM t_ignore_0004; +-------+ --step4:插入多行,其中有一行插入重复值; expect:遇到重复值,不中止,除重复值所在行外,其它有效值插入成功,1warning insert /*+ ignore_error */ into t_ignore_0004 values(1,1,1),(2,3,4); +?.* SQL SUCCESS select count(*) FROM t_ignore_0004; +-------+ @@ -37,6 +40,9 @@ select count(*) FROM t_ignore_0004; +-------+ --step5:插入多行,其中多行插入重复值; expect:遇到重复值,不中止,除重复值所在行外,其它有效值插入成功,几行含重复值,几个warning insert /*+ ignore_error */ into t_ignore_0004 values(1,1,1), (1,1,2),(2,3,4),(5,6,7); +?.* +?.* +?.* SQL SUCCESS select count(*) FROM t_ignore_0004; +-------+ diff --git a/openGaussBase/expect/COMPATIBILITY/GRAMMAR/HINT/Opengauss_Compatibility_Ignore_Error_Case0006 b/openGaussBase/expect/COMPATIBILITY/GRAMMAR/HINT/Opengauss_Compatibility_Ignore_Error_Case0006 index 58a256a1bf..cd1a853da5 100644 --- a/openGaussBase/expect/COMPATIBILITY/GRAMMAR/HINT/Opengauss_Compatibility_Ignore_Error_Case0006 +++ b/openGaussBase/expect/COMPATIBILITY/GRAMMAR/HINT/Opengauss_Compatibility_Ignore_Error_Case0006 @@ -37,6 +37,7 @@ select count(*) from t_ignore_0006; insert into t_ignore_0006 values(1,1); SQL SUCCESS insert /*+ ignore_error */ into t_ignore_0006 values(1,1),(2,3),(3,2),(2000,2); +?.* SQL SUCCESS select count(*) from t_ignore_0006; +-------+ diff --git a/openGaussBase/expect/COMPATIBILITY/GRAMMAR/HINT/Opengauss_Compatibility_Ignore_Error_Case0007 b/openGaussBase/expect/COMPATIBILITY/GRAMMAR/HINT/Opengauss_Compatibility_Ignore_Error_Case0007 index 2ed2b2224d..1c080d70e0 100644 --- a/openGaussBase/expect/COMPATIBILITY/GRAMMAR/HINT/Opengauss_Compatibility_Ignore_Error_Case0007 +++ b/openGaussBase/expect/COMPATIBILITY/GRAMMAR/HINT/Opengauss_Compatibility_Ignore_Error_Case0007 @@ -49,6 +49,8 @@ select count(*) from t_ignore_0007; +-------+ --step4:插入多行无法匹配和在范围内的值;expect:忽略无法匹配所在行,其他行正常插入,几行无法匹配,几行wanring insert /*+ ignore_error */ into t_ignore_0007 values(1,1,'2023-03-16 16:27:04'),(2,2,'2024-03-16 16:27:04'),(3,3,'2000-03-16 16:27:04'),(3,3,'2001-03-16 16:27:04'); +?.* +?.* SQL SUCCESS select count(*) from t_ignore_0007; +-------+ diff --git a/openGaussBase/expect/COMPATIBILITY/GRAMMAR/HINT/Opengauss_Compatibility_Ignore_Error_Case0009 b/openGaussBase/expect/COMPATIBILITY/GRAMMAR/HINT/Opengauss_Compatibility_Ignore_Error_Case0009 index 32b634f625..06751eb4ab 100644 --- a/openGaussBase/expect/COMPATIBILITY/GRAMMAR/HINT/Opengauss_Compatibility_Ignore_Error_Case0009 +++ b/openGaussBase/expect/COMPATIBILITY/GRAMMAR/HINT/Opengauss_Compatibility_Ignore_Error_Case0009 @@ -23,7 +23,7 @@ select count(*) from t_ignore_0009; +-------+ | count | +-------+ -| | +| 0 | +-------+ --step3:插入一行分区键为null;expect:插入失败,合理报错 insert /*+ ignore_error */ into t_ignore_0009 values(null,1); @@ -32,7 +32,7 @@ select count(*) from t_ignore_0009; +-------+ | count | +-------+ -| | +| 0 | +-------+ --step4:插入分区键为重复值和在范围内的正常值;expect:正常值单独执行可以插入,其他值插入失败,合理报错 insert into t_ignore_0009 values(1,1); diff --git a/openGaussBase/expect/COMPATIBILITY/GRAMMAR/HINT/Opengauss_Compatibility_Ignore_Error_Case0010 b/openGaussBase/expect/COMPATIBILITY/GRAMMAR/HINT/Opengauss_Compatibility_Ignore_Error_Case0010 index 1b2c1b87e2..e11055dd90 100644 --- a/openGaussBase/expect/COMPATIBILITY/GRAMMAR/HINT/Opengauss_Compatibility_Ignore_Error_Case0010 +++ b/openGaussBase/expect/COMPATIBILITY/GRAMMAR/HINT/Opengauss_Compatibility_Ignore_Error_Case0010 @@ -49,8 +49,10 @@ select * from t_ignore_0010; insert into t_ignore_0010 partition (p_201901) values ('201903', '1', '1', 1); SQL SUCCESS insert /*+ ignore_error */ into t_ignore_0010 partition (p_201901) values('201904', '1', '1', 1), ('201903', '1', '1', 1); +?.* SQL SUCCESS insert /*+ ignore_error */ into t_ignore_0010 subpartition (p_201901_a) values('201905', '1', '1', 1), ('201903', '1', '1', 1); +?.* SQL SUCCESS select * from t_ignore_0010; +------------+-----------+---------+-----------+ diff --git a/openGaussBase/expect/COMPATIBILITY/GRAMMAR/HINT/Opengauss_Compatibility_Ignore_Error_Case0016 b/openGaussBase/expect/COMPATIBILITY/GRAMMAR/HINT/Opengauss_Compatibility_Ignore_Error_Case0016 index 47fe610a03..c740d5056c 100644 --- a/openGaussBase/expect/COMPATIBILITY/GRAMMAR/HINT/Opengauss_Compatibility_Ignore_Error_Case0016 +++ b/openGaussBase/expect/COMPATIBILITY/GRAMMAR/HINT/Opengauss_Compatibility_Ignore_Error_Case0016 @@ -10,6 +10,7 @@ insert into t_ignore_0016 values(1, 'test1'); SQL SUCCESS --step2:插入单行,一个重复值;expect:并未插入成功,1 warning insert /*+ ignore_error */ into t_ignore_0016 values(1, 'test2'); +?.* SQL SUCCESS select * FROM t_ignore_0016; +----+----------------------+ @@ -19,6 +20,7 @@ select * FROM t_ignore_0016; +----+----------------------+ --step4:插入多行,其中有一行插入重复值; expect:遇到重复值,不中止,除重复值所在行外,其它有效值插入成功,1warning insert /*+ ignore_error */ into t_ignore_0016 values(1, 'test3'),(2, 'test4'); +?.* SQL SUCCESS select * FROM t_ignore_0016; +----+----------------------+ @@ -29,6 +31,8 @@ select * FROM t_ignore_0016; +----+----------------------+ --step5:插入多行,其中多行插入重复值; expect:遇到重复值,不中止,除重复值所在行外,其它有效值插入成功,几行含重复值,几个warning insert /*+ ignore_error */ into t_ignore_0016 values(1, 'test5'),(2, 'test6'),(3, 'test7'); +?.* +?.* SQL SUCCESS select * FROM t_ignore_0016; +----+----------------------+ diff --git a/openGaussBase/expect/COMPATIBILITY/GRAMMAR/HINT/Opengauss_Compatibility_Ignore_Error_Case0019 b/openGaussBase/expect/COMPATIBILITY/GRAMMAR/HINT/Opengauss_Compatibility_Ignore_Error_Case0019 index 5e7b800784..6d81abe16e 100644 --- a/openGaussBase/expect/COMPATIBILITY/GRAMMAR/HINT/Opengauss_Compatibility_Ignore_Error_Case0019 +++ b/openGaussBase/expect/COMPATIBILITY/GRAMMAR/HINT/Opengauss_Compatibility_Ignore_Error_Case0019 @@ -25,6 +25,7 @@ select * FROM t_ignore_0016; | 0 | test1 | +----+----------------------+ insert /*+ ignore_error */ into t_ignore_0016 values(null, 'test2'); +?.* SQL SUCCESS select * FROM t_ignore_0016; +----+----------------------+ @@ -38,6 +39,7 @@ SQL SUCCESS insert into t_ignore_0016 values(0, 'test3'); SQL SUCCESS insert /*+ ignore_error */ into t_ignore_0016 values(null, 'test4'); +?.* SQL SUCCESS select * FROM t_ignore_0016; +----+----------------------+ @@ -49,6 +51,8 @@ delete from t_ignore_0016; SQL SUCCESS --step5:插入多行null; expect:忽略全部插入,假如插入3行null,则3非空warning+2重复warning insert /*+ ignore_error */ into t_ignore_0016 values(null, 'test5'), (null, 'test6'), (null, 'test7'); +?.* +?.* SQL SUCCESS select * FROM t_ignore_0016; +----+----------------------+ diff --git a/openGaussBase/expect/COMPATIBILITY/GRAMMAR/HINT/Opengauss_Compatibility_Ignore_Error_Case0023 b/openGaussBase/expect/COMPATIBILITY/GRAMMAR/HINT/Opengauss_Compatibility_Ignore_Error_Case0023 index f90f079228..787a20f56f 100644 --- a/openGaussBase/expect/COMPATIBILITY/GRAMMAR/HINT/Opengauss_Compatibility_Ignore_Error_Case0023 +++ b/openGaussBase/expect/COMPATIBILITY/GRAMMAR/HINT/Opengauss_Compatibility_Ignore_Error_Case0023 @@ -19,23 +19,23 @@ SQL SUCCESS insert /*+ ignore_error */ into t_ignore_0016 values(null, 'test2'); SQL SUCCESS select * FROM t_ignore_0016; -+-------------------------------+----------------------+ -| c1 | c2 | -+-------------------------------+----------------------+ ?.* -+-------------------------------+----------------------+ +?\| c1.* \| c2.* \| +?.* +?.* +?.* delete from t_ignore_0016; SQL SUCCESS --step4:插入多行,其中有一行插入null; expect:遇到null,不中止,除null所在行外,其它有效值插入成功,1warning insert /*+ ignore_error */ into t_ignore_0016 values(null, 'test3'),('2022-7-21 16:35:32', 'test4'); SQL SUCCESS select * FROM t_ignore_0016; -+-------------------------------+----------------------+ -| c1 | c2 | -+-------------------------------+----------------------+ -?.*| test3 | -| 2022-07-21 16:35:32.000000000 | test4 | -+-------------------------------+----------------------+ +?.* +?\| c1.* \| c2.* \| +?.* +?.*\| test3.* \| +?\| 2022-07-21 16:35:32.* \| test4.* \| +?.* --step5:清理环境;expect:成功 drop table if exists t_ignore_0016 cascade; SQL SUCCESS diff --git a/openGaussBase/expect/COMPATIBILITY/GRAMMAR/HINT/Opengauss_Compatibility_Ignore_Error_Case0024 b/openGaussBase/expect/COMPATIBILITY/GRAMMAR/HINT/Opengauss_Compatibility_Ignore_Error_Case0024 index cbc092669d..43d6c5f3bc 100644 --- a/openGaussBase/expect/COMPATIBILITY/GRAMMAR/HINT/Opengauss_Compatibility_Ignore_Error_Case0024 +++ b/openGaussBase/expect/COMPATIBILITY/GRAMMAR/HINT/Opengauss_Compatibility_Ignore_Error_Case0024 @@ -17,6 +17,7 @@ select * FROM t_ignore_0016; +----+ --step3:ignore插入值在列类型范围外; expect:以opengauss中该类型的最大值代替插入,1warning insert /*+ ignore_error */ into t_ignore_0016 values(256); +?.* SQL SUCCESS select * FROM t_ignore_0016; +-----+ diff --git a/openGaussBase/expect/COMPATIBILITY/GRAMMAR/HINT/Opengauss_Compatibility_Ignore_Error_Case0026 b/openGaussBase/expect/COMPATIBILITY/GRAMMAR/HINT/Opengauss_Compatibility_Ignore_Error_Case0026 index fbe81f5393..20252b2ddf 100644 --- a/openGaussBase/expect/COMPATIBILITY/GRAMMAR/HINT/Opengauss_Compatibility_Ignore_Error_Case0026 +++ b/openGaussBase/expect/COMPATIBILITY/GRAMMAR/HINT/Opengauss_Compatibility_Ignore_Error_Case0026 @@ -8,6 +8,7 @@ create table t_ignore_0016(c1 int); SQL SUCCESS --step2:ignore插入timestamp;expect:插入当前列默认零值,1warning insert /*+ ignore_error */ into t_ignore_0016 values(timestamp '2022-07-21 00:01:02'); +?.* SQL SUCCESS select * FROM t_ignore_0016; +------------+ diff --git a/openGaussBase/expect/COMPATIBILITY/GRAMMAR/HINT/Opengauss_Compatibility_Ignore_Error_Case0028 b/openGaussBase/expect/COMPATIBILITY/GRAMMAR/HINT/Opengauss_Compatibility_Ignore_Error_Case0028 index 5befc1f025..a4e6817980 100644 --- a/openGaussBase/expect/COMPATIBILITY/GRAMMAR/HINT/Opengauss_Compatibility_Ignore_Error_Case0028 +++ b/openGaussBase/expect/COMPATIBILITY/GRAMMAR/HINT/Opengauss_Compatibility_Ignore_Error_Case0028 @@ -63,11 +63,11 @@ SQL SUCCESS update /*+ ignore_error */ t_ignore_0011 set c15 = null; SQL SUCCESS select * from t_ignore_0011; -+----+----+----+----+----+----+-----+------+------------+----------+-------------------------------+----------------------+-----+-----+------+ -| c1 | c2 | c3 | c4 | c5 | c6 | c7 | c8 | c9 | c10 | c11 | c12 | c13 | c14 | c15 | -+----+----+----+----+----+----+-----+------+------------+----------+-------------------------------+----------------------+-----+-----+------+ -?| 0 | 0 | | 0 | 0 | 0 | 0.0 | 0.00 | 1970-01-01 | 00:00:00 |.* -+----+----+----+----+----+----+-----+------+------------+----------+-------------------------------+----------------------+-----+-----+------+ +?.* +?\| c1 \| c2 \| c3 \| c4 \| c5 \| c6 \| c7 \| c8 \| c9.* \| c10.* \| c11.* \| c12.* \| c13 \| c14 \| c15 \| +?.* +?\| 0 \| 0 \| \| 0 \| 0 \| 0 \| 0.0 \| 0.00 \| 1970-01-01 \| 00:00:00 \|.* +?.* --step5:清理环境;expect:成功 drop table if exists t_ignore_0011 cascade; SQL SUCCESS diff --git a/openGaussBase/expect/COMPATIBILITY/GRAMMAR/HINT/Opengauss_Compatibility_Ignore_Error_Case0035 b/openGaussBase/expect/COMPATIBILITY/GRAMMAR/HINT/Opengauss_Compatibility_Ignore_Error_Case0035 index a2055a20b4..7ba5c8c6a4 100644 --- a/openGaussBase/expect/COMPATIBILITY/GRAMMAR/HINT/Opengauss_Compatibility_Ignore_Error_Case0035 +++ b/openGaussBase/expect/COMPATIBILITY/GRAMMAR/HINT/Opengauss_Compatibility_Ignore_Error_Case0035 @@ -26,6 +26,7 @@ select * from t_ignore_0010; +----+ --step3:更新为重复值;expect:并未更新成功,1 warning update /*+ ignore_error */ t_ignore_0010 set c1 = 1 where c1 =2 ; +?.* SQL SUCCESS select * from t_ignore_0010; +----+ @@ -50,6 +51,8 @@ when 3 then 5 when 4 then 5 end where c1 in (3, 4); +?.* +?.* SQL SUCCESS select * from t_ignore_0010; +----+ @@ -75,6 +78,8 @@ when 7 then 666 when 8 then 666 end where c1 in (6, 7, 8); +?.* +?.* SQL SUCCESS select * from t_ignore_0010; +-----+ @@ -100,6 +105,7 @@ when 10 then 666 when 11 then 111 end where c1 in (9, 10, 11); +?.* SQL SUCCESS select * from t_ignore_0010; +-----+ diff --git a/openGaussBase/expect/COMPATIBILITY/GRAMMAR/HINT/Opengauss_Compatibility_Ignore_Error_Case0036 b/openGaussBase/expect/COMPATIBILITY/GRAMMAR/HINT/Opengauss_Compatibility_Ignore_Error_Case0036 index d682f50aff..9161f81148 100644 --- a/openGaussBase/expect/COMPATIBILITY/GRAMMAR/HINT/Opengauss_Compatibility_Ignore_Error_Case0036 +++ b/openGaussBase/expect/COMPATIBILITY/GRAMMAR/HINT/Opengauss_Compatibility_Ignore_Error_Case0036 @@ -27,6 +27,7 @@ select * from t_ignore_0010; +----+----+ --step3:更新唯一约束的列为重复值;expect:并未更新成功,1 warning update /*+ ignore_error */ t_ignore_0010 set c1 = 1 where c2 =2 ; +?.* SQL SUCCESS select * from t_ignore_0010; +----+----+ @@ -46,6 +47,7 @@ select * from t_ignore_0010; +----+----+ --step4:更新多列,一个值为重复值,一个值为有效值;expect:整行忽略,实际未更新,1warning提示 update /*+ ignore_error */ t_ignore_0010 set c1 = 1, c2 = 30 where c2 = 3; +?.* SQL SUCCESS select * from t_ignore_0010; +----+----+ @@ -70,6 +72,8 @@ when 3 then 5 when 4 then 5 end where c2 in (3, 4); +?.* +?.* SQL SUCCESS select * from t_ignore_0010; +----+----+ @@ -95,6 +99,8 @@ when 7 then 666 when 8 then 666 end where c2 in (6, 7, 8); +?.* +?.* SQL SUCCESS select * from t_ignore_0010; +-----+----+ @@ -120,6 +126,7 @@ when 10 then 666 when 11 then 111 end where c2 in (9, 10, 11); +?.* SQL SUCCESS select * from t_ignore_0010; +-----+----+ diff --git a/openGaussBase/expect/COMPATIBILITY/GRAMMAR/HINT/Opengauss_Compatibility_Ignore_Error_Case0037 b/openGaussBase/expect/COMPATIBILITY/GRAMMAR/HINT/Opengauss_Compatibility_Ignore_Error_Case0037 index 767aac3a85..75c3e46c7d 100644 --- a/openGaussBase/expect/COMPATIBILITY/GRAMMAR/HINT/Opengauss_Compatibility_Ignore_Error_Case0037 +++ b/openGaussBase/expect/COMPATIBILITY/GRAMMAR/HINT/Opengauss_Compatibility_Ignore_Error_Case0037 @@ -29,6 +29,7 @@ select * from t_ignore_0010; +----+----+ --step4:更新为重复值;expect:未更新成功,0error 1warning update /*+ ignore_error */ t_ignore_0010 set c1 = 3 where c2 =1 ; +?.* SQL SUCCESS select * from t_ignore_0010; +----+----+ diff --git a/openGaussBase/expect/COMPATIBILITY/GRAMMAR/HINT/Opengauss_Compatibility_Ignore_Error_Case0039 b/openGaussBase/expect/COMPATIBILITY/GRAMMAR/HINT/Opengauss_Compatibility_Ignore_Error_Case0039 index 3fc5b30462..41f40be873 100644 --- a/openGaussBase/expect/COMPATIBILITY/GRAMMAR/HINT/Opengauss_Compatibility_Ignore_Error_Case0039 +++ b/openGaussBase/expect/COMPATIBILITY/GRAMMAR/HINT/Opengauss_Compatibility_Ignore_Error_Case0039 @@ -38,6 +38,7 @@ select * from t_ignore_0010; +----+----+ --step4:已有默认零值,更新为null;expect:未更新成功,2warning update /*+ ignore_error */ t_ignore_0010 set c1 = null where c2 = 3 ; +?.* SQL SUCCESS select * from t_ignore_0010; +----+----+ diff --git a/openGaussBase/expect/COMPATIBILITY/GRAMMAR/HINT/Opengauss_Compatibility_Ignore_Error_Case0040 b/openGaussBase/expect/COMPATIBILITY/GRAMMAR/HINT/Opengauss_Compatibility_Ignore_Error_Case0040 index 4665921409..49e2073afb 100644 --- a/openGaussBase/expect/COMPATIBILITY/GRAMMAR/HINT/Opengauss_Compatibility_Ignore_Error_Case0040 +++ b/openGaussBase/expect/COMPATIBILITY/GRAMMAR/HINT/Opengauss_Compatibility_Ignore_Error_Case0040 @@ -27,6 +27,8 @@ select * from t_ignore_0010; +----+----+ --step3:更新为多行null;expect:更新1个null为列类型对应默认零值,假如更新3个null,则会有5warning:2dup+3not null update /*+ ignore_error */ t_ignore_0010 set c1 = null where c2 >= 1 ; +?.* +?.* SQL SUCCESS select * from t_ignore_0010; +----+----+ @@ -38,6 +40,8 @@ select * from t_ignore_0010; +----+----+ --step4:已有默认零值,更新为null;expect:未更新成功,假如更新3个null,则会有6warning:3dup+3not null update /*+ ignore_error */ t_ignore_0010 set c1 = null where c2 >= 1 ; +?.* +?.* SQL SUCCESS select * from t_ignore_0010; +----+----+ diff --git a/openGaussBase/expect/COMPATIBILITY/GRAMMAR/HINT/Opengauss_Compatibility_Ignore_Error_Case0041 b/openGaussBase/expect/COMPATIBILITY/GRAMMAR/HINT/Opengauss_Compatibility_Ignore_Error_Case0041 index 3e2408f79b..5149e19b96 100644 --- a/openGaussBase/expect/COMPATIBILITY/GRAMMAR/HINT/Opengauss_Compatibility_Ignore_Error_Case0041 +++ b/openGaussBase/expect/COMPATIBILITY/GRAMMAR/HINT/Opengauss_Compatibility_Ignore_Error_Case0041 @@ -29,6 +29,7 @@ select * from t_ignore_0006; +------+----+ --step2:更新为单行无法匹配到分区表的值;expect:未更新成功,1 warning update /*+ ignore_error */ t_ignore_0006 set c1 = 1501 where c2 = 1; +?.* SQL SUCCESS select * from t_ignore_0006; +------+----+ diff --git a/openGaussBase/expect/COMPATIBILITY/GRAMMAR/HINT/Opengauss_Compatibility_Ignore_Error_Case0043 b/openGaussBase/expect/COMPATIBILITY/GRAMMAR/HINT/Opengauss_Compatibility_Ignore_Error_Case0043 index 1d9e95dafa..01f9f0f9ce 100644 --- a/openGaussBase/expect/COMPATIBILITY/GRAMMAR/HINT/Opengauss_Compatibility_Ignore_Error_Case0043 +++ b/openGaussBase/expect/COMPATIBILITY/GRAMMAR/HINT/Opengauss_Compatibility_Ignore_Error_Case0043 @@ -25,6 +25,7 @@ select * from t_ignore_0008 ORDER BY c1 DESC; +-----+-----+ --step2:更新单行无法匹配到分区表的值;expect:未更新成功,1 warning update /*+ ignore_error */ t_ignore_0008 set c2 = 2 where c1 = 10; +?.* SQL SUCCESS select * from t_ignore_0008 ORDER BY c1 DESC; +-----+-----+ diff --git a/openGaussBase/expect/COMPATIBILITY/GRAMMAR/HINT/Opengauss_Compatibility_Ignore_Error_Case0045 b/openGaussBase/expect/COMPATIBILITY/GRAMMAR/HINT/Opengauss_Compatibility_Ignore_Error_Case0045 index ecd4756bac..85841e37ff 100644 --- a/openGaussBase/expect/COMPATIBILITY/GRAMMAR/HINT/Opengauss_Compatibility_Ignore_Error_Case0045 +++ b/openGaussBase/expect/COMPATIBILITY/GRAMMAR/HINT/Opengauss_Compatibility_Ignore_Error_Case0045 @@ -50,8 +50,12 @@ select * from t_ignore_0010 order by month_code ASC; +------------+-----------+---------+-----------+ --step2:更新为无法匹配到一级分区表、二级分区表的值;expect:忽略更新,满足筛选条件的更新有几个,就有几个warning update /*+ ignore_error */ t_ignore_0010 partition (p_201901) set month_code = '201911' where sales_amt = 1 and user_no = '1' and dept_code = '1'; +?.* +?.* SQL SUCCESS update /*+ ignore_error */ t_ignore_0010 subpartition (p_201901_a) set month_code = '201911' where sales_amt = 1; +?.* +?.* SQL SUCCESS select * from t_ignore_0010 order by month_code ASC; +------------+-----------+---------+-----------+ diff --git a/openGaussBase/expect/COMPATIBILITY/GRAMMAR/HINT/Opengauss_Compatibility_Ignore_Error_Case0046 b/openGaussBase/expect/COMPATIBILITY/GRAMMAR/HINT/Opengauss_Compatibility_Ignore_Error_Case0046 index a5589effef..5d8349a20c 100644 --- a/openGaussBase/expect/COMPATIBILITY/GRAMMAR/HINT/Opengauss_Compatibility_Ignore_Error_Case0046 +++ b/openGaussBase/expect/COMPATIBILITY/GRAMMAR/HINT/Opengauss_Compatibility_Ignore_Error_Case0046 @@ -19,6 +19,7 @@ select * FROM t_ignore_0016; +----+ --step3:ignore更新为列类型范围外的值; expect:以opengauss中该类型的最大值代替,1warning update /*+ ignore_error */ t_ignore_0016 set c1 = 256 where c1 = 15; +?.* SQL SUCCESS select * FROM t_ignore_0016; +-----+ diff --git a/openGaussBase/expect/COMPATIBILITY/GRAMMAR/HINT/Opengauss_Compatibility_Ignore_Error_Case0048 b/openGaussBase/expect/COMPATIBILITY/GRAMMAR/HINT/Opengauss_Compatibility_Ignore_Error_Case0048 index 46937373b2..e02c762aa9 100644 --- a/openGaussBase/expect/COMPATIBILITY/GRAMMAR/HINT/Opengauss_Compatibility_Ignore_Error_Case0048 +++ b/openGaussBase/expect/COMPATIBILITY/GRAMMAR/HINT/Opengauss_Compatibility_Ignore_Error_Case0048 @@ -10,6 +10,7 @@ insert into t_ignore_0016 values(1); SQL SUCCESS --step2:ignore更新为timestamp;expect:更新为当前列默认零值,1warning update /*+ ignore_error */ t_ignore_0016 set c1 = (timestamp '2022-07-21 00:01:02') where c1 =1; +?.* SQL SUCCESS select * FROM t_ignore_0016; +------------+ diff --git a/openGaussBase/expect/COMPATIBILITY/GRAMMAR/HINT/Opengauss_Compatibility_Ignore_Error_Case0050 b/openGaussBase/expect/COMPATIBILITY/GRAMMAR/HINT/Opengauss_Compatibility_Ignore_Error_Case0050 index ed647a07f0..94b1e23dd1 100644 --- a/openGaussBase/expect/COMPATIBILITY/GRAMMAR/HINT/Opengauss_Compatibility_Ignore_Error_Case0050 +++ b/openGaussBase/expect/COMPATIBILITY/GRAMMAR/HINT/Opengauss_Compatibility_Ignore_Error_Case0050 @@ -18,6 +18,7 @@ select * FROM t_ignore_0028; +----+ --step3:ignore插入重复值;expect:实际未插入,1warning insert /*+ ignore_error */ into t_ignore_0028 values(1); +?.* SQL SUCCESS select * FROM t_ignore_0028; +----+ @@ -38,6 +39,7 @@ select * FROM t_ignore_0028; +----+ --step5:ignore更新为重复值;expect:实际未更新,1warning update /*+ ignore_error */ t_ignore_0028 set c1 = 1 where c1 = 3; +?.* SQL SUCCESS select * FROM t_ignore_0028; +----+ diff --git a/openGaussBase/expect/COMPATIBILITY/GRAMMAR/HINT/Opengauss_Compatibility_Ignore_Error_Case0052 b/openGaussBase/expect/COMPATIBILITY/GRAMMAR/HINT/Opengauss_Compatibility_Ignore_Error_Case0052 index 8a33b1f426..be0edb48e7 100644 --- a/openGaussBase/expect/COMPATIBILITY/GRAMMAR/HINT/Opengauss_Compatibility_Ignore_Error_Case0052 +++ b/openGaussBase/expect/COMPATIBILITY/GRAMMAR/HINT/Opengauss_Compatibility_Ignore_Error_Case0052 @@ -18,6 +18,7 @@ select * FROM t_ignore_0028; +----+ --step3:ignore插入重复值;expect:实际未插入,1warning insert /*+ ignore_error */ into t_ignore_0028 values(1); +?.* SQL SUCCESS select * FROM t_ignore_0028; +----+ @@ -48,6 +49,7 @@ select * FROM t_ignore_0028; +----+ --step6:ignore更新为重复值;expect:实际未更新,1warning update /*+ ignore_error */ t_ignore_0028 set c1 = 1 where c1 = 3; +?.* SQL SUCCESS select * FROM t_ignore_0028; +----+ diff --git a/openGaussBase/expect/COMPATIBILITY/GRAMMAR/HINT/Opengauss_Compatibility_Ignore_Error_Case0053 b/openGaussBase/expect/COMPATIBILITY/GRAMMAR/HINT/Opengauss_Compatibility_Ignore_Error_Case0053 index 30e5d49825..66a016b023 100644 --- a/openGaussBase/expect/COMPATIBILITY/GRAMMAR/HINT/Opengauss_Compatibility_Ignore_Error_Case0053 +++ b/openGaussBase/expect/COMPATIBILITY/GRAMMAR/HINT/Opengauss_Compatibility_Ignore_Error_Case0053 @@ -18,6 +18,7 @@ select * FROM t_ignore_0028; +----+ --step3:ignore插入重复值;expect:实际未插入,1warning insert /*+ ignore_error */ into t_ignore_0028 values(1); +?.* SQL SUCCESS select * FROM t_ignore_0028; +----+ @@ -48,6 +49,7 @@ select * FROM t_ignore_0028; +----+ --step6:ignore更新为重复值;expect:实际未更新,1warning update /*+ ignore_error */ t_ignore_0028 set c1 = 1 where c1 = 3; +?.* SQL SUCCESS select * FROM t_ignore_0028; +----+ diff --git a/openGaussBase/expect/COMPATIBILITY/GRAMMAR/HINT/Opengauss_Compatibility_Ignore_Error_Case0054 b/openGaussBase/expect/COMPATIBILITY/GRAMMAR/HINT/Opengauss_Compatibility_Ignore_Error_Case0054 index 274073266f..7dbd632c21 100644 --- a/openGaussBase/expect/COMPATIBILITY/GRAMMAR/HINT/Opengauss_Compatibility_Ignore_Error_Case0054 +++ b/openGaussBase/expect/COMPATIBILITY/GRAMMAR/HINT/Opengauss_Compatibility_Ignore_Error_Case0054 @@ -18,6 +18,7 @@ select * FROM t_ignore_0028; +----+ --step3:ignore插入重复值;expect:实际未插入,1warning insert /*+ ignore_error */ into t_ignore_0028 values(1); +?.* SQL SUCCESS select * FROM t_ignore_0028; +----+ @@ -48,6 +49,7 @@ select * FROM t_ignore_0028; +----+ --step6:ignore更新为重复值;expect:实际未更新,1warning update /*+ ignore_error */ t_ignore_0028 set c1 = 1 where c1 = 3; +?.* SQL SUCCESS select * FROM t_ignore_0028; +----+ diff --git a/openGaussBase/expect/COMPATIBILITY/GRAMMAR/HINT/Opengauss_Compatibility_Ignore_Error_Case0055 b/openGaussBase/expect/COMPATIBILITY/GRAMMAR/HINT/Opengauss_Compatibility_Ignore_Error_Case0055 index aac5bfba4c..eeee5b537c 100644 --- a/openGaussBase/expect/COMPATIBILITY/GRAMMAR/HINT/Opengauss_Compatibility_Ignore_Error_Case0055 +++ b/openGaussBase/expect/COMPATIBILITY/GRAMMAR/HINT/Opengauss_Compatibility_Ignore_Error_Case0055 @@ -30,6 +30,7 @@ select * FROM t_ignore_0028; +----+ --step4:ignore插入重复值;expect:实际未插入,1warning insert /*+ ignore_error */ into t_ignore_0028 values(1); +?.* SQL SUCCESS select * FROM t_ignore_0028; +----+ @@ -63,6 +64,7 @@ select * FROM t_ignore_0028; +----+ --step7:ignore更新为重复值;expect:实际未更新,1warning update /*+ ignore_error */ t_ignore_0028 set c1 = 1 where c1 = 3; +?.* SQL SUCCESS select * FROM t_ignore_0028; +----+ diff --git a/openGaussBase/expect/COMPATIBILITY/GRAMMAR/HINT/Opengauss_Compatibility_Ignore_Error_Case0056 b/openGaussBase/expect/COMPATIBILITY/GRAMMAR/HINT/Opengauss_Compatibility_Ignore_Error_Case0056 index e3985d94a7..e286b95b70 100644 --- a/openGaussBase/expect/COMPATIBILITY/GRAMMAR/HINT/Opengauss_Compatibility_Ignore_Error_Case0056 +++ b/openGaussBase/expect/COMPATIBILITY/GRAMMAR/HINT/Opengauss_Compatibility_Ignore_Error_Case0056 @@ -19,6 +19,7 @@ select * FROM t_ignore_0028; +----+ --step3:ignore插入重复值;expect:实际未插入,1warning insert /*+ ignore_error */ t_ignore_0028 values(1); +?.* SQL SUCCESS select * FROM t_ignore_0028; +----+ diff --git a/openGaussBase/expect/COMPATIBILITY/GRAMMAR/HINT/Opengauss_Compatibility_Ignore_Error_Case0057 b/openGaussBase/expect/COMPATIBILITY/GRAMMAR/HINT/Opengauss_Compatibility_Ignore_Error_Case0057 index 36865dc75c..aa3af75bb4 100644 --- a/openGaussBase/expect/COMPATIBILITY/GRAMMAR/HINT/Opengauss_Compatibility_Ignore_Error_Case0057 +++ b/openGaussBase/expect/COMPATIBILITY/GRAMMAR/HINT/Opengauss_Compatibility_Ignore_Error_Case0057 @@ -19,6 +19,7 @@ select * FROM t_ignore_0028; +----+ --step3:ignore插入重复值;expect:实际未插入,1warning insert /*+ ignore_error */ into t_ignore_0028 value(1); +?.* SQL SUCCESS select * FROM t_ignore_0028; +----+ -- Gitee