strongduanmu commented on pull request #12420:
URL: https://github.com/apache/shardingsphere/pull/12420#issuecomment-918901824


   Because the field type in the Calcite metadata has changed, resulting in a 
change in the query plan, testSimpleSelect needs to be modified.
   
   ```
   After:
        
   LogicalProject(order_id=[$0], user_id=[$1], information=[$4])
     LogicalFilter(condition=[=(CAST($1):VARCHAR, CAST($3):VARCHAR)])
       LogicalJoin(condition=[true], joinType=[inner])
         LogicalTableScan(table=[[federate_jdbc, t_order_federate]])
         LogicalTableScan(table=[[federate_jdbc, t_user_info]])
   
   EnumerableCalc(expr#0..4=[{inputs}], proj#0..1=[{exprs}], information=[$t4])
     EnumerableCalc(expr#0..4=[{inputs}], expr#5=[CAST($t1):VARCHAR], 
expr#6=[CAST($t3):VARCHAR], expr#7=[=($t5, $t6)], proj#0..4=[{exprs}], 
$condition=[$t7])
       EnumerableNestedLoopJoin(condition=[true], joinType=[inner])
         EnumerableTableScan(table=[[federate_jdbc, t_order_federate]])
         EnumerableTableScan(table=[[federate_jdbc, t_user_info]])
   
   Before:
   
   LogicalProject(order_id=[$0], user_id=[$1], information=[$4])
     LogicalFilter(condition=[=($1, $3)])
       LogicalJoin(condition=[true], joinType=[inner])
         LogicalTableScan(table=[[federate_jdbc, t_order_federate]])
         LogicalTableScan(table=[[federate_jdbc, t_user_info]])
   
   EnumerableCalc(expr#0..4=[{inputs}], proj#0..1=[{exprs}], information=[$t4])
     EnumerableCalc(expr#0..4=[{inputs}], expr#5=[=($t1, $t3)], 
proj#0..4=[{exprs}], $condition=[$t5])
       EnumerableNestedLoopJoin(condition=[true], joinType=[inner])
         EnumerableTableScan(table=[[federate_jdbc, t_order_federate]])
         EnumerableTableScan(table=[[federate_jdbc, t_user_info]])
   ```


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