zstan commented on code in PR #13389:
URL: https://github.com/apache/ignite/pull/13389#discussion_r3819618349


##########
modules/calcite/src/test/java/org/apache/ignite/internal/processors/query/calcite/planner/UncollectPlannerTest.java:
##########


Review Comment:
   Current plan:
   ```
   IgniteHashJoin(condition=[=($0, $2)], joinType=[inner], variablesSet=[[]]): 
rowcount = 300000.0, cumulative cost = IgniteCost [rowCount=1300006.0, 
cpu=4000006.0, memory=30.4, io=0.0, network=4000000.0]
     IgniteExchange(distribution=[single]): rowcount = 500000.0, cumulative 
cost = IgniteCost [rowCount=1000000.0, cpu=1000000.0, memory=0.0, io=0.0, 
network=4000000.0]
       IgniteTableScan(table=[[PUBLIC, HASH_TBL]]): rowcount = 500000.0, 
cumulative cost = IgniteCost [rowCount=500000.0, cpu=500000.0, memory=0.0, 
io=0.0, network=0.0]
     IgniteUncollect: rowcount = 4.0, cumulative cost = IgniteCost 
[rowCount=6.0, cpu=6.0, memory=0.0, io=0.0, network=0.0]
       IgniteProject(EXPR$0=[ARRAY(1, 2, 3)]): rowcount = 1.0, cumulative cost 
= IgniteCost [rowCount=2.0, cpu=2.0, memory=0.0, io=0.0, network=0.0]
         IgniteValues(tuples=[[{ 0 }]]): rowcount = 1.0, cumulative cost = 
IgniteCost [rowCount=1.0, cpu=1.0, memory=0.0, io=0.0, network=0.0]
   ```
   
   master branch plan:
   ```
   IgniteProject(ID=[$1], NAME=[$2], EXPR$0=[$0]): rowcount = 4.0, cumulative 
cost = IgniteCost [rowCount=2300018.0, cpu=9200030.0, memory=0.0, io=0.0, 
network=48.0]
     IgniteExchange(distribution=[single]): rowcount = 4.0, cumulative cost = 
IgniteCost [rowCount=2300014.0, cpu=9200026.0, memory=0.0, io=0.0, network=48.0]
       IgniteCorrelatedNestedLoopJoin(condition=[=($1, $0)], joinType=[inner], 
variablesSet=[[$cor0]], variablesSet=[[0]], correlationVariables=[[$cor0]]): 
rowcount = 4.0, cumulative cost = IgniteCost [rowCount=2300010.0, 
cpu=9200022.0, memory=0.0, io=0.0, network=0.0]
         IgniteTrimExchange(distribution=[hash[0]]): rowcount = 4.0, cumulative 
cost = IgniteCost [rowCount=10.0, cpu=22.0, memory=0.0, io=0.0, network=0.0]
           IgniteUncollect: rowcount = 4.0, cumulative cost = IgniteCost 
[rowCount=6.0, cpu=6.0, memory=0.0, io=0.0, network=0.0]
             IgniteProject(EXPR$0=[ARRAY(1, 2, 3)]): rowcount = 1.0, cumulative 
cost = IgniteCost [rowCount=2.0, cpu=2.0, memory=0.0, io=0.0, network=0.0]
               IgniteValues(tuples=[[{ 0 }]]): rowcount = 1.0, cumulative cost 
= IgniteCost [rowCount=1.0, cpu=1.0, memory=0.0, io=0.0, network=0.0]
         IgniteTableScan(table=[[PUBLIC, HASH_TBL]], filters=[=($t0, 
$cor0.EXPR$0)]): rowcount = 75000.0, cumulative cost = IgniteCost 
[rowCount=500000.0, cpu=2000000.0, memory=0.0, io=0.0, network=0.0]
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to