提交 d35714a9 编写于 作者: F Foyzur Rahman

Porting executor, olap window and olap window error handling tests from legacy test suites.

上级 c13ca731
--start_ignore
drop table if exists cf_executor_test;
NOTICE: table "cf_executor_test" does not exist, skipping
create table cf_executor_test (a integer);
NOTICE: Table doesn't have 'DISTRIBUTED BY' clause -- Using column named 'a' as the Greenplum Database data distribution key for this table.
HINT: The 'DISTRIBUTED BY' clause determines the distribution of data. Make sure column(s) chosen are the optimal data distribution key to minimize skew.
insert into cf_executor_test select a from generate_series(1,100) a;
set log_min_messages=debug5;
--end_ignore
set debug_print_slice_table=on;
select count(*) from cf_executor_test;
count
-------
100
(1 row)
--FOR UPDATE/FOR SHARE
select * from cf_executor_test order by a limit 1 for update;
a
---
1
(1 row)
select * from cf_executor_test order by a limit 1 for share;
a
---
1
(1 row)
--returning clause
insert into cf_executor_test values (1) returning *;
ERROR: The RETURNING clause of the INSERT statement is not supported in this version of Greenplum Database.
--start_ignore
drop table cf_executor_test;
create table cf_executor_test (a integer);
NOTICE: Table doesn't have 'DISTRIBUTED BY' clause -- Using column named 'a' as the Greenplum Database data distribution key for this table.
HINT: The 'DISTRIBUTED BY' clause determines the distribution of data. Make sure column(s) chosen are the optimal data distribution key to minimize skew.
insert into cf_executor_test select a from generate_series(1,5) a;
--end_ignore
select * from cf_executor_test limit null;
a
---
3
4
5
1
2
(5 rows)
select * from cf_executor_test limit 0;
a
---
(0 rows)
--start_ignore
reset log_min_messages;
reset debug_print_slice_table;
drop table cf_executor_test;
--end_ignore
此差异已折叠。
因为 它太大了无法显示 source diff 。你可以改为 查看blob
......@@ -83,6 +83,8 @@ test: nested_case_null
test: bfv_cte bfv_joins bfv_statistic bfv_subquery bfv_planner bfv_legacy
test: cf_executor cf_olap_windowerr cf_olap_window
ignore: tpch500GB_orca
# XXX: This test depends on libgpoptudfs library, which includes ORCA helper
......
--start_ignore
drop table if exists cf_executor_test;
create table cf_executor_test (a integer);
insert into cf_executor_test select a from generate_series(1,100) a;
set log_min_messages=debug5;
--end_ignore
set debug_print_slice_table=on;
select count(*) from cf_executor_test;
--FOR UPDATE/FOR SHARE
select * from cf_executor_test order by a limit 1 for update;
select * from cf_executor_test order by a limit 1 for share;
--returning clause
insert into cf_executor_test values (1) returning *;
--start_ignore
drop table cf_executor_test;
create table cf_executor_test (a integer);
insert into cf_executor_test select a from generate_series(1,5) a;
--end_ignore
select * from cf_executor_test limit null;
select * from cf_executor_test limit 0;
--start_ignore
reset log_min_messages;
reset debug_print_slice_table;
drop table cf_executor_test;
--end_ignore
\ No newline at end of file
此差异已折叠。
因为 它太大了无法显示 source diff 。你可以改为 查看blob
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册