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/07/16 06:39:45 UTC

[GitHub] [shardingsphere] hsw409328 opened a new issue #11363: The columns of MySQL table are of JSON type, which will be started by panics

hsw409328 opened a new issue #11363:
URL: https://github.com/apache/shardingsphere/issues/11363


   ## 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?
   
   5.0.0-RC1-SNAPSHOT
   
   ### Which project did you use? ShardingSphere-JDBC or ShardingSphere-Proxy?
   
   ShardingSphere-JDBC
   
   ### Expected behavior
   
   Pass
   
   ### Actual behavior
   
   java.lang.NullPointerException
   	at org.apache.shardingsphere.infra.metadata.schema.builder.loader.dialect.MySQLTableMetaDataLoader.loadColumnMetaData(MySQLTableMetaDataLoader.java:92)
   	at org.apache.shardingsphere.infra.metadata.schema.builder.loader.dialect.MySQLTableMetaDataLoader.loadColumnMetaDataMap(MySQLTableMetaDataLoader.java:72)
   	at org.apache.shardingsphere.infra.metadata.schema.builder.loader.dialect.MySQLTableMetaDataLoader.loadTableMetaDataMap(MySQLTableMetaDataLoader.java:54)
   	at org.apache.shardingsphere.infra.metadata.schema.builder.loader.dialect.MySQLTableMetaDataLoader.load(MySQLTableMetaDataLoader.java:49)
   	at org.apache.shardingsphere.infra.metadata.schema.builder.SchemaBuilder.lambda$appendDialectRemainTables$1(SchemaBuilder.java:137)
   	at java.util.concurrent.FutureTask.run$$$capture(FutureTask.java:266)
   	at java.util.concurrent.FutureTask.run(FutureTask.java)
   	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
   	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
   	at java.lang.Thread.run(Thread.java:748)
   
   
   ### Reason analyze (If you can)
   
   package org.apache.shardingsphere.infra.metadata.schema.builder.loader.dialect;
   
       private ColumnMetaData loadColumnMetaData(final Map<String, Integer> dataTypeMap, final ResultSet resultSet) throws SQLException {
           String columnName = resultSet.getString("COLUMN_NAME");
           String dataType = resultSet.getString("DATA_TYPE");
           boolean primaryKey = "PRI".equals(resultSet.getString("COLUMN_KEY"));
           boolean generated = "auto_increment".equals(resultSet.getString("EXTRA"));
           String collationName = resultSet.getString("COLLATION_NAME");
           boolean caseSensitive = null != collationName && !collationName.endsWith("_ci");
           return new ColumnMetaData(columnName, dataTypeMap.get(dataType), primaryKey, generated, caseSensitive);
       }
   
   
   ### Steps to reproduce the behavior, such as: SQL to execute, sharding rule configuration, when exception occur etc.
   
   in start, error!!!!
   
   ### Example codes for reproduce this issue (such as a github link).
   ![image](https://user-images.githubusercontent.com/11609045/125903511-0328d09c-8dce-4c1e-a4b1-594fc2adcd0d.png)
   


-- 
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] RaigorJiang commented on issue #11363: The columns of MySQL table are of JSON type, which will be started by panics

Posted by GitBox <gi...@apache.org>.
RaigorJiang commented on issue #11363:
URL: https://github.com/apache/shardingsphere/issues/11363#issuecomment-881305579


   Hi @hsw409328 
   This is indeed a problem, please refer to #10900.   Are you interested in solving it?


-- 
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 #11363: The columns of MySQL table are of JSON type, which will be started by panics

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


   


-- 
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] zjcnb commented on issue #11363: The columns of MySQL table are of JSON type, which will be started by panics

Posted by GitBox <gi...@apache.org>.
zjcnb commented on issue #11363:
URL: https://github.com/apache/shardingsphere/issues/11363#issuecomment-881470272


   Please assign to me


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