Skip to content

Commit

Permalink
Update IoTDBDatabaseIT.java
Browse files Browse the repository at this point in the history
  • Loading branch information
Caideyipi committed Jan 26, 2025
1 parent d51a8d9 commit 885d62a
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -456,13 +456,17 @@ 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();
final Statement statement = connection.createStatement()) {
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");
}

Expand Down

0 comments on commit 885d62a

Please sign in to comment.