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 2020/09/22 07:11:37 UTC

[GitHub] [shardingsphere] lwtdev commented on issue #7548: Throw NPE at ExecutionContextBuilder.getPrimaryKeyColumns when execute sql

lwtdev commented on issue #7548:
URL: https://github.com/apache/shardingsphere/issues/7548#issuecomment-696549026


   > hi, @lwtdev
   > two points need to clearify:
   > 
   > 1. when you create your table, before or after proxy started?
   > 2. your inline expression is wrong, maybe route to ds_01.customer_0001, that doesn't exist.
   
   1. I did not create any tables; 
   In fact , the sql i want to execute is ``` sctl:explain select * from customer where id = 3;```
   And It's also cause a exception
   2. Thanks for your patient to figure out this problem 
   The right config of `database_inline`should be
   ```yaml
       database_inline:
         type: INLINE
         props:
           algorithm-expression: ds_0${(id % 4 ).intdiv(2)}
   ```


----------------------------------------------------------------
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:
users@infra.apache.org