ycycse opened a new pull request, #12240: URL: https://github.com/apache/iotdb/pull/12240
In EXPLAIN ANALYZE statement, there will be an IdentityNode above LimitNode to transfer result to ExplainAnalyzeOperator. However, the implementation in LimitOffsetPushDown considers all the node above is SingleChildNode (IdentityNode is MultiChildSinkNode) which leads to an error: `Msg: org.apache.iotdb.jdbc.IoTDBSQLException: 305: [INTERNAL_SERVER_ERROR(305)] Exception occurred: "explain analyze select s1 from root.test.sg limit 2". executeStatement failed. class org.apache.iotdb.db.queryengine.plan.planner.plan.node.sink.IdentitySinkNode cannot be cast to class org.apache.iotdb.db.queryengine.plan.planner.plan.node.process.SingleChildProcessNode (org.apache.iotdb.db.queryengine.plan.planner.plan.node.sink.IdentitySinkNode and org.apache.iotdb.db.queryengine.plan.planner.plan.node.process.SingleChildProcessNode are in unnamed module of loader 'app') ` This PR fix this problem. -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
