From 62c323005a69ac29cf990935137e0623dae24595 Mon Sep 17 00:00:00 2001 From: chen-czywj Date: Fri, 27 Dec 2024 17:27:20 +0800 Subject: [PATCH] =?UTF-8?q?sharestorage=E5=88=86=E6=94=AF=E7=94=A8?= =?UTF-8?q?=E4=BE=8B=E5=90=8C=E6=AD=A5=E4=BC=98=E5=8C=96--FU=5FSQ=5FPROC?= =?UTF-8?q?=5FSQL?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...pengauss_Function_Tools_Query_Dop_Case0040 | 35 +++++++++ ...pengauss_Function_Tools_Query_Dop_Case0042 | 2 +- ...pengauss_Function_Tools_Query_Dop_Case0043 | 2 +- ...pengauss_Function_Tools_Query_Dop_Case0044 | 2 +- ...pengauss_Function_Tools_Query_Dop_Case0045 | 3 +- ...pengauss_Function_Tools_Query_Dop_Case0046 | 2 +- ...pengauss_Function_Tools_Query_Dop_Case0047 | 2 +- ...pengauss_Function_Tools_Query_Dop_Case0048 | 2 +- ...pengauss_Function_Tools_Query_Dop_Case0049 | 2 +- ...pengauss_Function_Tools_Query_Dop_Case0050 | 2 +- ...pengauss_Function_Tools_Query_Dop_Case0051 | 3 +- ...pengauss_Function_Tools_Query_Dop_Case0052 | 2 +- ...pengauss_Function_Tools_Query_Dop_Case0053 | 2 +- ...pengauss_Function_Tools_Query_Dop_Case0054 | 2 +- ...pengauss_Function_Tools_Query_Dop_Case0055 | 2 +- ...pengauss_Function_Tools_Query_Dop_Case0056 | 2 +- ...pengauss_Function_Tools_Query_Dop_Case0057 | 2 +- ...pengauss_Function_Tools_Query_Dop_Case0058 | 2 +- ...pengauss_Function_Tools_Query_Dop_Case0059 | 2 +- ...pengauss_Function_Tools_Query_Dop_Case0060 | 3 +- ...pengauss_Function_Tools_Query_Dop_Case0061 | 2 +- ...pengauss_Function_Tools_Query_Dop_Case0062 | 2 +- ...pengauss_Function_Tools_Query_Dop_Case0063 | 2 +- ...pengauss_Function_Tools_Query_Dop_Case0064 | 2 +- ...pengauss_Function_Tools_Query_Dop_Case0065 | 2 +- ...pengauss_Function_Tools_Query_Dop_Case0066 | 3 +- ...pengauss_Function_Tools_Query_Dop_Case0067 | 2 +- ...pengauss_Function_Tools_Query_Dop_Case0068 | 2 +- ...pengauss_Function_Tools_Query_Dop_Case0069 | 2 +- ...pengauss_Function_Tools_Query_Dop_Case0070 | 3 +- ...pengauss_Function_Tools_Query_Dop_Case0073 | 2 +- ...pengauss_Function_Tools_Query_Dop_Case0074 | 2 +- ...pengauss_Function_Tools_Query_Dop_Case0075 | 2 +- ...pengauss_Function_Tools_Query_Dop_Case0078 | 77 +++++++++++++++++++ ...eStorage_Function_Procedure_Raise_Case0005 | 1 + ...s_Function_Procedure_Current_User_Case0005 | 12 +-- ...ction_Procedure_Definition_Syntax_Case0095 | 12 +-- ...ction_Procedure_Definition_Syntax_Case0100 | 12 +-- ...ction_Procedure_Definition_Syntax_Case0104 | 10 +-- ...Procedure_Execute_Immediate_Using_Case0001 | 14 ++-- ...Procedure_Execute_Immediate_Using_Case0006 | 12 ++- ...Function_Procedure_SelectParaBind_Case0014 | 6 +- sharestorage/schedule/FU_SQ_PROC_SQL.schd | 4 +- ...edure_Execute_Immediate_Using_Case0001.sql | 2 - ...edure_Execute_Immediate_Using_Case0006.sql | 2 - ...tion_Procedure_SelectParaBind_Case0014.sql | 6 +- 46 files changed, 193 insertions(+), 81 deletions(-) create mode 100644 sharestorage/expect/COMPETITIVE/QUERY_DOP/Opengauss_Function_Tools_Query_Dop_Case0040 create mode 100644 sharestorage/expect/COMPETITIVE/QUERY_DOP/Opengauss_Function_Tools_Query_Dop_Case0078 diff --git a/sharestorage/expect/COMPETITIVE/QUERY_DOP/Opengauss_Function_Tools_Query_Dop_Case0040 b/sharestorage/expect/COMPETITIVE/QUERY_DOP/Opengauss_Function_Tools_Query_Dop_Case0040 new file mode 100644 index 0000000000..e8a9680824 --- /dev/null +++ b/sharestorage/expect/COMPETITIVE/QUERY_DOP/Opengauss_Function_Tools_Query_Dop_Case0040 @@ -0,0 +1,35 @@ +-- @owner: zou_jialiang050 +-- @date: 2024-08-06 +-- @testpoint: 打开并行开关后(设置为8),使用last 函数,查看执行计划未阻塞 +--step1:创建测试表;expect:成功 +drop table if exists warehouse_t16; +SQL SUCCESS +CREATE TABLE warehouse_t16 +( + W_WAREHOUSE_SK INTEGER NOT NULL, + W_WAREHOUSE_ID CHAR(16) NOT NULL, + W_WAREHOUSE_NAME VARCHAR(20) +) WITH (ORIENTATION = COLUMN); +SQL SUCCESS +--step2:插入大量数据;expect:成功 +insert into warehouse_t16 values(generate_series(1,2000000),(random()*(20-10)+10)::int,SUBSTRING (md5(random()::VARCHAR), 2, 8)); +SQL SUCCESS +--step3:打开并行开关;expect:成功 +set query_dop = 8; +SQL SUCCESS +--step4:查看执行计划;expect:成功 +explain select count(1) as count, last(W_WAREHOUSE_SK) as branch_id from warehouse_t16 group by W_WAREHOUSE_ID order by count; +?.*.* +?.*QUERY PLAN.* +?.*.* +?.*Sort \(cost=.*rows=.*width=.*\).* +?.*Sort Key: \(count\(1\)\).* +?.*-> HashAggregate \(cost=.*rows=.*width=.*\).* +?.*Group By Key: w_warehouse_id.* +?.*-> Row Adapter \(cost=.*rows=.*width=.*\).* +?.*-> CStore Scan on warehouse_t16 \(cost=.*rows=.*width=.*\).* +?.*.* +drop table if exists warehouse_t16; +SQL SUCCESS +reset query_dop; +SQL SUCCESS diff --git a/sharestorage/expect/COMPETITIVE/QUERY_DOP/Opengauss_Function_Tools_Query_Dop_Case0042 b/sharestorage/expect/COMPETITIVE/QUERY_DOP/Opengauss_Function_Tools_Query_Dop_Case0042 index f7f99deadd..af8c8076ed 100644 --- a/sharestorage/expect/COMPETITIVE/QUERY_DOP/Opengauss_Function_Tools_Query_Dop_Case0042 +++ b/sharestorage/expect/COMPETITIVE/QUERY_DOP/Opengauss_Function_Tools_Query_Dop_Case0042 @@ -1,4 +1,4 @@ --- @owner: opentestcase019 +-- @owner: @li-xin12345 -- @date: 2022/11/03 -- @testpoint: 行存表并行查询增加window as order by子句和cube字句 --1.创建表;expect:创建成功 diff --git a/sharestorage/expect/COMPETITIVE/QUERY_DOP/Opengauss_Function_Tools_Query_Dop_Case0043 b/sharestorage/expect/COMPETITIVE/QUERY_DOP/Opengauss_Function_Tools_Query_Dop_Case0043 index fc2e6f82e8..645152bf57 100644 --- a/sharestorage/expect/COMPETITIVE/QUERY_DOP/Opengauss_Function_Tools_Query_Dop_Case0043 +++ b/sharestorage/expect/COMPETITIVE/QUERY_DOP/Opengauss_Function_Tools_Query_Dop_Case0043 @@ -1,4 +1,4 @@ --- @owner: opentestcase019 +-- @owner: @li-xin12345 -- @date: 2022/11/03 -- @testpoint: 列存表并行查询增加window as order by子句和cube字句 --1.创建表;expect:创建成功 diff --git a/sharestorage/expect/COMPETITIVE/QUERY_DOP/Opengauss_Function_Tools_Query_Dop_Case0044 b/sharestorage/expect/COMPETITIVE/QUERY_DOP/Opengauss_Function_Tools_Query_Dop_Case0044 index abe074c7aa..3876b15411 100644 --- a/sharestorage/expect/COMPETITIVE/QUERY_DOP/Opengauss_Function_Tools_Query_Dop_Case0044 +++ b/sharestorage/expect/COMPETITIVE/QUERY_DOP/Opengauss_Function_Tools_Query_Dop_Case0044 @@ -1,4 +1,4 @@ --- @owner: opentestcase019 +-- @owner: @li-xin12345 -- @date: 2022/11/03 -- @testpoint: 分区表并行查询增加window as order by子句和cube字句 --1.创建表;expect:创建成功 diff --git a/sharestorage/expect/COMPETITIVE/QUERY_DOP/Opengauss_Function_Tools_Query_Dop_Case0045 b/sharestorage/expect/COMPETITIVE/QUERY_DOP/Opengauss_Function_Tools_Query_Dop_Case0045 index 5baf30f27b..02929e859b 100644 --- a/sharestorage/expect/COMPETITIVE/QUERY_DOP/Opengauss_Function_Tools_Query_Dop_Case0045 +++ b/sharestorage/expect/COMPETITIVE/QUERY_DOP/Opengauss_Function_Tools_Query_Dop_Case0045 @@ -1,4 +1,4 @@ --- @owner: opentestcase019 +-- @owner: @li-xin12345 -- @date: 2022/11/03 -- @testpoint: 压缩表并行查询增加window as order by子句和cube字句 --1.创建表;expect:创建成功 @@ -11,6 +11,7 @@ create table t_query_dop_0045 ( c_desc varchar( 50), c_num int )with(orientation=row,compresstype=2); +The compressed relation you are using is an unofficial supported extended feature. SQL SUCCESS --2.插入数据;expect:插入成功 insert into t_query_dop_0045 values ('10','sqltest_varchar_1','0.01','测试工程师_1','1') ; diff --git a/sharestorage/expect/COMPETITIVE/QUERY_DOP/Opengauss_Function_Tools_Query_Dop_Case0046 b/sharestorage/expect/COMPETITIVE/QUERY_DOP/Opengauss_Function_Tools_Query_Dop_Case0046 index 1a77e48deb..e3d944aeba 100644 --- a/sharestorage/expect/COMPETITIVE/QUERY_DOP/Opengauss_Function_Tools_Query_Dop_Case0046 +++ b/sharestorage/expect/COMPETITIVE/QUERY_DOP/Opengauss_Function_Tools_Query_Dop_Case0046 @@ -1,4 +1,4 @@ --- @owner: opentestcase019 +-- @owner: @li-xin12345 -- @date: 2022/11/03 -- @testpoint: 段页式表并行查询增加window as order by子句和cube字句 --1.创建表;expect:创建成功 diff --git a/sharestorage/expect/COMPETITIVE/QUERY_DOP/Opengauss_Function_Tools_Query_Dop_Case0047 b/sharestorage/expect/COMPETITIVE/QUERY_DOP/Opengauss_Function_Tools_Query_Dop_Case0047 index 48d768b07c..5da7f5749d 100644 --- a/sharestorage/expect/COMPETITIVE/QUERY_DOP/Opengauss_Function_Tools_Query_Dop_Case0047 +++ b/sharestorage/expect/COMPETITIVE/QUERY_DOP/Opengauss_Function_Tools_Query_Dop_Case0047 @@ -1,4 +1,4 @@ --- @owner: opentestcase019 +-- @owner: @li-xin12345 -- @date: 2022/11/03 -- @testpoint: ustore表并行查询增加window as order by子句和cube字句 --1.创建表;expect:创建成功 diff --git a/sharestorage/expect/COMPETITIVE/QUERY_DOP/Opengauss_Function_Tools_Query_Dop_Case0048 b/sharestorage/expect/COMPETITIVE/QUERY_DOP/Opengauss_Function_Tools_Query_Dop_Case0048 index 6e2d932955..c2ea123bc5 100644 --- a/sharestorage/expect/COMPETITIVE/QUERY_DOP/Opengauss_Function_Tools_Query_Dop_Case0048 +++ b/sharestorage/expect/COMPETITIVE/QUERY_DOP/Opengauss_Function_Tools_Query_Dop_Case0048 @@ -1,4 +1,4 @@ --- @owner: opentestcase019 +-- @owner: @li-xin12345 -- @date: 2022/11/03 -- @testpoint: 行存表并行查询增加window as partition by子句和cube字句 --1.创建表;expect:创建成功 diff --git a/sharestorage/expect/COMPETITIVE/QUERY_DOP/Opengauss_Function_Tools_Query_Dop_Case0049 b/sharestorage/expect/COMPETITIVE/QUERY_DOP/Opengauss_Function_Tools_Query_Dop_Case0049 index 4004f762d7..8ec944cb70 100644 --- a/sharestorage/expect/COMPETITIVE/QUERY_DOP/Opengauss_Function_Tools_Query_Dop_Case0049 +++ b/sharestorage/expect/COMPETITIVE/QUERY_DOP/Opengauss_Function_Tools_Query_Dop_Case0049 @@ -1,4 +1,4 @@ --- @owner: opentestcase019 +-- @owner: @li-xin12345 -- @date: 2022/11/03 -- @testpoint: 列存表并行查询增加window as partition by子句和cube字句 --1.创建表;expect:创建成功 diff --git a/sharestorage/expect/COMPETITIVE/QUERY_DOP/Opengauss_Function_Tools_Query_Dop_Case0050 b/sharestorage/expect/COMPETITIVE/QUERY_DOP/Opengauss_Function_Tools_Query_Dop_Case0050 index 925d2ba214..f5befb1368 100644 --- a/sharestorage/expect/COMPETITIVE/QUERY_DOP/Opengauss_Function_Tools_Query_Dop_Case0050 +++ b/sharestorage/expect/COMPETITIVE/QUERY_DOP/Opengauss_Function_Tools_Query_Dop_Case0050 @@ -1,4 +1,4 @@ --- @owner: opentestcase019 +-- @owner: @li-xin12345 -- @date: 2022/11/03 -- @testpoint: 分区表并行查询增加window as partition by子句和cube字句 --1.创建表;expect:创建成功 diff --git a/sharestorage/expect/COMPETITIVE/QUERY_DOP/Opengauss_Function_Tools_Query_Dop_Case0051 b/sharestorage/expect/COMPETITIVE/QUERY_DOP/Opengauss_Function_Tools_Query_Dop_Case0051 index 239020ae62..6afc3d6a03 100644 --- a/sharestorage/expect/COMPETITIVE/QUERY_DOP/Opengauss_Function_Tools_Query_Dop_Case0051 +++ b/sharestorage/expect/COMPETITIVE/QUERY_DOP/Opengauss_Function_Tools_Query_Dop_Case0051 @@ -1,4 +1,4 @@ --- @owner: opentestcase019 +-- @owner: @li-xin12345 -- @date: 2022/11/03 -- @testpoint: 压缩表并行查询增加window as partition by子句和cube字句 --1.创建表;expect:创建成功 @@ -11,6 +11,7 @@ create table t_query_dop_0051 ( c_desc varchar( 50), c_num int )with(orientation=row,compresstype=2); +The compressed relation you are using is an unofficial supported extended feature. SQL SUCCESS --2.插入数据;expect:插入成功 insert into t_query_dop_0051 values ('10','sqltest_varchar_1','0.01','测试工程师_1','1') ; diff --git a/sharestorage/expect/COMPETITIVE/QUERY_DOP/Opengauss_Function_Tools_Query_Dop_Case0052 b/sharestorage/expect/COMPETITIVE/QUERY_DOP/Opengauss_Function_Tools_Query_Dop_Case0052 index 3a2467b764..43eea42627 100644 --- a/sharestorage/expect/COMPETITIVE/QUERY_DOP/Opengauss_Function_Tools_Query_Dop_Case0052 +++ b/sharestorage/expect/COMPETITIVE/QUERY_DOP/Opengauss_Function_Tools_Query_Dop_Case0052 @@ -1,4 +1,4 @@ --- @owner: opentestcase019 +-- @owner: @li-xin12345 -- @date: 2022/11/03 -- @testpoint: 段页式表并行查询增加window as partition by子句和cube字句 --1.创建表;expect:创建成功 diff --git a/sharestorage/expect/COMPETITIVE/QUERY_DOP/Opengauss_Function_Tools_Query_Dop_Case0053 b/sharestorage/expect/COMPETITIVE/QUERY_DOP/Opengauss_Function_Tools_Query_Dop_Case0053 index 6694974a8c..89778ced4b 100644 --- a/sharestorage/expect/COMPETITIVE/QUERY_DOP/Opengauss_Function_Tools_Query_Dop_Case0053 +++ b/sharestorage/expect/COMPETITIVE/QUERY_DOP/Opengauss_Function_Tools_Query_Dop_Case0053 @@ -1,4 +1,4 @@ --- @owner: opentestcase019 +-- @owner: @li-xin12345 -- @date: 2022/11/03 -- @testpoint: ustore表并行查询增加window as partition by子句和cube字句 --1.创建表;expect:创建成功 diff --git a/sharestorage/expect/COMPETITIVE/QUERY_DOP/Opengauss_Function_Tools_Query_Dop_Case0054 b/sharestorage/expect/COMPETITIVE/QUERY_DOP/Opengauss_Function_Tools_Query_Dop_Case0054 index 08d3cda6cc..cf8a744231 100644 --- a/sharestorage/expect/COMPETITIVE/QUERY_DOP/Opengauss_Function_Tools_Query_Dop_Case0054 +++ b/sharestorage/expect/COMPETITIVE/QUERY_DOP/Opengauss_Function_Tools_Query_Dop_Case0054 @@ -1,4 +1,4 @@ --- @owner: opentestcase019 +-- @owner: @li-xin12345 -- @date: 2022/11/04 -- @testpoint: 行存表并行查询增加window as frame_clause子句和cube字句 --1.创建表;expect:创建成功 diff --git a/sharestorage/expect/COMPETITIVE/QUERY_DOP/Opengauss_Function_Tools_Query_Dop_Case0055 b/sharestorage/expect/COMPETITIVE/QUERY_DOP/Opengauss_Function_Tools_Query_Dop_Case0055 index 8d48e511de..70bde70a5b 100644 --- a/sharestorage/expect/COMPETITIVE/QUERY_DOP/Opengauss_Function_Tools_Query_Dop_Case0055 +++ b/sharestorage/expect/COMPETITIVE/QUERY_DOP/Opengauss_Function_Tools_Query_Dop_Case0055 @@ -1,4 +1,4 @@ --- @owner: opentestcase019 +-- @owner: @li-xin12345 -- @date: 2022/11/04 -- @testpoint: 段页式表并行查询增加window as partition by子句和cube字句 --1.创建表;expect:创建成功 diff --git a/sharestorage/expect/COMPETITIVE/QUERY_DOP/Opengauss_Function_Tools_Query_Dop_Case0056 b/sharestorage/expect/COMPETITIVE/QUERY_DOP/Opengauss_Function_Tools_Query_Dop_Case0056 index 15341ebb8c..c5f446bad5 100644 --- a/sharestorage/expect/COMPETITIVE/QUERY_DOP/Opengauss_Function_Tools_Query_Dop_Case0056 +++ b/sharestorage/expect/COMPETITIVE/QUERY_DOP/Opengauss_Function_Tools_Query_Dop_Case0056 @@ -1,4 +1,4 @@ --- @owner: opentestcase019 +-- @owner: @li-xin12345 -- @date: 2022/11/04 -- @testpoint: ustore表并行查询增加window as frame_clause子句和cube字句 --1.创建表;expect:创建成功 diff --git a/sharestorage/expect/COMPETITIVE/QUERY_DOP/Opengauss_Function_Tools_Query_Dop_Case0057 b/sharestorage/expect/COMPETITIVE/QUERY_DOP/Opengauss_Function_Tools_Query_Dop_Case0057 index 58ee818a3b..4affc0aac2 100644 --- a/sharestorage/expect/COMPETITIVE/QUERY_DOP/Opengauss_Function_Tools_Query_Dop_Case0057 +++ b/sharestorage/expect/COMPETITIVE/QUERY_DOP/Opengauss_Function_Tools_Query_Dop_Case0057 @@ -1,4 +1,4 @@ --- @owner: opentestcase019 +-- @owner: @li-xin12345 -- @date: 2022/11/04 -- @testpoint: 行存表并行查询增加rollup子句 --1.创建表;expect:创建成功 diff --git a/sharestorage/expect/COMPETITIVE/QUERY_DOP/Opengauss_Function_Tools_Query_Dop_Case0058 b/sharestorage/expect/COMPETITIVE/QUERY_DOP/Opengauss_Function_Tools_Query_Dop_Case0058 index 57d3367cd9..863179f655 100644 --- a/sharestorage/expect/COMPETITIVE/QUERY_DOP/Opengauss_Function_Tools_Query_Dop_Case0058 +++ b/sharestorage/expect/COMPETITIVE/QUERY_DOP/Opengauss_Function_Tools_Query_Dop_Case0058 @@ -1,4 +1,4 @@ --- @owner: opentestcase019 +-- @owner: @li-xin12345 -- @date: 2022/11/04 -- @testpoint: 列存表并行查询增加rollup子句 --1.创建表;expect:创建成功 diff --git a/sharestorage/expect/COMPETITIVE/QUERY_DOP/Opengauss_Function_Tools_Query_Dop_Case0059 b/sharestorage/expect/COMPETITIVE/QUERY_DOP/Opengauss_Function_Tools_Query_Dop_Case0059 index cd9ce7558c..990df4ce27 100644 --- a/sharestorage/expect/COMPETITIVE/QUERY_DOP/Opengauss_Function_Tools_Query_Dop_Case0059 +++ b/sharestorage/expect/COMPETITIVE/QUERY_DOP/Opengauss_Function_Tools_Query_Dop_Case0059 @@ -1,4 +1,4 @@ --- @owner: opentestcase019 +-- @owner: @li-xin12345 -- @date: 2022/11/04 -- @testpoint: 分区表并行查询增加rollup子句 --step1.创建表;expect:创建成功 diff --git a/sharestorage/expect/COMPETITIVE/QUERY_DOP/Opengauss_Function_Tools_Query_Dop_Case0060 b/sharestorage/expect/COMPETITIVE/QUERY_DOP/Opengauss_Function_Tools_Query_Dop_Case0060 index 878a16cc79..cc00a01a21 100644 --- a/sharestorage/expect/COMPETITIVE/QUERY_DOP/Opengauss_Function_Tools_Query_Dop_Case0060 +++ b/sharestorage/expect/COMPETITIVE/QUERY_DOP/Opengauss_Function_Tools_Query_Dop_Case0060 @@ -1,4 +1,4 @@ --- @owner: opentestcase019 +-- @owner: @li-xin12345 -- @date: 2022/11/04 -- @testpoint: 压缩表并行查询增加rollup子句 --step1.创建表;expect:创建成功 @@ -11,6 +11,7 @@ create table t_query_dop_0060 ( c_desc varchar( 50), c_num int )with(orientation=row,compresstype=2); +The compressed relation you are using is an unofficial supported extended feature. SQL SUCCESS --step2.插入数据;expect:插入成功 insert into t_query_dop_0060 values ('10','sqltest_varchar_1','0.01','测试工程师_1','1') ; diff --git a/sharestorage/expect/COMPETITIVE/QUERY_DOP/Opengauss_Function_Tools_Query_Dop_Case0061 b/sharestorage/expect/COMPETITIVE/QUERY_DOP/Opengauss_Function_Tools_Query_Dop_Case0061 index ef9ade06b9..ed4930bd4e 100644 --- a/sharestorage/expect/COMPETITIVE/QUERY_DOP/Opengauss_Function_Tools_Query_Dop_Case0061 +++ b/sharestorage/expect/COMPETITIVE/QUERY_DOP/Opengauss_Function_Tools_Query_Dop_Case0061 @@ -1,4 +1,4 @@ --- @owner: opentestcase019 +-- @owner: @li-xin12345 -- @date: 2022/11/04 -- @testpoint: 段页式表并行查询增加rollup子句 --step1.创建表;expect:创建成功 diff --git a/sharestorage/expect/COMPETITIVE/QUERY_DOP/Opengauss_Function_Tools_Query_Dop_Case0062 b/sharestorage/expect/COMPETITIVE/QUERY_DOP/Opengauss_Function_Tools_Query_Dop_Case0062 index d5bee29320..a014a28972 100644 --- a/sharestorage/expect/COMPETITIVE/QUERY_DOP/Opengauss_Function_Tools_Query_Dop_Case0062 +++ b/sharestorage/expect/COMPETITIVE/QUERY_DOP/Opengauss_Function_Tools_Query_Dop_Case0062 @@ -1,4 +1,4 @@ --- @owner: opentestcase019 +-- @owner: @li-xin12345 -- @date: 2022/11/04 -- @testpoint: ustore表并行查询增加rollup子句 --step1.创建表;expect:创建成功 diff --git a/sharestorage/expect/COMPETITIVE/QUERY_DOP/Opengauss_Function_Tools_Query_Dop_Case0063 b/sharestorage/expect/COMPETITIVE/QUERY_DOP/Opengauss_Function_Tools_Query_Dop_Case0063 index 1670497f32..f96233aeaf 100644 --- a/sharestorage/expect/COMPETITIVE/QUERY_DOP/Opengauss_Function_Tools_Query_Dop_Case0063 +++ b/sharestorage/expect/COMPETITIVE/QUERY_DOP/Opengauss_Function_Tools_Query_Dop_Case0063 @@ -1,4 +1,4 @@ --- @owner: opentestcase019 +-- @owner: @li-xin12345 -- @date: 2022/11/08 -- @testpoint: 行存表并行查询增加grouping sets子句 --step1.创建表;expect:创建成功 diff --git a/sharestorage/expect/COMPETITIVE/QUERY_DOP/Opengauss_Function_Tools_Query_Dop_Case0064 b/sharestorage/expect/COMPETITIVE/QUERY_DOP/Opengauss_Function_Tools_Query_Dop_Case0064 index 6a0abc3f84..dfa72510e9 100644 --- a/sharestorage/expect/COMPETITIVE/QUERY_DOP/Opengauss_Function_Tools_Query_Dop_Case0064 +++ b/sharestorage/expect/COMPETITIVE/QUERY_DOP/Opengauss_Function_Tools_Query_Dop_Case0064 @@ -1,4 +1,4 @@ --- @owner: opentestcase019 +-- @owner: @li-xin12345 -- @date: 2022/11/08 -- @testpoint: 列存表并行查询增加grouping sets子句 --step1.创建表;expect:创建成功 diff --git a/sharestorage/expect/COMPETITIVE/QUERY_DOP/Opengauss_Function_Tools_Query_Dop_Case0065 b/sharestorage/expect/COMPETITIVE/QUERY_DOP/Opengauss_Function_Tools_Query_Dop_Case0065 index dbd9e5b242..295be8cf00 100644 --- a/sharestorage/expect/COMPETITIVE/QUERY_DOP/Opengauss_Function_Tools_Query_Dop_Case0065 +++ b/sharestorage/expect/COMPETITIVE/QUERY_DOP/Opengauss_Function_Tools_Query_Dop_Case0065 @@ -1,4 +1,4 @@ --- @owner: opentestcase019 +-- @owner: @li-xin12345 -- @date: 2022/11/08 -- @testpoint: 分区表并行查询增加grouping sets子句 --step1.创建表;expect:创建成功 diff --git a/sharestorage/expect/COMPETITIVE/QUERY_DOP/Opengauss_Function_Tools_Query_Dop_Case0066 b/sharestorage/expect/COMPETITIVE/QUERY_DOP/Opengauss_Function_Tools_Query_Dop_Case0066 index 86745a5cc1..b87658f89d 100644 --- a/sharestorage/expect/COMPETITIVE/QUERY_DOP/Opengauss_Function_Tools_Query_Dop_Case0066 +++ b/sharestorage/expect/COMPETITIVE/QUERY_DOP/Opengauss_Function_Tools_Query_Dop_Case0066 @@ -1,4 +1,4 @@ --- @owner: opentestcase019 +-- @owner: @li-xin12345 -- @date: 2022/11/08 -- @testpoint: 压缩表并行查询增加grouping sets子句 --step1.创建表;expect:创建成功 @@ -11,6 +11,7 @@ create table t_query_dop_0066 ( c_desc varchar( 50), c_num int )with(orientation=row,compresstype=2); +The compressed relation you are using is an unofficial supported extended feature. SQL SUCCESS --step2.插入数据;expect:插入成功 insert into t_query_dop_0066 values ('10','sqltest_varchar_1','0.01','测试工程师_1','1') ; diff --git a/sharestorage/expect/COMPETITIVE/QUERY_DOP/Opengauss_Function_Tools_Query_Dop_Case0067 b/sharestorage/expect/COMPETITIVE/QUERY_DOP/Opengauss_Function_Tools_Query_Dop_Case0067 index cde7a0f54e..5766634a93 100644 --- a/sharestorage/expect/COMPETITIVE/QUERY_DOP/Opengauss_Function_Tools_Query_Dop_Case0067 +++ b/sharestorage/expect/COMPETITIVE/QUERY_DOP/Opengauss_Function_Tools_Query_Dop_Case0067 @@ -1,4 +1,4 @@ --- @owner: opentestcase019 +-- @owner: @li-xin12345 -- @date: 2022/11/08 -- @testpoint: 段页式表并行查询增加grouping sets子句 --step1.创建表;expect:创建成功 diff --git a/sharestorage/expect/COMPETITIVE/QUERY_DOP/Opengauss_Function_Tools_Query_Dop_Case0068 b/sharestorage/expect/COMPETITIVE/QUERY_DOP/Opengauss_Function_Tools_Query_Dop_Case0068 index 00dd3dd638..11a18ddc5f 100644 --- a/sharestorage/expect/COMPETITIVE/QUERY_DOP/Opengauss_Function_Tools_Query_Dop_Case0068 +++ b/sharestorage/expect/COMPETITIVE/QUERY_DOP/Opengauss_Function_Tools_Query_Dop_Case0068 @@ -1,4 +1,4 @@ --- @owner: opentestcase019 +-- @owner: @li-xin12345 -- @date: 2022/11/08 -- @testpoint: ustore表并行查询增加grouping sets子句 --step1.创建表;expect:创建成功 diff --git a/sharestorage/expect/COMPETITIVE/QUERY_DOP/Opengauss_Function_Tools_Query_Dop_Case0069 b/sharestorage/expect/COMPETITIVE/QUERY_DOP/Opengauss_Function_Tools_Query_Dop_Case0069 index d997441391..18b27a48b0 100644 --- a/sharestorage/expect/COMPETITIVE/QUERY_DOP/Opengauss_Function_Tools_Query_Dop_Case0069 +++ b/sharestorage/expect/COMPETITIVE/QUERY_DOP/Opengauss_Function_Tools_Query_Dop_Case0069 @@ -1,4 +1,4 @@ --- @owner: opentestcase019 +-- @owner: @li-xin12345 -- @date: 2022/11/04 -- @testpoint: 分区表并行查询增加window as frame_clause子句和cube字句 --step1.创建表;expect:创建成功 diff --git a/sharestorage/expect/COMPETITIVE/QUERY_DOP/Opengauss_Function_Tools_Query_Dop_Case0070 b/sharestorage/expect/COMPETITIVE/QUERY_DOP/Opengauss_Function_Tools_Query_Dop_Case0070 index 97cfe9f580..9a2fd9c1ee 100644 --- a/sharestorage/expect/COMPETITIVE/QUERY_DOP/Opengauss_Function_Tools_Query_Dop_Case0070 +++ b/sharestorage/expect/COMPETITIVE/QUERY_DOP/Opengauss_Function_Tools_Query_Dop_Case0070 @@ -1,4 +1,4 @@ --- @owner: opentestcase019 +-- @owner: @li-xin12345 -- @date: 2022/11/04 -- @testpoint: 压缩表并行查询增加window as frame_clause子句和cube字句 --step1.创建表;expect:创建成功 @@ -11,6 +11,7 @@ create table t_query_dop_0070 ( c_desc varchar( 50), c_num int )with(orientation=row,compresstype=2); +The compressed relation you are using is an unofficial supported extended feature. SQL SUCCESS --step2.插入数据;expect:插入成功 insert into t_query_dop_0070 values ('10','sqltest_varchar_1','0.01','测试工程师_1','1') ; diff --git a/sharestorage/expect/COMPETITIVE/QUERY_DOP/Opengauss_Function_Tools_Query_Dop_Case0073 b/sharestorage/expect/COMPETITIVE/QUERY_DOP/Opengauss_Function_Tools_Query_Dop_Case0073 index 8225aa5288..0a5c9c4219 100644 --- a/sharestorage/expect/COMPETITIVE/QUERY_DOP/Opengauss_Function_Tools_Query_Dop_Case0073 +++ b/sharestorage/expect/COMPETITIVE/QUERY_DOP/Opengauss_Function_Tools_Query_Dop_Case0073 @@ -1,4 +1,4 @@ --- @owner: opentestcase019 +-- @owner: @li-xin12345 -- @date: 2023/1/18 -- @testpoint: 设置query_dop=1时,执行含有自定义函数的复杂sql语句时使用函数var_pop --step1.创建自定义函数;expect:创建成功 diff --git a/sharestorage/expect/COMPETITIVE/QUERY_DOP/Opengauss_Function_Tools_Query_Dop_Case0074 b/sharestorage/expect/COMPETITIVE/QUERY_DOP/Opengauss_Function_Tools_Query_Dop_Case0074 index 71c5301089..6e6f3fbe03 100644 --- a/sharestorage/expect/COMPETITIVE/QUERY_DOP/Opengauss_Function_Tools_Query_Dop_Case0074 +++ b/sharestorage/expect/COMPETITIVE/QUERY_DOP/Opengauss_Function_Tools_Query_Dop_Case0074 @@ -1,4 +1,4 @@ --- @owner: opentestcase019 +-- @owner: @li-xin12345 -- @date: 2023/1/18 -- @testpoint: 设置query_dop=2时,执行含有自定义函数的复杂sql语句 --step1.创建自定义函数;expect:创建成功 diff --git a/sharestorage/expect/COMPETITIVE/QUERY_DOP/Opengauss_Function_Tools_Query_Dop_Case0075 b/sharestorage/expect/COMPETITIVE/QUERY_DOP/Opengauss_Function_Tools_Query_Dop_Case0075 index 1fabf225b1..ddbdcb6d47 100644 --- a/sharestorage/expect/COMPETITIVE/QUERY_DOP/Opengauss_Function_Tools_Query_Dop_Case0075 +++ b/sharestorage/expect/COMPETITIVE/QUERY_DOP/Opengauss_Function_Tools_Query_Dop_Case0075 @@ -1,4 +1,4 @@ --- @owner: opentestcase013 +-- @owner: @li-xin12345 -- @date: 2023/1/29 -- @testpoint: query_dop打开/关闭情况下,执行Agg下包含set-returning函数语句,均合理报错 -- step1:建表并插入数据;expect:成功 diff --git a/sharestorage/expect/COMPETITIVE/QUERY_DOP/Opengauss_Function_Tools_Query_Dop_Case0078 b/sharestorage/expect/COMPETITIVE/QUERY_DOP/Opengauss_Function_Tools_Query_Dop_Case0078 new file mode 100644 index 0000000000..12179bfdc8 --- /dev/null +++ b/sharestorage/expect/COMPETITIVE/QUERY_DOP/Opengauss_Function_Tools_Query_Dop_Case0078 @@ -0,0 +1,77 @@ +-- @owner: zou_jialiang050 +-- @date: 2024-08-06 +-- @testpoint: query_dop>1,执行自定义函数 +--step1:建立自定义函数;expect:成功 +CREATE OR REPLACE FUNCTION f1(a1 text) +RETURNS integer +as $$ +begin +return a1::int; +end +$$ language plpgsql; +/ +SQL SUCCESS +--step2:创建表 bmsql_item 并插入数据;expect:成功 +drop table if exists bmsql_item; +SQL SUCCESS +CREATE TABLE bmsql_item ( +i_id int NoT NULL, +i_name varchar(24), +i_price numeric(5,2), +i_data varchar( 50), +i_im_id int +); +SQL SUCCESS +insert into bmsql_item values ('1','sqltest_varchar_1','0.01','sqltest_varchar_1','1') ; +SQL SUCCESS +insert into bmsql_item values ('2','sqltest_varchar_2','0.02','sqltest_varchar_2','2') ; +SQL SUCCESS +insert into bmsql_item values ('3','sqltest_varchar_3','0.03','sqltest_varchar_3','3') ; +SQL SUCCESS +insert into bmsql_item values ('4','sqltest_varchar_4','0.04','sqltest_varchar_4','4') ; +SQL SUCCESS +insert into bmsql_item(i_id) values ('5'); +SQL SUCCESS +--step3:创建表 bmsql_history 并插入数据;expect:成功 +drop table if exists bmsql_history; +SQL SUCCESS +CREATE TABLE bmsql_history ( +hist_id int, +h_c_id int, +h_c_d_id int, +h_c_w_id int, +h_d_id int, +h_w_id int, +h_date timestamp(6), +h_amount numeric(6,2), +h_data varchar( 24) +); +SQL SUCCESS +insert into bmsql_history values('1','1','1','1','1','1',to_timestamp('2010-01-01 00:00:00','yyyy-mm-dd hh24:mi:ss'),'0.01','sqltest_varchar_1') ; +SQL SUCCESS +insert into bmsql_history values('2','2','2','2','2','2',to_timestamp('2010-01-02 00:00:00','yyyy-mm-dd hh24:mi:ss'),'0.02','sqltest_varchar_2') ; +SQL SUCCESS +insert into bmsql_history values('3','3','3','3','3','3',to_timestamp('2010-01-03 00:00:00','yyyy-mm-dd hh24:mi:ss'),'0.03','sqltest_varchar_3') ; +SQL SUCCESS +insert into bmsql_history values('4','4','4','4','4','4',to_timestamp('2010-01-03 00:00:00','yyyy-mm-dd hh24:mi:ss'),'0.04','sqltest_varchar_4') ; +SQL SUCCESS +insert into bmsql_history(hist_id) values('') ; +SQL SUCCESS +--step4:执行sql;expect:成功 +select f1('0') c1 +union +select distinct i_id c2 +from bmsql_item +where i_id not like (with tmp as (select distinct asin(0) as c1 from bmsql_history where bmsql_item.i_im_id <3) +select * from tmp); ++----+ +| c1 | ++----+ +| 1 | +| 0 | +| 2 | ++----+ +drop table if exists bmsql_item; +SQL SUCCESS +drop table if exists bmsql_history; +SQL SUCCESS diff --git a/sharestorage/expect/PROCEDURE/CONTROL_STATEMENT/Opengauss_ShareStorage_Function_Procedure_Raise_Case0005 b/sharestorage/expect/PROCEDURE/CONTROL_STATEMENT/Opengauss_ShareStorage_Function_Procedure_Raise_Case0005 index 4a94fb971c..03705abc22 100644 --- a/sharestorage/expect/PROCEDURE/CONTROL_STATEMENT/Opengauss_ShareStorage_Function_Procedure_Raise_Case0005 +++ b/sharestorage/expect/PROCEDURE/CONTROL_STATEMENT/Opengauss_ShareStorage_Function_Procedure_Raise_Case0005 @@ -7,6 +7,7 @@ END; / SQL SUCCESS call proc_raise5(300011); +Noexistence ID --> 300011 +-------------+ | proc_raise5 | +-------------+ diff --git a/sharestorage/expect/PROCEDURE/CURRENT_USER/Opengauss_Function_Procedure_Current_User_Case0005 b/sharestorage/expect/PROCEDURE/CURRENT_USER/Opengauss_Function_Procedure_Current_User_Case0005 index 91e2c73ead..84bf8c85e7 100644 --- a/sharestorage/expect/PROCEDURE/CURRENT_USER/Opengauss_Function_Procedure_Current_User_Case0005 +++ b/sharestorage/expect/PROCEDURE/CURRENT_USER/Opengauss_Function_Procedure_Current_User_Case0005 @@ -23,12 +23,12 @@ call test_proc_using_005(1); +---------------------+ --查看表结构 select * from proc_localtemptab_t_005; -+----+-------------------------+-------------------------------+ -| id | name | ctime | -+----+-------------------------+-------------------------------+ -| 1 | proc_localtemptab_t_005 | 2020-11-24 16:10:28.000000000 | -| 1 | proc_localtemptab_t_005 | 2020-11-24 16:10:28.000000000 | -+----+-------------------------+-------------------------------+ ++----+-------------------------+---------------------+ +| id | name | ctime | ++----+-------------------------+---------------------+ +| 1 | proc_localtemptab_t_005 | 2020-11-24 16:10:28 | +| 1 | proc_localtemptab_t_005 | 2020-11-24 16:10:28 | ++----+-------------------------+---------------------+ --清理环境 drop procedure test_proc_using_005; SQL SUCCESS diff --git a/sharestorage/expect/PROCEDURE/DEFINITION_SYNTAX/Opengauss_Function_Procedure_Definition_Syntax_Case0095 b/sharestorage/expect/PROCEDURE/DEFINITION_SYNTAX/Opengauss_Function_Procedure_Definition_Syntax_Case0095 index f3e9a3a8f7..9595266f40 100644 --- a/sharestorage/expect/PROCEDURE/DEFINITION_SYNTAX/Opengauss_Function_Procedure_Definition_Syntax_Case0095 +++ b/sharestorage/expect/PROCEDURE/DEFINITION_SYNTAX/Opengauss_Function_Procedure_Definition_Syntax_Case0095 @@ -49,12 +49,12 @@ CALL FVT_PROC_SCALAR_TYPE_002(); | | +--------------------------+ select T23 from FVT_PROC_SCALAR_TYPE_table_002; -+-------------------------------+ -| t23 | -+-------------------------------+ -| 2008-08-09 00:00:00.000000000 | -| 2005-08-08 00:00:00.000000000 | -+-------------------------------+ ++---------------------+ +| t23 | ++---------------------+ +| 2008-08-09 00:00:00 | +| 2005-08-08 00:00:00 | ++---------------------+ drop table if exists FVT_PROC_SCALAR_TYPE_table_002; SQL SUCCESS drop procedure if exists FVT_PROC_SCALAR_TYPE_002; diff --git a/sharestorage/expect/PROCEDURE/DEFINITION_SYNTAX/Opengauss_Function_Procedure_Definition_Syntax_Case0100 b/sharestorage/expect/PROCEDURE/DEFINITION_SYNTAX/Opengauss_Function_Procedure_Definition_Syntax_Case0100 index 67ffd451d8..31a0d153d5 100644 --- a/sharestorage/expect/PROCEDURE/DEFINITION_SYNTAX/Opengauss_Function_Procedure_Definition_Syntax_Case0100 +++ b/sharestorage/expect/PROCEDURE/DEFINITION_SYNTAX/Opengauss_Function_Procedure_Definition_Syntax_Case0100 @@ -49,12 +49,12 @@ CALL FVT_PROC_SCALAR_TYPE_002(); | | +--------------------------+ select T23 from FVT_PROC_SCALAR_TYPE_table_002; -+-------------------------------+ -| t23 | -+-------------------------------+ -| 2020-07-26 00:00:00.000000000 | -| 2020-07-27 00:00:00.000000000 | -+-------------------------------+ ++---------------------+ +| t23 | ++---------------------+ +| 2020-07-26 00:00:00 | +| 2020-07-27 00:00:00 | ++---------------------+ drop table if exists FVT_PROC_SCALAR_TYPE_table_002; SQL SUCCESS drop procedure if exists FVT_PROC_SCALAR_TYPE_002; diff --git a/sharestorage/expect/PROCEDURE/DEFINITION_SYNTAX/Opengauss_Function_Procedure_Definition_Syntax_Case0104 b/sharestorage/expect/PROCEDURE/DEFINITION_SYNTAX/Opengauss_Function_Procedure_Definition_Syntax_Case0104 index 47eef0de78..be7979ff99 100644 --- a/sharestorage/expect/PROCEDURE/DEFINITION_SYNTAX/Opengauss_Function_Procedure_Definition_Syntax_Case0104 +++ b/sharestorage/expect/PROCEDURE/DEFINITION_SYNTAX/Opengauss_Function_Procedure_Definition_Syntax_Case0104 @@ -48,11 +48,11 @@ CALL FVT_PROC_SCALAR_TYPE_002(); Where: SQL statement "alter table FVT_PROC_SCALAR_TYPE_table_002 modify (T23 CHAR)" PL/pgSQL function fvt_proc_scalar_type_002() line 4 at SQL statement select T23 from FVT_PROC_SCALAR_TYPE_table_002; -+-------------------------------+ -| t23 | -+-------------------------------+ -| 2020-07-28 00:00:00.000000000 | -+-------------------------------+ ++---------------------+ +| t23 | ++---------------------+ +| 2020-07-28 00:00:00 | ++---------------------+ drop table if exists FVT_PROC_SCALAR_TYPE_table_002; SQL SUCCESS drop procedure if exists FVT_PROC_SCALAR_TYPE_002; diff --git a/sharestorage/expect/PROCEDURE/EXECUTE_IMMEDIATE_USING/Opengauss_Function_Procedure_Execute_Immediate_Using_Case0001 b/sharestorage/expect/PROCEDURE/EXECUTE_IMMEDIATE_USING/Opengauss_Function_Procedure_Execute_Immediate_Using_Case0001 index 8e6051d7c9..7ec750c7bb 100644 --- a/sharestorage/expect/PROCEDURE/EXECUTE_IMMEDIATE_USING/Opengauss_Function_Procedure_Execute_Immediate_Using_Case0001 +++ b/sharestorage/expect/PROCEDURE/EXECUTE_IMMEDIATE_USING/Opengauss_Function_Procedure_Execute_Immediate_Using_Case0001 @@ -1,5 +1,3 @@ --- @owner: opentestcase007 --- @date: 2020-06-11 -- @testpoint: 创建存储过程并测试execute immediate using子句是否支持常量入参 DROP TABLE IF EXISTS TEST_EMP_001; SQL SUCCESS @@ -44,12 +42,12 @@ call TEST_PROC_USING_001(10,12); | | +---------------------+ select * from TEST_EMP_001; -+-------+---------+---------+------+-------------------------------+--------+--------+ -| empno | empname | job | mgr | hiredate | salary | deptno | -+-------+---------+---------+------+-------------------------------+--------+--------+ -| 8001 | Kimy | MANAGER | 7839 | 1981-06-09 00:00:00.000000000 | 2450 | 10 | -| 10 | 12 | MANAGER | | | | | -+-------+---------+---------+------+-------------------------------+--------+--------+ ++-------+---------+---------+------+---------------------+--------+--------+ +| empno | empname | job | mgr | hiredate | salary | deptno | ++-------+---------+---------+------+---------------------+--------+--------+ +| 8001 | Kimy | MANAGER | 7839 | 1981-06-09 00:00:00 | 2450 | 10 | +| 10 | 12 | MANAGER | | | | | ++-------+---------+---------+------+---------------------+--------+--------+ drop procedure TEST_PROC_USING_001; SQL SUCCESS drop table TEST_EMP_001; diff --git a/sharestorage/expect/PROCEDURE/EXECUTE_IMMEDIATE_USING/Opengauss_Function_Procedure_Execute_Immediate_Using_Case0006 b/sharestorage/expect/PROCEDURE/EXECUTE_IMMEDIATE_USING/Opengauss_Function_Procedure_Execute_Immediate_Using_Case0006 index 12eb5ea7e5..81477b636d 100644 --- a/sharestorage/expect/PROCEDURE/EXECUTE_IMMEDIATE_USING/Opengauss_Function_Procedure_Execute_Immediate_Using_Case0006 +++ b/sharestorage/expect/PROCEDURE/EXECUTE_IMMEDIATE_USING/Opengauss_Function_Procedure_Execute_Immediate_Using_Case0006 @@ -1,5 +1,3 @@ --- @owner: opentestcase007 --- @date: 2020-06-11 -- @testpoint: 测试execute immediate using子句是否支持常量入参(验证sing字句是否支持常量和变量混合入参) DROP TABLE IF EXISTS TEST_EMP_001; SQL SUCCESS @@ -36,11 +34,11 @@ Call TEST_PROC_USING_006(10,12); | | +---------------------+ select * from TEST_EMP_001; -+-------+---------+---------+------+-------------------------------+--------+--------+ -| empno | empname | job | mgr | hiredate | salary | deptno | -+-------+---------+---------+------+-------------------------------+--------+--------+ -| 10 | 12 | MANAGER | 2656 | 1989-02-20 00:00:00.000000000 | 3600 | 29 | -+-------+---------+---------+------+-------------------------------+--------+--------+ ++-------+---------+---------+------+---------------------+--------+--------+ +| empno | empname | job | mgr | hiredate | salary | deptno | ++-------+---------+---------+------+---------------------+--------+--------+ +| 10 | 12 | MANAGER | 2656 | 1989-02-20 00:00:00 | 3600 | 29 | ++-------+---------+---------+------+---------------------+--------+--------+ drop procedure TEST_PROC_USING_006; SQL SUCCESS drop table TEST_EMP_001; diff --git a/sharestorage/expect/PROCEDURE/SELECTPARABIND/Opengauss_Function_Procedure_SelectParaBind_Case0014 b/sharestorage/expect/PROCEDURE/SELECTPARABIND/Opengauss_Function_Procedure_SelectParaBind_Case0014 index 72a017326b..e80b8fa2b9 100644 --- a/sharestorage/expect/PROCEDURE/SELECTPARABIND/Opengauss_Function_Procedure_SelectParaBind_Case0014 +++ b/sharestorage/expect/PROCEDURE/SELECTPARABIND/Opengauss_Function_Procedure_SelectParaBind_Case0014 @@ -1,5 +1,5 @@ --- @owner: opentestcase007 --- @date: 2020-06-11 +-- @owner: chen +-- @date: 2024-12-16 -- @testpoint: insert语句绑定blob类型的参数 --创建测试表 drop table if exists all_datatype_tbl; @@ -20,7 +20,7 @@ as sqlstat varchar(500); v1 blob; begin - v1 := '10101111111111'; + v1 := rawtohex('10101111111111'); sqlstat := 'insert into all_datatype_tbl(c_blob) select :p1 '; execute immediate sqlstat using v1; end; diff --git a/sharestorage/schedule/FU_SQ_PROC_SQL.schd b/sharestorage/schedule/FU_SQ_PROC_SQL.schd index 538b1828b4..2bc6aeaa58 100644 --- a/sharestorage/schedule/FU_SQ_PROC_SQL.schd +++ b/sharestorage/schedule/FU_SQ_PROC_SQL.schd @@ -806,6 +806,7 @@ test:AUTO_TRANSACTION/Opengauss_Function_Autonomous_Transaction_Case0046 test:AUTO_TRANSACTION/Opengauss_Function_Autonomous_Transaction_Case0047 test:AUTO_TRANSACTION/Opengauss_Function_Autonomous_Transaction_Case0048 test:AUTO_TRANSACTION/Opengauss_Function_Autonomous_Transaction_Case0049 +test:COMPETITIVE/QUERY_DOP/Opengauss_Function_Tools_Query_Dop_Case0040 test:COMPETITIVE/QUERY_DOP/Opengauss_Function_Tools_Query_Dop_Case0042 #test:COMPETITIVE/QUERY_DOP/Opengauss_Function_Tools_Query_Dop_Case0043 test:COMPETITIVE/QUERY_DOP/Opengauss_Function_Tools_Query_Dop_Case0044 @@ -836,4 +837,5 @@ test:COMPETITIVE/QUERY_DOP/Opengauss_Function_Tools_Query_Dop_Case0069 #test:COMPETITIVE/QUERY_DOP/Opengauss_Function_Tools_Query_Dop_Case0070 test:COMPETITIVE/QUERY_DOP/Opengauss_Function_Tools_Query_Dop_Case0073 test:COMPETITIVE/QUERY_DOP/Opengauss_Function_Tools_Query_Dop_Case0074 -test:COMPETITIVE/QUERY_DOP/Opengauss_Function_Tools_Query_Dop_Case0075 \ No newline at end of file +test:COMPETITIVE/QUERY_DOP/Opengauss_Function_Tools_Query_Dop_Case0075 +test:COMPETITIVE/QUERY_DOP/Opengauss_Function_Tools_Query_Dop_Case0078 \ No newline at end of file diff --git a/sharestorage/testcase/PROCEDURE/EXECUTE_IMMEDIATE_USING/Opengauss_Function_Procedure_Execute_Immediate_Using_Case0001.sql b/sharestorage/testcase/PROCEDURE/EXECUTE_IMMEDIATE_USING/Opengauss_Function_Procedure_Execute_Immediate_Using_Case0001.sql index 2fa1549e30..fce46bac08 100644 --- a/sharestorage/testcase/PROCEDURE/EXECUTE_IMMEDIATE_USING/Opengauss_Function_Procedure_Execute_Immediate_Using_Case0001.sql +++ b/sharestorage/testcase/PROCEDURE/EXECUTE_IMMEDIATE_USING/Opengauss_Function_Procedure_Execute_Immediate_Using_Case0001.sql @@ -1,5 +1,3 @@ --- @owner: opentestcase007 --- @date: 2020-06-11 -- @testpoint: 创建存储过程并测试execute immediate using子句是否支持常量入参 DROP TABLE IF EXISTS TEST_EMP_001; diff --git a/sharestorage/testcase/PROCEDURE/EXECUTE_IMMEDIATE_USING/Opengauss_Function_Procedure_Execute_Immediate_Using_Case0006.sql b/sharestorage/testcase/PROCEDURE/EXECUTE_IMMEDIATE_USING/Opengauss_Function_Procedure_Execute_Immediate_Using_Case0006.sql index e2fb1d2ec9..354c8f7e22 100644 --- a/sharestorage/testcase/PROCEDURE/EXECUTE_IMMEDIATE_USING/Opengauss_Function_Procedure_Execute_Immediate_Using_Case0006.sql +++ b/sharestorage/testcase/PROCEDURE/EXECUTE_IMMEDIATE_USING/Opengauss_Function_Procedure_Execute_Immediate_Using_Case0006.sql @@ -1,5 +1,3 @@ --- @owner: opentestcase007 --- @date: 2020-06-11 -- @testpoint: 测试execute immediate using子句是否支持常量入参(验证sing字句是否支持常量和变量混合入参) DROP TABLE IF EXISTS TEST_EMP_001; diff --git a/sharestorage/testcase/PROCEDURE/SELECTPARABIND/Opengauss_Function_Procedure_SelectParaBind_Case0014.sql b/sharestorage/testcase/PROCEDURE/SELECTPARABIND/Opengauss_Function_Procedure_SelectParaBind_Case0014.sql index cbcf27adc9..53b07a6f4f 100644 --- a/sharestorage/testcase/PROCEDURE/SELECTPARABIND/Opengauss_Function_Procedure_SelectParaBind_Case0014.sql +++ b/sharestorage/testcase/PROCEDURE/SELECTPARABIND/Opengauss_Function_Procedure_SelectParaBind_Case0014.sql @@ -1,5 +1,5 @@ --- @owner: opentestcase007 --- @date: 2020-06-11 +-- @owner: chen +-- @date: 2024-12-16 -- @testpoint: insert语句绑定blob类型的参数 --创建测试表 @@ -20,7 +20,7 @@ as sqlstat varchar(500); v1 blob; begin - v1 := '10101111111111'; + v1 := rawtohex('10101111111111'); sqlstat := 'insert into all_datatype_tbl(c_blob) select :p1 '; execute immediate sqlstat using v1; end; -- Gitee