This is an automated email from the ASF dual-hosted git repository.
yuyuankang pushed a commit to branch kyy
in repository https://gitbox.apache.org/repos/asf/iotdb.git
The following commit(s) were added to refs/heads/kyy by this push:
new 33c0b3f index out of bound
33c0b3f is described below
commit 33c0b3f07aff017bdb93e0971407c87d05ff42d6
Author: Ring-k <[email protected]>
AuthorDate: Mon Oct 26 19:49:00 2020 +0800
index out of bound
---
.../src/main/java/org/apache/iotdb/db/qp/executor/PlanExecutor.java | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git
a/server/src/main/java/org/apache/iotdb/db/qp/executor/PlanExecutor.java
b/server/src/main/java/org/apache/iotdb/db/qp/executor/PlanExecutor.java
index 2842eb4..2b85428 100644
--- a/server/src/main/java/org/apache/iotdb/db/qp/executor/PlanExecutor.java
+++ b/server/src/main/java/org/apache/iotdb/db/qp/executor/PlanExecutor.java
@@ -373,7 +373,11 @@ public class PlanExecutor implements IPlanExecutor {
} else if (queryPlan instanceof LastQueryPlan) {
queryDataSet = queryRouter.lastQuery((LastQueryPlan) queryPlan,
context);
} else {
- queryDataSet = queryRouter.rawDataQuery((RawDataQueryPlan) queryPlan,
context);
+ try {
+ queryDataSet = queryRouter.rawDataQuery((RawDataQueryPlan)
queryPlan, context);
+ }catch (IndexOutOfBoundsException e){
+ return new EmptyDataSet();
+ }
}
}
queryDataSet.setRowLimit(queryPlan.getRowLimit());