Skip to content

Commit 17e3b92

Browse files
committed
update
Signed-off-by: Weizhen Wang <[email protected]>
1 parent cfba79d commit 17e3b92

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

tests/integrationtest/r/planner/core/casetest/physicalplantest/physical_plan.result

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3376,16 +3376,17 @@ show warnings;
33763376
Level Code Message
33773377
explain format = 'brief' SELECT ta.NAME,(SELECT sum(tb.CODE) FROM tb WHERE ta.id = tb.id) tb_sum_code FROM ta WHERE ta.NAME LIKE 'chad999%';
33783378
id estRows task access object operator info
3379-
HashJoin 250.00 root left outer join, left side:IndexLookUp, equal:[eq(planner__core__casetest__physicalplantest__physical_plan.ta.id, planner__core__casetest__physicalplantest__physical_plan.tb.id)]
3379+
IndexHashJoin 250.00 root left outer join, inner:HashAgg, left side:IndexLookUp, outer key:planner__core__casetest__physicalplantest__physical_plan.ta.id, inner key:planner__core__casetest__physicalplantest__physical_plan.tb.id, equal cond:eq(planner__core__casetest__physicalplantest__physical_plan.ta.id, planner__core__casetest__physicalplantest__physical_plan.tb.id)
33803380
├─IndexLookUp(Build) 250.00 root
33813381
│ ├─Selection(Build) 250.00 cop[tikv] like(planner__core__casetest__physicalplantest__physical_plan.ta.name, "chad999%", 92)
33823382
│ │ └─IndexRangeScan 250.00 cop[tikv] table:ta, index:idx_ta_name(name) range:["chad999","chad99:"), keep order:false, stats:pseudo
33833383
│ └─TableRowIDScan(Probe) 250.00 cop[tikv] table:ta keep order:false, stats:pseudo
3384-
└─HashAgg(Probe) 7992.00 root group by:planner__core__casetest__physicalplantest__physical_plan.tb.id, funcs:sum(Column#26)->Column#13, funcs:firstrow(planner__core__casetest__physicalplantest__physical_plan.tb.id)->planner__core__casetest__physicalplantest__physical_plan.tb.id
3385-
└─TableReader 7992.00 root data:HashAgg
3386-
└─HashAgg 7992.00 cop[tikv] group by:planner__core__casetest__physicalplantest__physical_plan.tb.id, funcs:sum(planner__core__casetest__physicalplantest__physical_plan.tb.code)->Column#26
3387-
└─Selection 9990.00 cop[tikv] not(isnull(planner__core__casetest__physicalplantest__physical_plan.tb.id))
3388-
└─TableFullScan 10000.00 cop[tikv] table:tb keep order:false, stats:pseudo
3384+
└─HashAgg(Probe) 250.00 root group by:planner__core__casetest__physicalplantest__physical_plan.tb.id, funcs:sum(Column#15)->Column#13, funcs:firstrow(planner__core__casetest__physicalplantest__physical_plan.tb.id)->planner__core__casetest__physicalplantest__physical_plan.tb.id
3385+
└─IndexLookUp 250.00 root
3386+
├─Selection(Build) 250.00 cop[tikv] not(isnull(planner__core__casetest__physicalplantest__physical_plan.tb.id))
3387+
│ └─IndexRangeScan 250.25 cop[tikv] table:tb, index:idx_tb_id(id) range: decided by [eq(planner__core__casetest__physicalplantest__physical_plan.tb.id, planner__core__casetest__physicalplantest__physical_plan.ta.id)], keep order:false, stats:pseudo
3388+
└─HashAgg(Probe) 250.00 cop[tikv] group by:planner__core__casetest__physicalplantest__physical_plan.tb.id, funcs:sum(planner__core__casetest__physicalplantest__physical_plan.tb.code)->Column#15
3389+
└─TableRowIDScan 250.00 cop[tikv] table:tb keep order:false, stats:pseudo
33893390
SELECT ta.NAME,(SELECT sum(tb.CODE) FROM tb WHERE ta.id = tb.id) tb_sum_code FROM ta WHERE ta.NAME LIKE 'chad999%';
33903391
NAME tb_sum_code
33913392
show warnings;
@@ -3506,11 +3507,11 @@ Projection 9.99 root planner__core__casetest__physicalplantest__physical_plan.t
35063507
│ └─Selection(Probe) 9.99 cop[tikv] not(isnull(planner__core__casetest__physicalplantest__physical_plan.ta.id))
35073508
│ └─TableRowIDScan 10.00 cop[tikv] table:ta keep order:false, stats:pseudo
35083509
└─Selection(Probe) 63872.06 root gt(Column#9, 900)
3509-
└─HashAgg 79840.08 root group by:planner__core__casetest__physicalplantest__physical_plan.tb.id, funcs:max(Column#13)->Column#9, funcs:firstrow(planner__core__casetest__physicalplantest__physical_plan.tb.id)->planner__core__casetest__physicalplantest__physical_plan.tb.id
3510-
└─IndexLookUp 79840.08 root
3510+
└─HashAgg 9.99 root group by:planner__core__casetest__physicalplantest__physical_plan.tb.id, funcs:max(Column#13)->Column#9, funcs:firstrow(planner__core__casetest__physicalplantest__physical_plan.tb.id)->planner__core__casetest__physicalplantest__physical_plan.tb.id
3511+
└─IndexLookUp 9.99 root
35113512
├─Selection(Build) 9.99 cop[tikv] not(isnull(planner__core__casetest__physicalplantest__physical_plan.tb.id))
35123513
│ └─IndexRangeScan 10.00 cop[tikv] table:tb, index:idx_tb_id(id) range: decided by [eq(planner__core__casetest__physicalplantest__physical_plan.tb.id, planner__core__casetest__physicalplantest__physical_plan.ta.id)], keep order:false, stats:pseudo
3513-
└─HashAgg(Probe) 79840.08 cop[tikv] group by:planner__core__casetest__physicalplantest__physical_plan.tb.id, funcs:max(planner__core__casetest__physicalplantest__physical_plan.tb.code)->Column#13
3514+
└─HashAgg(Probe) 9.99 cop[tikv] group by:planner__core__casetest__physicalplantest__physical_plan.tb.id, funcs:max(planner__core__casetest__physicalplantest__physical_plan.tb.code)->Column#13
35143515
└─TableRowIDScan 9.99 cop[tikv] table:tb keep order:false, stats:pseudo
35153516
SELECT ta.id, 'split' as flag FROM ta WHERE ta.NAME ='chad999' and (select max(tb.code) from tb where ta.id=tb.id ) > 900;
35163517
id flag

0 commit comments

Comments
 (0)