@@ -4955,7 +4944,7 @@ SELECT distinct foo.a, bar.b, sum(bar.c+foo.c) from orca.foo, orca.bar where foo
39 | 1 | 4
(20 rows)
--- window operations
-- window operations
select row_number() over() from orca.foo order by 1;
row_number
------------
...
...
@@ -6499,7 +6488,7 @@ select lead(c,c+d,1000) over(order by c,d) from orca.s order by 1;
1000
(30 rows)
--- cte
-- cte
with x as (select a, b from orca.r)
select rank() over(partition by a, case when b = 0 then a+b end order by b asc) as rank_within_parent from x order by a desc ,case when a+b = 0 then a end ,b;
rank_within_parent
...
...
@@ -6648,7 +6637,6 @@ INFO: GPORCA failed to produce a plan, falling back to planner
@@ -9060,7 +9043,7 @@ SELECT generate_series(1,10) UNION SELECT 1;
10
(10 rows)
--- warning messages for missing stats
-- warning messages for missing stats
create table foo_missing_stats(a int, b int);
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.
set optimizer_enable_constant_expression_evaluation=on;
CREATE TABLE my_tt_agg_opt (
symbol character(16),
...
...
@@ -10168,14 +10147,12 @@ EXPLAIN SELECT * FROM bitmap_test WHERE a in ('1', '2', 47);
drop table if exists foo;
NOTICE: table "foo" does not exist, skipping
-- end_ignore
create table foo(a int, b int);
create table foo(a int, b int) distributed by (a);
-- The amount of log messages you get depends on a lot of options, but any
-- difference in the output will make the test fail. Disable log_statement
-- and log_min_duration_statement, they are the most obvious ones.
set log_statement='none';
set log_min_duration_statement=-1;
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.
set client_min_messages='log';
select count(*) from foo group by cube(a,b);
LOG: 2016-08-19 10:46:53:360703 PDT,THD000,NOTICE,"Feature not supported by the Pivotal Query Optimizer: Cube",