wgy8283335 opened a new issue #12906:
URL: https://github.com/apache/shardingsphere/issues/12906


   ## Whether 'EnumerableCalc' and 'EnumerableCorrelate' in Rel Node Tree could 
be replaced by Bindable Node
   SQL:
   ```
   SELECT t_order_federate.order_id, t_order_federate.user_id FROM 
t_order_federate WHERE EXISTS (SELECT * FROM t_user_info WHERE 
t_order_federate.user_id = t_user_info.user_id)
   ```
   
   After optimizing:
   ``` 
                 
"EnumerableCalc(expr#0..3=[{inputs}],expr#4=[ISNOTNULL($t3)],proj#0..1=[{exprs}],$condition=[$t4])"
               + "  
EnumerableCorrelate(correlation=[$cor0],joinType=[left],requiredColumns=[{1}]) "
               + "    
EnumerableInterpreterBindableTableScan(table=[[federate_jdbc,t_order_federate]])
 "
               + "    
EnumerableInterpreterBindableAggregate(group=[{}],agg#0=[MIN($0)]) "
               + "      BindableProject($f0=[true]) "
               + "        
BindableTableScan(table=[[federate_jdbc,t_user_info]],filters=[[=(CAST($cor0.user_id):VARCHAR,CAST($0):VARCHAR)]],projects=[[0]])
 ";
   ```
   
   related issue #12709.
   


-- 
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