You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by GitBox <gi...@apache.org> on 2021/09/14 06:19:25 UTC
[GitHub] [shardingsphere] strongduanmu opened a new pull request #12420: fix calcite class cast exception when sql contains data/time/timestamp field
strongduanmu opened a new pull request #12420:
URL: https://github.com/apache/shardingsphere/pull/12420
Fixes #10760.
Changes proposed in this pull request:
- fix calcite class cast exception when sql contains data/time/timestamp field
- add integration test case
--
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: notifications-unsubscribe@shardingsphere.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [shardingsphere] tristaZero merged pull request #12420: fix calcite class cast exception when sql contains data/time/timestamp field
Posted by GitBox <gi...@apache.org>.
tristaZero merged pull request #12420:
URL: https://github.com/apache/shardingsphere/pull/12420
--
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: notifications-unsubscribe@shardingsphere.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [shardingsphere] strongduanmu commented on pull request #12420: fix calcite class cast exception when sql contains data/time/timestamp field
Posted by GitBox <gi...@apache.org>.
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: notifications-unsubscribe@shardingsphere.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org