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/09/26 09:28:15 UTC

(iotdb) branch dev/1.3 updated: [To dev/1.3] Load: Re-enabled the is aligned exception check

This is an automated email from the ASF dual-hosted git repository.

jackietien pushed a commit to branch dev/1.3
in repository https://gitbox.apache.org/repos/asf/iotdb.git


The following commit(s) were added to refs/heads/dev/1.3 by this push:
     new e0eb872eb24 [To dev/1.3] Load: Re-enabled the is aligned exception check
e0eb872eb24 is described below

commit e0eb872eb2416d72b81b0b618cf8137732447821
Author: Caideyipi <87...@users.noreply.github.com>
AuthorDate: Fri Sep 26 17:28:08 2025 +0800

    [To dev/1.3] Load: Re-enabled the is aligned exception check
---
 .../queryengine/plan/analyze/load/LoadTsFileAnalyzer.java   | 13 +++++++------
 1 file changed, 7 insertions(+), 6 deletions(-)

diff --git a/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/analyze/load/LoadTsFileAnalyzer.java b/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/analyze/load/LoadTsFileAnalyzer.java
index e621c2b4452..555374af1b1 100644
--- a/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/analyze/load/LoadTsFileAnalyzer.java
+++ b/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/analyze/load/LoadTsFileAnalyzer.java
@@ -849,12 +849,13 @@ public class LoadTsFileAnalyzer implements AutoCloseable {
         // check device schema: is aligned or not
         final boolean isAlignedInTsFile = schemaCache.getDeviceIsAligned(device);
         final boolean isAlignedInIoTDB = iotdbDeviceSchemaInfo.isAligned();
-        if (LOGGER.isInfoEnabled() && isAlignedInTsFile != isAlignedInIoTDB) {
-          LOGGER.info(
-              "Device {} in TsFile is {}, but in IoTDB is {}.",
-              device,
-              isAlignedInTsFile ? "aligned" : "not aligned",
-              isAlignedInIoTDB ? "aligned" : "not aligned");
+        if (isAlignedInTsFile != isAlignedInIoTDB) {
+          throw new LoadAnalyzeTypeMismatchException(
+              String.format(
+                  "Device %s in TsFile is %s, but in IoTDB is %s.",
+                  device,
+                  isAlignedInTsFile ? "aligned" : "not aligned",
+                  isAlignedInIoTDB ? "aligned" : "not aligned"));
         }
 
         // check timeseries schema