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/29 09:03:56 UTC

[GitHub] [shardingsphere] justbk2015 opened a new issue #12816: insert into single table throw NoSuchElementException in openGauss database

justbk2015 opened a new issue #12816:
URL: https://github.com/apache/shardingsphere/issues/12816


   ## 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?
   master
   ### Which project did you use? ShardingSphere-JDBC or ShardingSphere-Proxy?
   proxy
   ### Expected behavior
   I can insert values by sql:
   insert into t2 values (0,1)
   ### Actual behavior
    throw java.util.NoSuchElementException
   ### Reason analyze (If you can)
   1. create single table's column name info not saved. So if I insert values with no column names, errors occur.
   the position is : InsertClaseShardingConditionEngine::createShardingCondition : String columnName = columnNames.next(); this throw NPE error.
   
   
   ### Steps to reproduce the behavior, such as: SQL to execute, sharding rule configuration, when exception occur etc.
   I have two database in sharding, the single table will random create in one database.
   1.  create table t2(tt int primary key, data int); -- t2 not define in config-sharding.yaml, it's a single table
   2.  inert into t2 values (0, 1); --throw java.util.NoSuchElementException
   3. insert into t2 (tt, data) values (0, 1); -- success
   ### Example codes for reproduce this issue (such as a github link).
   No Need.


-- 
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 closed issue #12816: insert into single table throw NoSuchElementException in openGauss database

Posted by GitBox <gi...@apache.org>.
strongduanmu closed issue #12816:
URL: https://github.com/apache/shardingsphere/issues/12816


   


-- 
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 closed issue #12816: insert into single table throw NoSuchElementException in openGauss database

Posted by GitBox <gi...@apache.org>.
strongduanmu closed issue #12816:
URL: https://github.com/apache/shardingsphere/issues/12816


   


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