You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by ja...@apache.org on 2025/03/14 02:29:49 UTC
(iotdb) branch master updated: Try fix error inconsistent bug
This is an automated email from the ASF dual-hosted git repository.
jackietien pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/iotdb.git
The following commit(s) were added to refs/heads/master by this push:
new 591fc141534 Try fix error inconsistent bug
591fc141534 is described below
commit 591fc14153427d30bb50f9c279c4ddd3915a9922
Author: Jackie Tien <ja...@gmail.com>
AuthorDate: Fri Mar 14 10:29:43 2025 +0800
Try fix error inconsistent bug
---
.../apache/iotdb/db/queryengine/plan/execution/QueryExecution.java | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/execution/QueryExecution.java b/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/execution/QueryExecution.java
index 476add9011c..37d029f0c69 100644
--- a/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/execution/QueryExecution.java
+++ b/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/execution/QueryExecution.java
@@ -60,6 +60,7 @@ import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.nio.ByteBuffer;
+import java.time.format.DateTimeParseException;
import java.util.List;
import java.util.Optional;
import java.util.concurrent.CancellationException;
@@ -73,6 +74,7 @@ import static com.google.common.base.Throwables.throwIfUnchecked;
import static org.apache.iotdb.db.queryengine.common.DataNodeEndPoints.isSameNode;
import static org.apache.iotdb.db.queryengine.metric.QueryExecutionMetricSet.WAIT_FOR_RESULT;
import static org.apache.iotdb.db.utils.ErrorHandlingUtils.getRootCause;
+import static org.apache.iotdb.rpc.TSStatusCode.DATE_OUT_OF_RANGE;
/**
* QueryExecution stores all the status of a query which is being prepared or running inside the MPP
@@ -469,6 +471,9 @@ public class QueryExecution implements IQueryExecution {
throw (IoTDBRuntimeException) rootCause;
} else if (rootCause instanceof IoTDBException) {
throw (IoTDBException) rootCause;
+ } else if (rootCause instanceof DateTimeParseException) {
+ throw new IoTDBRuntimeException(
+ rootCause.getMessage(), DATE_OUT_OF_RANGE.getStatusCode(), true);
}
throw new IoTDBException(rootCause, TSStatusCode.EXECUTE_STATEMENT_ERROR.getStatusCode());
} else {