Skip to content

Commit 563ef5f

Browse files
committed
fix
1 parent e6c8913 commit 563ef5f

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

  • integration-test/src/test/java/org/apache/iotdb/relational/it/schema

integration-test/src/test/java/org/apache/iotdb/relational/it/schema/IoTDBTableIT.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -306,15 +306,15 @@ public void testManageTable() {
306306
}
307307

308308
statement.execute(
309-
"create table table2(region_id STRING TAG, plant_id STRING TAG, color STRING ATTRIBUTE, temperature FLOAT FIELD) with (TTL=6600000)");
309+
"create table table2(t1 TIMESTAMP TIME, region_id STRING TAG, plant_id STRING TAG, color STRING ATTRIBUTE, temperature FLOAT FIELD) with (TTL=6600000)");
310310

311311
statement.execute("alter table table2 add column speed DOUBLE FIELD COMMENT 'fast'");
312312

313313
TestUtils.assertResultSetEqual(
314314
statement.executeQuery("show create table table2"),
315315
"Table,Create Table,",
316316
Collections.singleton(
317-
"table2,CREATE TABLE \"table2\" (\"region_id\" STRING TAG,\"plant_id\" STRING TAG,\"color\" STRING ATTRIBUTE,\"temperature\" FLOAT FIELD,\"speed\" DOUBLE FIELD COMMENT 'fast') WITH (ttl=6600000),"));
317+
"table2,CREATE TABLE \"table2\" (\"t1\" TIMESTAMP TIME,\"region_id\" STRING TAG,\"plant_id\" STRING TAG,\"color\" STRING ATTRIBUTE,\"temperature\" FLOAT FIELD,\"speed\" DOUBLE FIELD COMMENT 'fast') WITH (ttl=6600000),"));
318318

319319
try {
320320
statement.execute("alter table table2 add column speed DOUBLE FIELD");
@@ -422,7 +422,7 @@ public void testManageTable() {
422422
assertEquals(columnNames.length, cnt);
423423
}
424424

425-
columnNames = new String[] {"time", "region_id", "plant_id", "color", "temperature", "speed"};
425+
columnNames = new String[] {"t1", "region_id", "plant_id", "color", "temperature", "speed"};
426426
dataTypes = new String[] {"TIMESTAMP", "STRING", "STRING", "STRING", "FLOAT", "DOUBLE"};
427427
categories = new String[] {"TIME", "TAG", "TAG", "ATTRIBUTE", "FIELD", "FIELD"};
428428

@@ -451,7 +451,7 @@ public void testManageTable() {
451451

452452
// Test comment
453453
// Before
454-
columnNames = new String[] {"time", "region_id", "plant_id", "temperature", "speed"};
454+
columnNames = new String[] {"t1", "region_id", "plant_id", "temperature", "speed"};
455455
dataTypes = new String[] {"TIMESTAMP", "STRING", "STRING", "FLOAT", "DOUBLE"};
456456
categories = new String[] {"TIME", "TAG", "TAG", "FIELD", "FIELD"};
457457
statuses = new String[] {"USING", "USING", "USING", "USING", "USING"};
@@ -1066,14 +1066,14 @@ public void testTreeViewTable() throws Exception {
10661066
statement.executeQuery("show create view view_table"),
10671067
"View,Create View,",
10681068
Collections.singleton(
1069-
"view_table,CREATE VIEW \"view_table\" (\"tag1\" STRING TAG,\"tag2\" STRING TAG,\"s11\" INT32 FIELD,\"s3\" STRING FIELD FROM \"s2\") RESTRICT WITH (ttl=100) AS root.\"重庆\".\"1\".**,"));
1069+
"view_table,CREATE VIEW \"view_table\" (\"time\" TIMESTAMP TIME,\"tag1\" STRING TAG,\"tag2\" STRING TAG,\"s11\" INT32 FIELD,\"s3\" STRING FIELD FROM \"s2\") RESTRICT WITH (ttl=100) AS root.\"重庆\".\"1\".**,"));
10701070

10711071
// Can also use "show create table"
10721072
TestUtils.assertResultSetEqual(
10731073
statement.executeQuery("show create table view_table"),
10741074
"View,Create View,",
10751075
Collections.singleton(
1076-
"view_table,CREATE VIEW \"view_table\" (\"tag1\" STRING TAG,\"tag2\" STRING TAG,\"s11\" INT32 FIELD,\"s3\" STRING FIELD FROM \"s2\") RESTRICT WITH (ttl=100) AS root.\"重庆\".\"1\".**,"));
1076+
"view_table,CREATE VIEW \"view_table\" (\"time\" TIMESTAMP TIME,\"tag1\" STRING TAG,\"tag2\" STRING TAG,\"s11\" INT32 FIELD,\"s3\" STRING FIELD FROM \"s2\") RESTRICT WITH (ttl=100) AS root.\"重庆\".\"1\".**,"));
10771077

10781078
statement.execute("create table a ()");
10791079
try {

0 commit comments

Comments
 (0)