@@ -35,8 +35,8 @@ public async Task TestInsertAlignedTablet()
35
35
if ( debug ) session_pool . OpenDebugMode ( ) ;
36
36
37
37
System . Diagnostics . Debug . Assert ( session_pool . IsOpen ( ) ) ;
38
- await session_pool . DeleteStorageGroupAsync ( test_group_name ) ;
39
- var device_id = string . Format ( "{0}.{1}" , test_group_name , test_device ) ;
38
+ await session_pool . DeleteDatabaseAsync ( test_database_name ) ;
39
+ var device_id = string . Format ( "{0}.{1}" , test_database_name , test_device ) ;
40
40
var measurement_lst = new List < string >
41
41
{ test_measurements [ 1 ] ,
42
42
test_measurements [ 2 ] ,
@@ -53,7 +53,7 @@ public async Task TestInsertAlignedTablet()
53
53
status = await session_pool . InsertAlignedTabletAsync ( tablet ) ;
54
54
System . Diagnostics . Debug . Assert ( status == 0 ) ;
55
55
var res = await session_pool . ExecuteQueryStatementAsync (
56
- "select * from " + string . Format ( "{0}.{1}" , test_group_name , test_device ) + " where time<15" ) ;
56
+ "select * from " + string . Format ( "{0}.{1}" , test_database_name , test_device ) + " where time<15" ) ;
57
57
res . ShowTableNames ( ) ;
58
58
while ( res . HasNext ( ) ) Console . WriteLine ( res . Next ( ) ) ;
59
59
@@ -81,7 +81,7 @@ public async Task TestInsertAlignedTablet()
81
81
var end_ms = DateTime . Now . Ticks / 10000 ;
82
82
Console . WriteLine ( string . Format ( "total tablet insert time is {0}" , end_ms - start_ms ) ) ;
83
83
res = await session_pool . ExecuteQueryStatementAsync (
84
- "select * from " + string . Format ( "{0}.{1}" , test_group_name , test_device ) ) ;
84
+ "select * from " + string . Format ( "{0}.{1}" , test_database_name , test_device ) ) ;
85
85
res . ShowTableNames ( ) ;
86
86
var res_count = 0 ;
87
87
while ( res . HasNext ( ) )
@@ -93,7 +93,7 @@ public async Task TestInsertAlignedTablet()
93
93
await res . Close ( ) ;
94
94
Console . WriteLine ( res_count + " " + fetch_size * processed_size ) ;
95
95
System . Diagnostics . Debug . Assert ( res_count == fetch_size * processed_size ) ;
96
- status = await session_pool . DeleteStorageGroupAsync ( test_group_name ) ;
96
+ status = await session_pool . DeleteDatabaseAsync ( test_database_name ) ;
97
97
System . Diagnostics . Debug . Assert ( status == 0 ) ;
98
98
await session_pool . Close ( ) ;
99
99
Console . WriteLine ( "TestInsertAlignedTablet Passed!" ) ;
@@ -107,11 +107,11 @@ public async Task TestInsertAlignedTablets()
107
107
if ( debug ) session_pool . OpenDebugMode ( ) ;
108
108
109
109
System . Diagnostics . Debug . Assert ( session_pool . IsOpen ( ) ) ;
110
- await session_pool . DeleteStorageGroupAsync ( test_group_name ) ;
110
+ await session_pool . DeleteDatabaseAsync ( test_database_name ) ;
111
111
var device_id = new List < string > ( )
112
112
{
113
- string . Format ( "{0}.{1}" , test_group_name , test_devices [ 1 ] ) ,
114
- string . Format ( "{0}.{1}" , test_group_name , test_devices [ 2 ] )
113
+ string . Format ( "{0}.{1}" , test_database_name , test_devices [ 1 ] ) ,
114
+ string . Format ( "{0}.{1}" , test_database_name , test_devices [ 2 ] )
115
115
} ;
116
116
var measurements_lst = new List < List < string > > ( )
117
117
{
@@ -148,7 +148,7 @@ public async Task TestInsertAlignedTablets()
148
148
status = await session_pool . InsertAlignedTabletsAsync ( tablets ) ;
149
149
System . Diagnostics . Debug . Assert ( status == 0 ) ;
150
150
var res = await session_pool . ExecuteQueryStatementAsync (
151
- "select * from " + string . Format ( "{0}.{1}" , test_group_name , test_devices [ 1 ] ) + " where time<15" ) ;
151
+ "select * from " + string . Format ( "{0}.{1}" , test_database_name , test_devices [ 1 ] ) + " where time<15" ) ;
152
152
res . ShowTableNames ( ) ;
153
153
while ( res . HasNext ( ) ) Console . WriteLine ( res . Next ( ) ) ;
154
154
@@ -157,7 +157,7 @@ public async Task TestInsertAlignedTablets()
157
157
// tablets = new List<Tablet>() { };
158
158
for ( var timestamp = 4 ; timestamp <= processed_size * fetch_size ; timestamp ++ )
159
159
{
160
- var local_device_id = string . Format ( "{0}.{1}" , test_group_name , test_devices [ 1 ] ) ;
160
+ var local_device_id = string . Format ( "{0}.{1}" , test_database_name , test_devices [ 1 ] ) ;
161
161
var local_measurements = new List < string > ( )
162
162
{ test_measurements [ 1 ] , test_measurements [ 2 ] , test_measurements [ 3 ] } ;
163
163
var local_value = new List < List < object > > ( ) { new ( ) { "iotdb" , true , ( int ) timestamp } } ;
@@ -174,7 +174,7 @@ public async Task TestInsertAlignedTablets()
174
174
175
175
Task . WaitAll ( tasks . ToArray ( ) ) ;
176
176
res = await session_pool . ExecuteQueryStatementAsync (
177
- "select * from " + string . Format ( "{0}.{1}" , test_group_name , test_devices [ 1 ] ) ) ;
177
+ "select * from " + string . Format ( "{0}.{1}" , test_database_name , test_devices [ 1 ] ) ) ;
178
178
res . ShowTableNames ( ) ;
179
179
var res_count = 0 ;
180
180
while ( res . HasNext ( ) )
@@ -186,7 +186,7 @@ public async Task TestInsertAlignedTablets()
186
186
await res . Close ( ) ;
187
187
Console . WriteLine ( res_count + " " + fetch_size * processed_size ) ;
188
188
System . Diagnostics . Debug . Assert ( res_count == fetch_size * processed_size ) ;
189
- status = await session_pool . DeleteStorageGroupAsync ( test_group_name ) ;
189
+ status = await session_pool . DeleteDatabaseAsync ( test_database_name ) ;
190
190
System . Diagnostics . Debug . Assert ( status == 0 ) ;
191
191
await session_pool . Close ( ) ;
192
192
Console . WriteLine ( "TestInsertAlignedTablets Passed!" ) ;
0 commit comments