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 15, 2024
1 parent 3f884a1 commit 7e9858c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion samples/Apache.IoTDB.Samples/SessionPoolTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@

using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using Apache.IoTDB.Data;
Expand Down Expand Up @@ -473,7 +474,7 @@ await session_pool.ExecuteNonQueryStatementAsync(
"select status, temperature, hardware from " + string.Format("{0}.{1}", test_group_name, test_device) + " where time<10");
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" };
Console.WriteLine(res.ColumnNames);
System.Diagnostics.Debug.Assert(columnNames.SequenceEqual(res.ColumnNames), "The columnnNames are not equal");
while (res.HasNext()) Console.WriteLine(res.Next());

await res.Close();
Expand Down

0 comments on commit 7e9858c

Please sign in to comment.