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 2022/09/24 03:05:45 UTC

[GitHub] [shardingsphere] peilinqian commented on issue #21162: The insert statement is abnormal."ERROR: Cannot invoke "org.antlr.v4.runtime.tree.ParseTree.accept(org.antlr.v4.runtime.tree.ParseTreeVisitor)" "

peilinqian commented on issue #21162:
URL: https://github.com/apache/shardingsphere/issues/21162#issuecomment-1256842612

   > I was using [c359608](https://github.com/apache/shardingsphere/commit/c3596089f4bfccd5d2b02b164c203f72e5d779be).
   > 
   > I found the second insert didn't work neither.
   > 
   > ![image](https://user-images.githubusercontent.com/20503072/192077373-b67ee258-5fb9-4817-b3b7-d8e7b8f17e0a.png)
   > 
   > ```
   > [INFO ] 2022-09-24 11:01:00.756 [Connection-1-ThreadExecutor] ShardingSphere-SQL - Logic SQL: INSERT INTO customer (c_custkey, c_name, c_address, c_nationkey, c_phone, c_acctbal, c_mktsegment, c_comment) VALUES (720, 'Customer#000000720', '8shFEL7J9sq1NJXR8dixBqaTO,kbSx', 22, '32-575-838-4260', 5357.32, 'HOUSEHOLD ', 'furiously above the furiously ironic c');
   > [INFO ] 2022-09-24 11:01:00.757 [Connection-1-ThreadExecutor] ShardingSphere-SQL - SQLStatement: OpenGaussInsertStatement(super=InsertStatement(super=AbstractSQLStatement(parameterCount=0, parameterMarkerSegments=[], commentSegments=[]), table=SimpleTableSegment(tableName=TableNameSegment(startIndex=12, stopIndex=19, identifier=IdentifierValue(value=customer, quoteCharacter=NONE)), owner=Optional.empty, alias=Optional.empty), insertColumns=Optional[InsertColumnsSegment(startIndex=21, stopIndex=108, columns=[ColumnSegment(startIndex=22, stopIndex=30, identifier=IdentifierValue(value=c_custkey, quoteCharacter=NONE), owner=Optional.empty), ColumnSegment(startIndex=33, stopIndex=38, identifier=IdentifierValue(value=c_name, quoteCharacter=NONE), owner=Optional.empty), ColumnSegment(startIndex=41, stopIndex=49, identifier=IdentifierValue(value=c_address, quoteCharacter=NONE), owner=Optional.empty), ColumnSegment(startIndex=52, stopIndex=62, identifier=IdentifierValue(value=c_nationkey
 , quoteCharacter=NONE), owner=Optional.empty), ColumnSegment(startIndex=65, stopIndex=71, identifier=IdentifierValue(value=c_phone, quoteCharacter=NONE), owner=Optional.empty), ColumnSegment(startIndex=74, stopIndex=82, identifier=IdentifierValue(value=c_acctbal, quoteCharacter=NONE), owner=Optional.empty), ColumnSegment(startIndex=85, stopIndex=96, identifier=IdentifierValue(value=c_mktsegment, quoteCharacter=NONE), owner=Optional.empty), ColumnSegment(startIndex=99, stopIndex=107, identifier=IdentifierValue(value=c_comment, quoteCharacter=NONE), owner=Optional.empty)])], insertSelect=Optional.empty, values=[InsertValuesSegment(startIndex=117, stopIndex=265, values=[LiteralExpressionSegment(startIndex=118, stopIndex=120, literals=720), LiteralExpressionSegment(startIndex=123, stopIndex=142, literals=Customer#000000720), LiteralExpressionSegment(startIndex=145, stopIndex=176, literals=8shFEL7J9sq1NJXR8dixBqaTO,kbSx), LiteralExpressionSegment(startIndex=179, stopIndex=180, literals=2
 2), LiteralExpressionSegment(startIndex=183, stopIndex=199, literals=32-575-838-4260), LiteralExpressionSegment(startIndex=202, stopIndex=208, literals=5357.32), LiteralExpressionSegment(startIndex=211, stopIndex=222, literals=HOUSEHOLD ), LiteralExpressionSegment(startIndex=225, stopIndex=264, literals=furiously above the furiously ironic c)])]), withSegment=Optional.empty, onDuplicateKeyColumnsSegment=null)
   > [INFO ] 2022-09-24 11:01:00.757 [Connection-1-ThreadExecutor] ShardingSphere-SQL - Actual SQL: ds_0 ::: INSERT INTO customer (c_custkey, c_name, c_address, c_nationkey, c_phone, c_acctbal, c_mktsegment, c_comment) VALUES org.apache.shardingsphere.sharding.rewrite.token.pojo.ShardingInsertValuesToken@c4408a3;
   > ```
   
   ![image](https://user-images.githubusercontent.com/97432411/192077430-dfa7c7f4-fe4c-4eb0-92f6-88509f9d14e5.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