@@ -3513,13 +3513,13 @@ left join
35133513 ) foo3
35143514using (join_key);
35153515 QUERY PLAN
3516- -----------------------------------------------------------------------
3516+ --------------------------------------------------------------------------------
35173517 Remote Subquery Scan on all (datanode_1,datanode_2)
35183518 Output: "*VALUES*".column1, i1.f1, 666
35193519 -> Hash Right Join
35203520 Output: "*VALUES*".column1, i1.f1, (666)
35213521 Hash Cond: (i1.f1 = "*VALUES*".column1)
3522- -> Hash Right Join
3522+ -> Merge Right Join
35233523 Output: i1.f1, 666
35243524 Merge Cond: (i2.unique2 = i1.f1)
35253525 -> Remote Subquery Scan on all (datanode_1,datanode_2)
@@ -3538,14 +3538,14 @@ using (join_key);
35383538 Sort Key: i1.f1
35393539 -> Seq Scan on public.int4_tbl i1
35403540 Output: i1.f1
3541- -> Hash
3542- Output: "*VALUES*".column1
3541+ -> Hash
3542+ Output: "*VALUES*".column1
35433543 -> Remote Subquery Scan on all (datanode_1)
35443544 Output: "*VALUES*".column1
35453545 Distribute results by H: column1
3546- -> Values Scan on "*VALUES*"
3547- Output: "*VALUES*".column1
3548- (27 rows)
3546+ -> Values Scan on "*VALUES*"
3547+ Output: "*VALUES*".column1
3548+ (31 rows)
35493549
35503550select foo1.join_key as foo1_id, foo3.join_key AS foo3_id, bug_field from
35513551 (values (0),(1)) foo1(join_key)
@@ -5433,28 +5433,28 @@ select * from
54335433 lateral (select f1 from int4_tbl
54345434 where f1 = any (select unique1 from tenk1
54355435 where unique2 = v.x offset 0)) ss;
5436- QUERY PLAN
5436+ QUERY PLAN
54375437----------------------------------------------------------------------------------
54385438 Remote Subquery Scan on all
54395439 Output: "*VALUES*".column1, "*VALUES*".column2, int4_tbl.f1
54405440 -> Nested Loop
5441- Output: "*VALUES*".column1, "*VALUES*".column2, int4_tbl.f1
5442- -> Values Scan on "*VALUES*"
5443- Output: "*VALUES*".column1, "*VALUES*".column2
5444- -> Hash Join
5441+ Output: "*VALUES*".column1, "*VALUES*".column2, int4_tbl.f1
5442+ -> Values Scan on "*VALUES*"
5443+ Output: "*VALUES*".column1, "*VALUES*".column2
5444+ -> Hash Join
5445+ Output: int4_tbl.f1
5446+ Inner Unique: true
5447+ Hash Cond: (int4_tbl.f1 = tenk1.unique1)
5448+ -> Seq Scan on public.int4_tbl
54455449 Output: int4_tbl.f1
5446- Inner Unique: true
5447- Hash Cond: (int4_tbl.f1 = tenk1.unique1)
5448- -> Seq Scan on public.int4_tbl
5449- Output: int4_tbl.f1
5450- -> Hash
5450+ -> Hash
5451+ Output: tenk1.unique1
5452+ -> HashAggregate
54515453 Output: tenk1.unique1
5452- -> HashAggregate
5454+ Group Key: tenk1.unique1
5455+ -> Index Scan using tenk1_unique2 on public.tenk1
54535456 Output: tenk1.unique1
5454- Group Key: tenk1.unique1
5455- -> Index Scan using tenk1_unique2 on public.tenk1
5456- Output: tenk1.unique1
5457- Index Cond: (tenk1.unique2 = "*VALUES*".column2)
5457+ Index Cond: (tenk1.unique2 = "*VALUES*".column2)
54585458(20 rows)
54595459
54605460select * from
@@ -5478,39 +5478,39 @@ lateral (select * from int8_tbl t1,
54785478 where q2 = (select greatest(t1.q1,t2.q2))
54795479 and (select v.id=0)) offset 0) ss2) ss
54805480 where t1.q1 = ss.q2) ss0;
5481- QUERY PLAN
5481+ QUERY PLAN
54825482-----------------------------------------------------------------------------
54835483 Remote Subquery Scan on all (datanode_1)
54845484 Output: "*VALUES*".column1, t1.q1, t1.q2, ss2.q1, ss2.q2
5485- -> Nested Loop
5485+ -> Nested Loop
54865486 Output: "*VALUES*".column1, t1.q1, t1.q2, ss2.q1, ss2.q2
5487- -> Seq Scan on public.int8_tbl t1
5488- Output: t1.q1, t1.q2
5487+ -> Seq Scan on public.int8_tbl t1
5488+ Output: t1.q1, t1.q2
54895489 -> Nested Loop
54905490 Output: "*VALUES*".column1, ss2.q1, ss2.q2
54915491 -> Values Scan on "*VALUES*"
54925492 Output: "*VALUES*".column1
5493- -> Subquery Scan on ss2
5494- Output: ss2.q1, ss2.q2
5495- Filter: (t1.q1 = ss2.q2)
5496- -> Seq Scan on public.int8_tbl t2
5497- Output: t2.q1, t2.q2
5498- Filter: (SubPlan 3)
5499- SubPlan 3
5500- -> Remote Subquery Scan on all (datanode_1)
5493+ -> Subquery Scan on ss2
5494+ Output: ss2.q1, ss2.q2
5495+ Filter: (t1.q1 = ss2.q2)
5496+ -> Seq Scan on public.int8_tbl t2
5497+ Output: t2.q1, t2.q2
5498+ Filter: (SubPlan 3)
5499+ SubPlan 3
5500+ -> Remote Subquery Scan on all (datanode_1)
5501+ Output: t3.q2
5502+ -> Result
55015503 Output: t3.q2
5502- -> Result
5503- Output: t3.q2
5504- One-Time Filter: $4
5505- InitPlan 1 (returns $2)
5506- -> Result
5507- Output: GREATEST($0, t2.q2)
5508- InitPlan 2 (returns $4)
5509- -> Result
5510- Output: ($3 = 0)
5511- -> Seq Scan on public.int8_tbl t3
5512- Output: t3.q1, t3.q2
5513- Filter: (t3.q2 = $2)
5504+ One-Time Filter: $4
5505+ InitPlan 1 (returns $2)
5506+ -> Result
5507+ Output: GREATEST($0, t2.q2)
5508+ InitPlan 2 (returns $4)
5509+ -> Result
5510+ Output: ($3 = 0)
5511+ -> Seq Scan on public.int8_tbl t3
5512+ Output: t3.q1, t3.q2
5513+ Filter: (t3.q2 = $2)
55145514(31 rows)
55155515
55165516select * from (values (0), (1)) v(id),
0 commit comments