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:24 UTC
(iotdb-client-csharp) branch HTHou-patch-1 created (now 77e88b1)
This is an automated email from the ASF dual-hosted git repository.
haonan pushed a change to branch HTHou-patch-1
in repository https://gitbox.apache.org/repos/asf/iotdb-client-csharp.git
at 77e88b1 Add query test
This branch includes the following new commits:
new 77e88b1 Add query test
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
(iotdb-client-csharp) 01/01: Add query test
Posted by ha...@apache.org.
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
+}