diff --git a/integration-test/src/test/java/org/apache/iotdb/relational/it/schema/IoTDBDatabaseIT.java b/integration-test/src/test/java/org/apache/iotdb/relational/it/schema/IoTDBDatabaseIT.java index c98421e27725..4d7ca76e7a5f 100644 --- a/integration-test/src/test/java/org/apache/iotdb/relational/it/schema/IoTDBDatabaseIT.java +++ b/integration-test/src/test/java/org/apache/iotdb/relational/it/schema/IoTDBDatabaseIT.java @@ -456,6 +456,9 @@ public void testMixedDatabase() throws SQLException { EnvFactory.getEnv().getConnection(BaseEnv.TABLE_SQL_DIALECT); final Statement statement = connection.createStatement()) { statement.execute("create database test"); + statement.execute("use test;"); + statement.execute("create table table1(id1 tag, s1 string);"); + statement.execute("insert into table1 values(0, 'd1', null), (1,'d1', 1);"); } try (final Connection connection = EnvFactory.getEnv().getConnection(); @@ -463,6 +466,7 @@ public void testMixedDatabase() throws SQLException { statement.execute("create database root.test"); statement.execute( "alter database root.test WITH SCHEMA_REGION_GROUP_NUM=2, DATA_REGION_GROUP_NUM=3"); + statement.execute("insert into root.test.d1 (s1) values(1)"); statement.execute("drop database root.test"); }