You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by ha...@apache.org on 2024/11/14 23:18:25 UTC
(iotdb-client-csharp) 01/01: Add query test
This is an automated email from the ASF dual-hosted git repository.
haonan pushed a commit to branch HTHou-patch-1
in repository https://gitbox.apache.org/repos/asf/iotdb-client-csharp.git
commit 77e88b15d023240dcf484249a978ca55923c090d
Author: Haonan <hh...@outlook.com>
AuthorDate: Fri Nov 15 07:18:20 2024 +0800
Add query test
---
samples/Apache.IoTDB.Samples/SessionPoolTest.cs | 11 +++++++++--
1 file changed, 9 insertions(+), 2 deletions(-)
diff --git a/samples/Apache.IoTDB.Samples/SessionPoolTest.cs b/samples/Apache.IoTDB.Samples/SessionPoolTest.cs
index 54e3898..438395f 100644
--- a/samples/Apache.IoTDB.Samples/SessionPoolTest.cs
+++ b/samples/Apache.IoTDB.Samples/SessionPoolTest.cs
@@ -461,12 +461,19 @@ namespace Apache.IoTDB.Samples
while (res.HasNext()) Console.WriteLine(res.Next());
await res.Close();
- Console.WriteLine("SELECT sql Passed");
+ Console.WriteLine("SELECT * sql Passed");
res = await session_pool.ExecuteQueryStatementAsync(
"select * from " + string.Format("{0}.{1}", test_group_name, test_device) + " where time<10");
res.ShowTableNames();
while (res.HasNext()) Console.WriteLine(res.Next());
+ await res.Close();
+ Console.WriteLine("SELECT sql Passed");
+ res = await session_pool.ExecuteQueryStatementAsync(
+ "select timestamp, status, temperature, hardware from " + string.Format("{0}.{1}", test_group_name, test_device) + " where time<10");
+ res.ShowTableNames();
+ while (res.HasNext()) Console.WriteLine(res.Next());
+
await res.Close();
status = await session_pool.DeleteStorageGroupAsync(test_group_name);
System.Diagnostics.Debug.Assert(status == 0);
@@ -569,4 +576,4 @@ namespace Apache.IoTDB.Samples
Console.WriteLine("LastDataQuery Passed");
}
}
-}
\ No newline at end of file
+}