Qifan Chen has posted comments on this change. ( 
http://gerrit.cloudera.org:8080/18050 )

Change subject: [WIP] IMPALA-10992 Planner changes for estimate peak memory - v2
......................................................................


Patch Set 17:

Resolve P19:


select * from (               
  select int_col, bigint_col, smallint_col,                                     
   
    rank() over (partition by int_col order by smallint_col desc) rk
  from functional.alltypesagg) dt    
where rk <= 10                                                                  
        
limit 10                                                          
Error Stack:                                
java.lang.IllegalStateException: Illegal reference to non-materialized slot: 
tid=3 sid=5    <== reproducable. resolved by copy outputSmap_ in PlanNode
  at com.google.common.base.Preconditions.checkState(Preconditions.java:508)
  at org.apache.impala.analysis.SlotRef.toThrift(SlotRef.java:315)
  at org.apache.impala.analysis.Expr.treeToThriftHelper(Expr.java:865)      
  at org.apache.impala.analysis.Expr.treeToThrift(Expr.java:844)
  at org.apache.impala.analysis.Expr.treesToThrift(Expr.java:898)               
   
  at org.apache.impala.planner.PlanRootSink.toThriftImpl(PlanRootSink.java:203)
  at org.apache.impala.planner.DataSink.toThrift(DataSink.java:93)              
         
  at org.apache.impala.planner.PlanFragment.toThrift(PlanFragment.java:453)
  at org.apache.impala.service.Frontend.createPlanExecInfo(Frontend.java:1549)  
                
  at org.apache.impala.service.Frontend.createExecRequest(Frontend.java:1577)


--
To view, visit http://gerrit.cloudera.org:8080/18050
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: If8a31a574b364f39b049a4bae33a8b98c5fc20bd
Gerrit-Change-Number: 18050
Gerrit-PatchSet: 17
Gerrit-Owner: Qifan Chen <[email protected]>
Gerrit-Reviewer: Impala Public Jenkins <[email protected]>
Gerrit-Reviewer: Kurt Deschler <[email protected]>
Gerrit-Reviewer: Qifan Chen <[email protected]>
Gerrit-Comment-Date: Tue, 14 Dec 2021 17:08:16 +0000
Gerrit-HasComments: No

Reply via email to