wang7241 opened a new issue #6832:
URL: https://github.com/apache/shardingsphere/issues/6832


   ## Bug Report
   
   **For English only**, other languages will not accept.
   
   Before report a bug, make sure you have:
   
   - Searched open and closed [GitHub 
issues](https://github.com/apache/shardingsphere/issues).
   - Read documentation: [ShardingSphere 
Doc](https://shardingsphere.apache.org/document/current/en/overview).
   
   Please pay attention on issues you submitted, because we maybe need more 
details. 
   If no response anymore and we cannot reproduce it on current information, we 
will **close it**.
   
   Please answer these questions before submitting your issue. Thanks!
   
   ### Which version of ShardingSphere did you use?
   4.1.1
   ### Which project did you use? ShardingSphere-JDBC or ShardingSphere-Proxy?
   ShardingSphere-JDBC
   ### Expected behavior
   normal run
   ### Actual behavior
   exception
   ### Reason analyze (If you can)
   
   ### Steps to reproduce the behavior, such as: SQL to execute, sharding rule 
configuration, when exception occur etc.
   bootstrap.yml content as follow
   
   shardingsphere:
       datasource:
         default-data-source-name: ds0
         names:
         ds0:
           type: com.alibaba.druid.pool.DruidDataSource
           driver-class-name: com.mysql.jdbc.Driver
           jdbc-url: 
jdbc:mysql://127.0.0.1:3306/fiforal_cw?characterEncoding=UTF-8&useUnicode=true&allowMultiQueries=true&&useSSL=true
           username: root
           password: root
       sharding:
         props:
           sql.show: true
         tables:
           oral_cw_classwork_stu:
             actual-data-nodes: ds0.oral_cw_classwork_stu_${0..9}
             table-strategy:
               inline:
                 sharding-column: school_id
                 algorithm-expression: 
oral_cw_classwork_stu_$->{school_id.longValue()  % 10}
           oral_cw_classwork_stu_content:
             actual-data-nodes: ds0.oral_cw_classwork_stu_content_${0..9}
             table-strategy:
               inline:
                 sharding-column: school_id
                 algorithm-expression: 
oral_cw_classwork_stu_content_$->{school_id.longValue()  % 10}
           oral_cw_multilateral_assessment:
             actual-data-nodes: ds0.oral_cw_multilateral_assessment_${0..9}
             table-strategy:
               inline:
                 sharding-column: school_id
                 algorithm-expression: 
oral_cw_multilateral_assessment_$->{school_id.longValue()  % 10}
           oral_cw_replys:
             actual-data-nodes: ds0.oral_cw_replys_${0..9}
             table-strategy:
               inline:
                 sharding-column: school_id
                 algorithm-expression: oral_cw_replys_$->{school_id.longValue() 
 % 10}
           oral_cw_thumbs:
             actual-data-nodes: ds0.oral_cw_thumbs_${0..9}
             table-strategy:
               inline:
                 sharding-column: school_id
                 algorithm-expression: 
oral_cw_thumbs_$_$->{school_id.longValue()  % 10}
         binding-tables: oral_cw_classwork_stu,oral_cw_classwork_stu_content
   
   
   pom.xml as follow 
   
   
    <!-- Mysql -->
            <dependency>
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-starter-web</artifactId>
                <version>2.2.1.RELEASE</version>
        </dependency>
           <dependency>
               <groupId>mysql</groupId>
               <artifactId>mysql-connector-java</artifactId>
               <version>5.1.47</version>
           </dependency>
           <!-- Druid数据库连接池 -->
           <dependency>
               <groupId>com.alibaba</groupId>
               <artifactId>druid-spring-boot-starter</artifactId>
               <version>1.1.22</version>
           </dependency>
   
           <dependency>
               <groupId>org.apache.shardingsphere</groupId>
               <artifactId>sharding-jdbc-spring-boot-starter</artifactId>
               <version>4.1.1</version>
           </dependency>
           <!--<dependency>
               <groupId>com.alibaba</groupId>
               <artifactId>druid</artifactId>
               <version>1.1.22</version>
           </dependency>-->
   
   ### Example codes for reproduce this issue (such as a github link).
   


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


Reply via email to