提交 334a8323 编写于 作者: H Heikki Linnakangas

Move misc test from TINC.

上级 cc629da7
......@@ -6002,6 +6002,15 @@ group by rollup (a,b);
(7 rows)
--end_equiv
-- Test join between a partitioned table and non-partitioned table (MPP-20083)
SELECT COUNT(*)
FROM r6756 as r, s6756 as c, s6756 as d, s6756 as e
WHERE r.a = c.c AND r.a = d.d AND r.a = e.e;
count
-------
640
(1 row)
drop table r6756 cascade; --ignore
drop table s6756 cascade; --ignore
-- begin MPP-14021
......
......@@ -585,6 +585,11 @@ group by rollup (a,b)
order by 1,2;
--end_equiv
-- Test join between a partitioned table and non-partitioned table (MPP-20083)
SELECT COUNT(*)
FROM r6756 as r, s6756 as c, s6756 as d, s6756 as e
WHERE r.a = c.c AND r.a = d.d AND r.a = e.e;
drop table r6756 cascade; --ignore
drop table s6756 cascade; --ignore
......
-- @author prabhd
-- @created 2012-12-05 12:00:00
-- @modified 2012-12-05 12:00:00
-- @tags dml HAWQ
-- @db_name dmldb
-- @description MPP-20083
SELECT COUNT(*)
FROM r, s c, s d, s e
WHERE r.a = c.c AND r.a = d.d AND r.a = e.e;
count
-------
640
(1 row)
SELECT COUNT(*)
FROM r_p, s c, s d, s e
WHERE r_p.a = c.c AND r_p.a = d.d AND r_p.a = e.e;
count
-------
640
(1 row)
-- @author prabhd
-- @created 2012-12-05 12:00:00
-- @modified 2012-12-05 12:00:00
-- @tags dml HAWQ
-- @db_name dmldb
-- @description MPP-20083
\echo --start_ignore
set gp_enable_column_oriented_table=on;
\echo --end_ignore
SELECT COUNT(*)
FROM r, s c, s d, s e
WHERE r.a = c.c AND r.a = d.d AND r.a = e.e;
SELECT COUNT(*)
FROM r_p, s c, s d, s e
WHERE r_p.a = c.c AND r_p.a = d.d AND r_p.a = e.e;
\echo --start_ignore
set gp_enable_column_oriented_table=on;
\echo --end_ignore
DROP TABLE IF EXISTS r;
CREATE TABLE r ( a int, b int, x int, y int ) distributed randomly;
DROP TABLE IF EXISTS r_p;
CREATE TABLE r_p ( a int, b int, x int, y int ) distributed randomly
partition by list(a) ( VALUES (0), VALUES (1) );
DROP TABLE IF EXISTS s;
CREATE TABLE s ( c int, d int, e int ) distributed randomly;
INSERT INTO s VALUES
(0,0,0),(0,0,1),(0,1,0),(0,1,1),(1,0,0),(1,0,1),(1,1,0),(1,1,1);
INSERT INTO r VALUES
(0, 0, 1, 1),
(0, 1, 2, 2),
(0, 1, 2, 2),
(1, 0, 3, 3),
(1, 0, 3, 3),
(1, 0, 3, 3),
(1, 1, 4, 4),
(1, 1, 4, 4),
(1, 1, 4, 4),
(1, 1, 4, 4);
INSERT INTO r_p VALUES
(0, 0, 1, 1),
(0, 1, 2, 2),
(0, 1, 2, 2),
(1, 0, 3, 3),
(1, 0, 3, 3),
(1, 0, 3, 3),
(1, 1, 4, 4),
(1, 1, 4, 4),
(1, 1, 4, 4),
(1, 1, 4, 4);
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册