Skip to content

Commit

Permalink
Update SessionPoolTest.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
HTHou authored Nov 14, 2024
1 parent df76c0b commit 3c2593b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions samples/Apache.IoTDB.Samples/SessionPoolTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -472,14 +472,15 @@ await session_pool.ExecuteNonQueryStatementAsync(
res = await session_pool.ExecuteQueryStatementAsync(
"select status, temperature, hardware from " + string.Format("{0}.{1}", test_group_name, test_device) + " where time<10");
res.ShowTableNames();
Console.WriteLine(res.ShowTableNames());
var columnNames = new List<string> { "root.TEST_CSHARP_CLIENT_GROUP_97209.TEST_CSHARP_CLIENT_DEVICE.status", "root.TEST_CSHARP_CLIENT_GROUP_97209.TEST_CSHARP_CLIENT_DEVICE.temperature", "root.TEST_CSHARP_CLIENT_GROUP_97209.TEST_CSHARP_CLIENT_DEVICE.hardware" };
System.Diagnostics.Debug.Assert(res.ColumnNames.SequenceEqual(list2), "The columnnNames are not equal");
while (res.HasNext()) Console.WriteLine(res.Next());

await res.Close();
Console.WriteLine("SELECT sql Passed");
status = await session_pool.DeleteStorageGroupAsync(test_group_name);
System.Diagnostics.Debug.Assert(status == 0);
await session_pool.Close();
Console.WriteLine("SELECT sql Passed");
}
public async Task TestRawDataQuery()
{
Expand Down

0 comments on commit 3c2593b

Please sign in to comment.