Skip to content

Commit 46edf7a

Browse files
committed
fix compilation error
1 parent c254800 commit 46edf7a

File tree

6 files changed

+37
-18
lines changed

6 files changed

+37
-18
lines changed

samples/Apache.IoTDB.Samples/SessionPoolTest.AlignedRecord.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ public async Task TestInsertAlignedRecords()
185185
System.Diagnostics.Debug.Assert(status == 0);
186186
var res = await session_pool.ExecuteQueryStatementAsync(
187187
"select * from " + string.Format("{0}.{1}", testDatabaseName, testDevice) + " where time<10");
188-
UtilsTest.PrintDataSetByString(res);
188+
SessionPoolTest.PrintDataSetByString(res);
189189
Console.WriteLine(rowRecords);
190190

191191
System.Diagnostics.Debug.Assert(true);
@@ -267,7 +267,7 @@ public async Task TestInsertAlignedStringRecords()
267267
System.Diagnostics.Debug.Assert(status == 0);
268268
var res = await session_pool.ExecuteQueryStatementAsync(
269269
"select * from " + string.Format("{0}.{1}", testDatabaseName, testDevice) + " where time<10");
270-
UtilsTest.PrintDataSetByString(res);
270+
SessionPoolTest.PrintDataSetByString(res);
271271

272272
await res.Close();
273273

@@ -387,7 +387,7 @@ public async Task TestInsertAlignedRecordsOfOneDevice()
387387
System.Diagnostics.Debug.Assert(status == 0);
388388
var res = await session_pool.ExecuteQueryStatementAsync(
389389
"select * from " + string.Format("{0}.{1}", testDatabaseName, testDevice) + " where time<10");
390-
UtilsTest.PrintDataSetByString(res);
390+
SessionPoolTest.PrintDataSetByString(res);
391391

392392
await res.Close();
393393
rowRecords = new List<RowRecord>() { };
@@ -454,7 +454,7 @@ public async Task TestInsertAlignedStringRecordsOfOneDevice()
454454
System.Diagnostics.Debug.Assert(status == 0);
455455
var res = await session_pool.ExecuteQueryStatementAsync(
456456
"select * from " + string.Format("{0}.{1}", testDatabaseName, testDevice) + " where time<10");
457-
UtilsTest.PrintDataSetByString(res);
457+
SessionPoolTest.PrintDataSetByString(res);
458458

459459
await res.Close();
460460
// large data test

samples/Apache.IoTDB.Samples/SessionPoolTest.AlignedTablet.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public async Task TestInsertAlignedTablet()
5454
System.Diagnostics.Debug.Assert(status == 0);
5555
var res = await session_pool.ExecuteQueryStatementAsync(
5656
"select * from " + string.Format("{0}.{1}", testDatabaseName, testDevice) + " where time<15");
57-
UtilsTest.PrintDataSetByString(res);
57+
SessionPoolTest.PrintDataSetByString(res);
5858

5959
await res.Close();
6060
// large data test
@@ -148,7 +148,7 @@ public async Task TestInsertAlignedTablets()
148148
System.Diagnostics.Debug.Assert(status == 0);
149149
var res = await session_pool.ExecuteQueryStatementAsync(
150150
"select * from " + string.Format("{0}.{1}", testDatabaseName, testDevices[1]) + " where time<15");
151-
UtilsTest.PrintDataSetByString(res);
151+
SessionPoolTest.PrintDataSetByString(res);
152152

153153
// large data test
154154
var tasks = new List<Task<int>>();

samples/Apache.IoTDB.Samples/SessionPoolTest.Record.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ public async Task TestInsertStrRecord()
149149
System.Diagnostics.Debug.Assert(status == 0);
150150
var res = await session_pool.ExecuteQueryStatementAsync(
151151
"select * from " + string.Format("{0}.{1}", testDatabaseName, testDevice) + " where time<2");
152-
UtilsTest.PrintDataSetByString(res);
152+
SessionPoolTest.PrintDataSetByString(res);
153153

154154
await res.Close();
155155

@@ -255,7 +255,7 @@ public async Task TestInsertRecords()
255255
System.Diagnostics.Debug.Assert(status == 0);
256256
var res = await session_pool.ExecuteQueryStatementAsync(
257257
"select * from " + string.Format("{0}.{1}", testDatabaseName, testDevice) + " where time<10");
258-
UtilsTest.PrintDataSetByString(res);
258+
SessionPoolTest.PrintDataSetByString(res);
259259

260260
await res.Close();
261261
Console.WriteLine(status);
@@ -351,7 +351,7 @@ public async Task TestInsertStringRecords()
351351
System.Diagnostics.Debug.Assert(status == 0);
352352
var res = await session_pool.ExecuteQueryStatementAsync(
353353
"select * from " + string.Format("{0}.{1}", testDatabaseName, testDevice) + " where time<10");
354-
UtilsTest.PrintDataSetByString(res);
354+
SessionPoolTest.PrintDataSetByString(res);
355355

