You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@iotdb.apache.org by GitBox <gi...@apache.org> on 2022/04/28 08:27:10 UTC
[GitHub] [iotdb] HTHou commented on a diff in pull request #5713: [IOTDB-3033] Completing the query and writing interface compared to java
HTHou commented on code in PR #5713:
URL: https://github.com/apache/iotdb/pull/5713#discussion_r860620340
##########
client-py/SessionExample.py:
##########
@@ -280,6 +280,51 @@
while session_data_set.has_next():
print(session_data_set.next())
+# insert string records of one device
+time_list = [1, 2, 3]
+measurements_list = [
+ ["s_01", "s_02", "s_03"],
+ ["s_01", "s_02", "s_03"],
+ ["s_01", "s_02", "s_03"],
+]
+values_list = [["False", "22", "33"], ["True", "1", "23"], ["False", "15", "26"]]
+
+session.insert_string_records_of_one_device(
+ "root.sg_test_01.d_03",
+ time_list,
+ measurements_list,
+ values_list,
+)
+
+# insert aligned string record into the database.
+time_list = [1, 2, 3]
+measurements_list = [
+ ["s_01", "s_02", "s_03"],
+ ["s_01", "s_02", "s_03"],
+ ["s_01", "s_02", "s_03"],
+]
+values_list = [["False", "22", "33"], ["True", "1", "23"], ["False", "15", "26"]]
+session.insert_aligned_string_records_of_one_device(
+ "root.sg_test_01.d_04",
+ time_list,
+ measurements_list,
+ values_list,
+)
Review Comment:
Move aligned example to SessionAlignedTimeseriesExample.py?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: reviews-unsubscribe@iotdb.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org