tristaZero commented on issue #8883:
URL: https://github.com/apache/shardingsphere/issues/8883#issuecomment-756693622
@lmhmhl Rapid comment.
What's the content of `ExecutionContext` of `CalciteRowExecutor`? If you
create a `ExecutionContext`, the following content is expected,
```java
ExecutionUnit('ds_0',
SQLUnit('SELECT i.* FROM t_order o JOIN t_order_item i ON
o.order_id=i.order_id WHERE o.order_id in (1000, 1001)',
emptyList(),
List(RouteMapper< t_order, t_order_0>,
RouteMapper< t_order, t_order_1>,
RouteMapper< t_order_item, t_order_item_0>,
RouteMapper< t_order_item, t_order_item_1>
))
)
ExecutionUnit('ds_1', ...)
```
I am unsure whether you can catch me. But the key point here is put `the
original sql` and all the RouteMappers of relevant tables into `SQLUnit`.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]