This is an automated email from the ASF dual-hosted git repository.
justinchen pushed a commit to branch template-fix
in repository https://gitbox.apache.org/repos/asf/iotdb.git
The following commit(s) were added to refs/heads/template-fix by this push:
new eb2ff4766ae fix
eb2ff4766ae is described below
commit eb2ff4766aeaa9f827ade830ba7a6f85fde4788b
Author: Caideyipi <[email protected]>
AuthorDate: Wed Feb 4 11:11:56 2026 +0800
fix
---
.../iotdb/db/it/schema/IoTDBSchemaTemplateIT.java | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
diff --git
a/integration-test/src/test/java/org/apache/iotdb/db/it/schema/IoTDBSchemaTemplateIT.java
b/integration-test/src/test/java/org/apache/iotdb/db/it/schema/IoTDBSchemaTemplateIT.java
index 822cca2e78c..f7683355073 100644
---
a/integration-test/src/test/java/org/apache/iotdb/db/it/schema/IoTDBSchemaTemplateIT.java
+++
b/integration-test/src/test/java/org/apache/iotdb/db/it/schema/IoTDBSchemaTemplateIT.java
@@ -853,4 +853,21 @@ public class IoTDBSchemaTemplateIT extends
AbstractSchemaIT {
}
}
}
+
+ @Test
+ public void testTemplatePathConflict() throws Exception {
+ try (final Connection connection = EnvFactory.getEnv().getConnection();
+ final Statement statement = connection.createStatement()) {
+ // set device template
+ statement.execute("SET DEVICE TEMPLATE t1 TO root.sg1");
+ // activate device template
+ statement.execute("create timeSeries using device template on
root.sg1.d1");
+ try {
+ statement.execute("create timeSeries using device template on
root.sg1.d1.s1");
+ fail();
+ } catch (final Exception e) {
+ Assert.assertEquals("506: Path [root.sg1.d1.s1] already exist",
e.getMessage());
+ }
+ }
+ }
}