diff options
author | Tomas Vondra | 2017-07-16 20:11:47 +0000 |
---|---|---|
committer | Tomas Vondra | 2017-07-16 20:11:47 +0000 |
commit | 0be28e63e484565c6080ea1c6c1be7c6dc25386c (patch) | |
tree | c5d2e83f1f2db6b97207d5e9d327b903773e7f99 | |
parent | 432e1bb18899799de58f34e2e6a973e61974d328 (diff) |
Accept plan changes in aggregates regression test
The plan changes come from the upstream, and XL only adds Remote Fast
Query Execution at the top.
-rw-r--r-- | src/test/regress/expected/aggregates.out | 32 |
1 files changed, 17 insertions, 15 deletions
diff --git a/src/test/regress/expected/aggregates.out b/src/test/regress/expected/aggregates.out index e428dcfb44..55aa5ce945 100644 --- a/src/test/regress/expected/aggregates.out +++ b/src/test/regress/expected/aggregates.out @@ -989,33 +989,35 @@ explain (costs off) select a,c from t1 group by a,c,d; explain (costs off) select * from t1 inner join t2 on t1.a = t2.x and t1.b = t2.y group by t1.a,t1.b,t1.c,t1.d,t2.x,t2.y,t2.z; - QUERY PLAN -------------------------------------------------------------- + QUERY PLAN +------------------------------------------------------------ Remote Fast Query Execution Node/s: datanode_1, datanode_2 - -> Group + -> HashAggregate Group Key: t1.a, t1.b, t2.x, t2.y - -> Merge Join - Merge Cond: ((t1.a = t2.x) AND (t1.b = t2.y)) - -> Index Scan using t1_pkey on t1 - -> Index Scan using t2_pkey on t2 -(8 rows) + -> Hash Join + Hash Cond: ((t2.x = t1.a) AND (t2.y = t1.b)) + -> Seq Scan on t2 + -> Hash + -> Seq Scan on t1 +(9 rows) -- Test case where t1 can be optimized but not t2 explain (costs off) select t1.*,t2.x,t2.z from t1 inner join t2 on t1.a = t2.x and t1.b = t2.y group by t1.a,t1.b,t1.c,t1.d,t2.x,t2.z; - QUERY PLAN -------------------------------------------------------------- + QUERY PLAN +------------------------------------------------------------ Remote Fast Query Execution Node/s: datanode_1, datanode_2 -> HashAggregate Group Key: t1.a, t1.b, t2.x, t2.z - -> Merge Join - Merge Cond: ((t1.a = t2.x) AND (t1.b = t2.y)) - -> Index Scan using t1_pkey on t1 - -> Index Scan using t2_pkey on t2 -(8 rows) + -> Hash Join + Hash Cond: ((t2.x = t1.a) AND (t2.y = t1.b)) + -> Seq Scan on t2 + -> Hash + -> Seq Scan on t1 +(9 rows) -- Cannot optimize when PK is deferrable explain (costs off) select * from t3 group by a,b,c; |