356356
await res.Close();
357357

@@ -467,7 +467,7 @@ public async Task TestInsertRecordsOfOneDevice()
467467
System.Diagnostics.Debug.Assert(status == 0);
468468
var res = await session_pool.ExecuteQueryStatementAsync(
469469
"select * from " + string.Format("{0}.{1}", testDatabaseName, testDevice) + " where time<10");
470-
UtilsTest.PrintDataSetByString(res);
470+
SessionPoolTest.PrintDataSetByString(res);
471471

472472
await res.Close();
473473
// large data test
@@ -541,7 +541,7 @@ public async Task TestInsertStringRecordsOfOneDevice()
541541
System.Diagnostics.Debug.Assert(status == 0);
542542
var res = await session_pool.ExecuteQueryStatementAsync(
543543
"select * from " + string.Format("{0}.{1}", testDatabaseName, testDevice) + " where time<10");
544-
UtilsTest.PrintDataSetByString(res);
544+
SessionPoolTest.PrintDataSetByString(res);
545545

546546
await res.Close();
547547
// large data test

samples/Apache.IoTDB.Samples/SessionPoolTest.Tablet.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public async Task TestInsertTablet()
5555
System.Diagnostics.Debug.Assert(status == 0);
5656
var res = await session_pool.ExecuteQueryStatementAsync(
5757
"select * from " + string.Format("{0}.{1}", testDatabaseName, testDevice) + " where time<15");
58-
UtilsTest.PrintDataSetByString(res);
58+
SessionPoolTest.PrintDataSetByString(res);
5959

6060
await res.Close();
6161
// large data test
@@ -148,7 +148,7 @@ public async Task TestInsertTablets()
148148
// System.Diagnostics.Debug.Assert(status == 0);
149149
var res = await session_pool.ExecuteQueryStatementAsync(
150150
"select * from " + string.Format("{0}.{1}", testDatabaseName, testDevices[1]) + " where time<15");
151-
UtilsTest.PrintDataSetByString(res);
151+
SessionPoolTest.PrintDataSetByString(res);
152152

153153
// large data test
154154

samples/Apache.IoTDB.Samples/SessionPoolTest.TestNetwork.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ public async Task TestTestInsertRecords()
144144
// System.Diagnostics.Debug.Assert(status == 0);
145145
var res = await session_pool.ExecuteQueryStatementAsync(
146146
"select * from " + string.Format("{0}.{1}", testDatabaseName, testDevice) + " where time<10");
147-
UtilsTest.PrintDataSetByString(res);
147+
SessionPoolTest.PrintDataSetByString(res);
148148

149149
await res.Close();
150150

@@ -213,7 +213,7 @@ public async Task TestTestInsertTablet()
213213
System.Diagnostics.Debug.Assert(status == 0);
214214
var res = await session_pool.ExecuteQueryStatementAsync(
215215
"select * from " + string.Format("{0}.{1}", testDatabaseName, testDevice) + " where time<15");
216-
UtilsTest.PrintDataSetByString(res);
216+
SessionPoolTest.PrintDataSetByString(res);
217217

218218
await res.Close();
219219
// large data test
@@ -305,7 +305,7 @@ public async Task TestTestInsertTablets()
305305
// System.Diagnostics.Debug.Assert(status == 0);
306306
var res = await session_pool.ExecuteQueryStatementAsync(
307307
"select * from " + string.Format("{0}.{1}", testDatabaseName, testDevices[1]) + " where time<15");
308-
UtilsTest.PrintDataSetByString(res);
308+
SessionPoolTest.PrintDataSetByString(res);
309309
await res.Close();
310310

311311
// large data test

samples/Apache.IoTDB.Samples/SessionPoolTest.Utils.cs

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,22 @@
1+
/*
2+
* Licensed to the Apache Software Foundation (ASF) under one
3+
* or more contributor license agreements. See the NOTICE file
4+
* distributed with this work for additional information
5+
* regarding copyright ownership. The ASF licenses this file
6+
* to you under the Apache License, Version 2.0 (the
7+
* "License"); you may not use this file except in compliance
8+
* with the License. You may obtain a copy of the License at
9+
*
10+
* http://www.apache.org/licenses/LICENSE-2.0
11+
*
12+
* Unless required by applicable law or agreed to in writing,
13+
* software distributed under the License is distributed on an
14+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15+
* KIND, either express or implied. See the License for the
16+
* specific language governing permissions and limitations
17+
* under the License.
18+
*/
19+
120
using System;
221
using System.Collections.Generic;
322
using Apache.IoTDB.DataStructure;
@@ -49,6 +68,6 @@ public static void PrintDataSetByString(SessionDataSet sessionDataSet)
4968
Console.WriteLine();
5069
}
5170
}
52-
71+
5372
}
54-
}
73+
}

0 commit comments

Comments
 (0)