You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/test/regress/expected/groupingsets_optimizer.out
+7-42Lines changed: 7 additions & 42 deletions
Original file line number
Diff line number
Diff line change
@@ -1670,24 +1670,20 @@ explain (costs off)
1670
1670
Sort Key: share0_ref3.b
1671
1671
-> Redistribute Motion 3:3 (slice2; segments: 3)
1672
1672
Hash Key: share0_ref3.b
1673
-
-> Partial GroupAggregate
1673
+
-> Streaming Partial HashAggregate
1674
1674
Group Key: share0_ref3.b
1675
-
-> Sort
1676
-
Sort Key: share0_ref3.b
1677
-
-> Shared Scan (share slice:id 2:0)
1678
-
-> GroupAggregate
1675
+
-> Shared Scan (share slice:id 2:0)
1676
+
-> HashAggregate
1679
1677
Group Key: share0_ref4.a
1680
-
-> Sort
1681
-
Sort Key: share0_ref4.a
1682
-
-> Shared Scan (share slice:id 1:0)
1678
+
-> Shared Scan (share slice:id 1:0)
1683
1679
-> Result
1684
1680
-> Redistribute Motion 1:3 (slice3)
1685
1681
-> Finalize Aggregate
1686
1682
-> Gather Motion 3:1 (slice4; segments: 3)
1687
1683
-> Partial Aggregate
1688
1684
-> Shared Scan (share slice:id 4:0)
1689
1685
Optimizer: Pivotal Optimizer (GPORCA)
1690
-
(40 rows)
1686
+
(36 rows)
1691
1687
1692
1688
select a, b, sum(v.x)
1693
1689
from (values (1),(2)) v(x), gstest_data(v.x)
@@ -2388,23 +2384,7 @@ create table gs_group_1 as
2388
2384
select g1000, g100, g10, sum(g::numeric), count(*), max(g::text) from
2389
2385
(select g%1000 as g1000, g%100 as g100, g%10 as g10, g
2390
2386
from generate_series(0,199999) g) s
2391
-
group by cube (g1000,g100,g10);
2392
-
NOTICE: Table doesn't have 'DISTRIBUTED BY' clause -- Using column(s) named 'g1000' as the Greenplum Database data distribution key for this table.
2393
-
HINT: The 'DISTRIBUTED BY' clause determines the distribution of data. Make sure column(s) chosen are the optimal data distribution key to minimize skew.
2394
-
set jit_above_cost to default;
2395
-
create table gs_group_2 as
2396
-
select g1000, g100, g10, sum(g::numeric), count(*), max(g::text) from
2397
-
(select g/20 as g1000, g/200 as g100, g/2000 as g10, g
2398
-
from generate_series(0,19999) g) s
2399
-
group by cube (g1000,g100,g10);
2400
-
NOTICE: Table doesn't have 'DISTRIBUTED BY' clause -- Using column(s) named 'g1000' as the Greenplum Database data distribution key for this table.
2401
-
HINT: The 'DISTRIBUTED BY' clause determines the distribution of data. Make sure column(s) chosen are the optimal data distribution key to minimize skew.
2402
-
create table gs_group_3 as
2403
-
select g100, g10, array_agg(g) as a, count(*) as c, max(g::text) as m from
2404
-
(select g/200 as g100, g/2000 as g10, g
2405
-
from generate_series(0,19999) g) s
2406
-
group by grouping sets (g100,g10);
2407
-
NOTICE: Table doesn't have 'DISTRIBUTED BY' clause. Creating a NULL policy entry.
2387
+
group by cube (g1000,g100,g10) distributed by (g1000);
2408
2388
-- Produce results with hash aggregation.
2409
2389
set enable_hashagg = true;
2410
2390
set enable_sort = false;
@@ -2449,23 +2429,8 @@ create table gs_hash_1 as
2449
2429
select g1000, g100, g10, sum(g::numeric), count(*), max(g::text) from
2450
2430
(select g%1000 as g1000, g%100 as g100, g%10 as g10, g
2451
2431
from generate_series(0,199999) g) s
2452
-
group by cube (g1000,g100,g10);
2453
-
NOTICE: Table doesn't have 'DISTRIBUTED BY' clause -- Using column(s) named 'g1000' as the Greenplum Database data distribution key for this table.
2454
-
HINT: The 'DISTRIBUTED BY' clause determines the distribution of data. Make sure column(s) chosen are the optimal data distribution key to minimize skew.
2432
+
group by cube (g1000,g100,g10) distributed by (g1000);
2455
2433
set jit_above_cost to default;
2456
-
create table gs_hash_2 as
2457
-
select g1000, g100, g10, sum(g::numeric), count(*), max(g::text) from
2458
-
(select g/20 as g1000, g/200 as g100, g/2000 as g10, g
2459
-
from generate_series(0,19999) g) s
2460
-
group by cube (g1000,g100,g10);
2461
-
NOTICE: Table doesn't have 'DISTRIBUTED BY' clause -- Using column(s) named 'g1000' as the Greenplum Database data distribution key for this table.
2462
-
HINT: The 'DISTRIBUTED BY' clause determines the distribution of data. Make sure column(s) chosen are the optimal data distribution key to minimize skew.
2463
-
create table gs_hash_3 as
2464
-
select g100, g10, array_agg(g) as a, count(*) as c, max(g::text) as m from
2465
-
(select g/200 as g100, g/2000 as g10, g
2466
-
from generate_series(0,19999) g) s
2467
-
group by grouping sets (g100,g10);
2468
-
NOTICE: Table doesn't have 'DISTRIBUTED BY' clause. Creating a NULL policy entry.
2469
2434
set enable_sort = true;
2470
2435
set work_mem to default;
2471
2436
WARNING: "work_mem": setting is deprecated, and may be removed in a future release.
0 commit comments