fyuan1030 opened a new issue #5123: org.antlr.v4.runtime.tree.ErrorNodeImpl 
cannot be cast to org.antlr.v4.runtime.ParserRuleContext
URL: https://github.com/apache/incubator-shardingsphere/issues/5123
 
 
   Caused by: java.lang.ClassCastException: 
org.antlr.v4.runtime.tree.ErrorNodeImpl cannot be cast to 
org.antlr.v4.runtime.ParserRuleContext
        at 
org.apache.shardingsphere.sql.parser.core.extractor.impl.dml.PredicateExtractor.extractPredicate(PredicateExtractor.java:140)
 ~[shardingsphere-sql-parser-engine-4.0.1.jar:4.0.1]
        at 
org.apache.shardingsphere.sql.parser.core.extractor.impl.dml.PredicateExtractor.extractRecursiveWithParen(PredicateExtractor.java:124)
 ~[shardingsphere-sql-parser-engine-4.0.1.jar:4.0.1]
        at 
org.apache.shardingsphere.sql.parser.core.extractor.impl.dml.PredicateExtractor.extractPredicateSegment(PredicateExtractor.java:98)
 ~[shardingsphere-sql-parser-engine-4.0.1.jar:4.0.1]
        at 
org.apache.shardingsphere.sql.parser.core.extractor.impl.dml.PredicateExtractor.extractRecursiveWithLogicalOperation(PredicateExtractor.java:79)
 ~[shardingsphere-sql-parser-engine-4.0.1.jar:4.0.1]
        at 
org.apache.shardingsphere.sql.parser.core.extractor.impl.dml.PredicateExtractor.extract(PredicateExtractor.java:71)
 ~[shardingsphere-sql-parser-engine-4.0.1.jar:4.0.1]
        at 
org.apache.shardingsphere.sql.parser.core.extractor.impl.dml.WhereExtractor.extract(WhereExtractor.java:48)
 ~[shardingsphere-sql-parser-engine-4.0.1.jar:4.0.1]
        at 
org.apache.shardingsphere.sql.parser.core.extractor.SQLSegmentsExtractorEngine.extract(SQLSegmentsExtractorEngine.java:47)
 ~[shardingsphere-sql-parser-engine-4.0.1.jar:4.0.1]
        at 
org.apache.shardingsphere.sql.parser.core.SQLParseKernel.parse(SQLParseKernel.java:59)
 ~[shardingsphere-sql-parser-engine-4.0.1.jar:4.0.1]
        at 
org.apache.shardingsphere.sql.parser.SQLParseEngine.parse0(SQLParseEngine.java:70)
 ~[shardingsphere-sql-parser-engine-4.0.1.jar:4.0.1]
        at 
org.apache.shardingsphere.sql.parser.SQLParseEngine.parse(SQLParseEngine.java:52)
 ~[shardingsphere-sql-parser-engine-4.0.1.jar:4.0.1]
        at 
org.apache.shardingsphere.core.route.router.sharding.ShardingRouter.parse(ShardingRouter.java:86)
 ~[sharding-core-route-4.0.1.jar:4.0.1]
        at 
org.apache.shardingsphere.core.route.PreparedStatementRoutingEngine.route(PreparedStatementRoutingEngine.java:61)
 ~[sharding-core-route-4.0.1.jar:4.0.1]
        at 
org.apache.shardingsphere.core.PreparedQueryShardingEngine.route(PreparedQueryShardingEngine.java:59)
 ~[sharding-core-entry-4.0.1.jar:4.0.1]
        at 
org.apache.shardingsphere.core.BaseShardingEngine.executeRoute(BaseShardingEngine.java:85)
 ~[sharding-core-entry-4.0.1.jar:4.0.1]
        at 
org.apache.shardingsphere.core.BaseShardingEngine.shard(BaseShardingEngine.java:68)
 ~[sharding-core-entry-4.0.1.jar:4.0.1]
        at 
org.apache.shardingsphere.shardingjdbc.jdbc.core.statement.ShardingPreparedStatement.shard(ShardingPreparedStatement.java:249)
 ~[sharding-jdbc-core-4.0.1.jar:4.0.1]
        at 
org.apache.shardingsphere.shardingjdbc.jdbc.core.statement.ShardingPreparedStatement.execute(ShardingPreparedStatement.java:190)
 ~[sharding-jdbc-core-4.0.1.jar:4.0.1]
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
~[na:1.8.0_201]
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 
~[na:1.8.0_201]
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 ~[na:1.8.0_201]
        at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_201]
        at 
org.apache.ibatis.logging.jdbc.PreparedStatementLogger.invoke(PreparedStatementLogger.java:59)
 ~[mybatis-3.4.5.jar:3.4.5]
        at com.sun.proxy.$Proxy220.execute(Unknown Source) ~[na:na]
        at 
org.apache.ibatis.executor.statement.PreparedStatementHandler.query(PreparedStatementHandler.java:63)
 ~[mybatis-3.4.5.jar:3.4.5]
        at 
org.apache.ibatis.executor.statement.RoutingStatementHandler.query(RoutingStatementHandler.java:79)
 ~[mybatis-3.4.5.jar:3.4.5]
        at 
org.apache.ibatis.executor.SimpleExecutor.doQuery(SimpleExecutor.java:63) 
~[mybatis-3.4.5.jar:3.4.5]
        at 
org.apache.ibatis.executor.BaseExecutor.queryFromDatabase(BaseExecutor.java:324)
 ~[mybatis-3.4.5.jar:3.4.5]
        at org.apache.ibatis.executor.BaseExecutor.query(BaseExecutor.java:156) 
~[mybatis-3.4.5.jar:3.4.5]
        at 
org.apache.ibatis.executor.CachingExecutor.query(CachingExecutor.java:109) 
~[mybatis-3.4.5.jar:3.4.5]
        at 
com.github.pagehelper.PageInterceptor.intercept(PageInterceptor.java:108) 
~[pagehelper-5.1.7.jar:na]
        at org.apache.ibatis.plugin.Plugin.invoke(Plugin.java:61) 
~[mybatis-3.4.5.jar:3.4.5]
        at com.sun.proxy.$Proxy218.query(Unknown Source) ~[na:na]
        at 
org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:148)
 ~[mybatis-3.4.5.jar:3.4.5]
        ... 83 common frames omitted
   when I use this SQL querying, it told me this message. I want to know 
whether it is a bug? because when I use version 3.1 it is ok. but now, I use 
version 4.0.1, it wrong....
   SQL :
   select
       <include refid="No_Price_Column_List"/>
       from table_name
       where CURRENT_TIMESTAMP BETWEEN startTime AND endTime AND type=1
       AND a in
       <foreach collection="list" item="item" open="(" close=")" separator=",">
         #{item}
       </foreach>
       and status = 0 order by mtime asc

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


With regards,
Apache Git Services

Reply via email to