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

justinchen pushed a commit to branch disable-2
in repository https://gitbox.apache.org/repos/asf/iotdb.git


The following commit(s) were added to refs/heads/disable-2 by this push:
     new 1c70cba9aa1 fix
1c70cba9aa1 is described below

commit 1c70cba9aa1ab7a4cf50c2653e02785d39751bb8
Author: Caideyipi <[email protected]>
AuthorDate: Tue Jan 13 12:11:02 2026 +0800

    fix
---
 .../metadata/fetcher/TableDeviceSchemaValidator.java  | 13 +------------
 .../apache/iotdb/commons/schema/table/TsTable.java    | 19 -------------------
 2 files changed, 1 insertion(+), 31 deletions(-)

diff --git 
a/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/relational/metadata/fetcher/TableDeviceSchemaValidator.java
 
b/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/relational/metadata/fetcher/TableDeviceSchemaValidator.java
index 1c139b0f59b..122d352d332 100644
--- 
a/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/relational/metadata/fetcher/TableDeviceSchemaValidator.java
+++ 
b/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/relational/metadata/fetcher/TableDeviceSchemaValidator.java
@@ -19,9 +19,7 @@
 
 package org.apache.iotdb.db.queryengine.plan.relational.metadata.fetcher;
 
-import org.apache.iotdb.commons.conf.CommonDescriptor;
 import org.apache.iotdb.commons.exception.IoTDBRuntimeException;
-import org.apache.iotdb.commons.schema.table.TsTable;
 import org.apache.iotdb.db.exception.sql.SemanticException;
 import org.apache.iotdb.db.protocol.session.SessionManager;
 import org.apache.iotdb.db.queryengine.common.MPPQueryContext;
@@ -252,16 +250,7 @@ public class TableDeviceSchemaValidator {
   }
 
   public static void checkObject4DeviceId(final Object[] deviceId) {
-    if (!CommonDescriptor.getInstance().getConfig().isRestrictObjectLimit()) {
-      return;
-    }
-    for (final Object part : deviceId) {
-      final String value = (String) part;
-      if (Objects.nonNull(value) && TsTable.isInvalid4ObjectType(value)) {
-        throw new SemanticException(
-            TsTable.getObjectStringError("deviceId", 
Arrays.toString(deviceId)));
-      }
-    }
+    throw new SemanticException("The object type column is not supported.");
   }
 
   private static class ValidateResult {
diff --git 
a/iotdb-core/node-commons/src/main/java/org/apache/iotdb/commons/schema/table/TsTable.java
 
b/iotdb-core/node-commons/src/main/java/org/apache/iotdb/commons/schema/table/TsTable.java
index 12aeb4eeaf2..1b5a9d4ac34 100644
--- 
a/iotdb-core/node-commons/src/main/java/org/apache/iotdb/commons/schema/table/TsTable.java
+++ 
b/iotdb-core/node-commons/src/main/java/org/apache/iotdb/commons/schema/table/TsTable.java
@@ -30,11 +30,9 @@ import 
org.apache.iotdb.commons.schema.table.column.TsTableColumnCategory;
 import org.apache.iotdb.commons.schema.table.column.TsTableColumnSchema;
 import org.apache.iotdb.commons.schema.table.column.TsTableColumnSchemaUtil;
 import org.apache.iotdb.commons.utils.CommonDateTimeUtils;
-import org.apache.iotdb.commons.utils.WindowsOSUtils;
 
 import com.google.common.collect.ImmutableList;
 import org.apache.tsfile.enums.TSDataType;
-import org.apache.tsfile.external.commons.lang3.SystemUtils;
 import org.apache.tsfile.utils.Pair;
 import org.apache.tsfile.utils.ReadWriteIOUtils;
 
@@ -419,23 +417,6 @@ public class TsTable {
     throw new MetadataException("The object type column is not supported.");
   }
 
-  public static boolean isInvalid4ObjectType(final String path) {
-    return path.equals(".")
-        || path.equals("..")
-        || path.contains("./")
-        || path.contains(".\\")
-        || !WindowsOSUtils.isLegalPathSegment4Windows(path);
-  }
-
-  public static String getObjectStringError(final String columnType, final 
String columnName) {
-    return String.format(
-        SystemUtils.IS_OS_WINDOWS
-            ? OBJECT_STRING_ERROR + " " + WindowsOSUtils.OS_SEGMENT_ERROR
-            : OBJECT_STRING_ERROR,
-        columnType,
-        columnName);
-  }
-
   @Override
   public boolean equals(Object o) {
     return super.equals(o);

Reply via email to