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.git

commit 0763f9edf30c27e7630bfdbbef0f83e7886b8123
Author: Haonan <[email protected]>
AuthorDate: Tue Jan 7 10:28:41 2025 +0800

    Update table_model_session_example.py
---
 iotdb-client/client-py/table_model_session_example.py | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/iotdb-client/client-py/table_model_session_example.py 
b/iotdb-client/client-py/table_model_session_example.py
index 4d2ef0730d3..86aac09da2d 100644
--- a/iotdb-client/client-py/table_model_session_example.py
+++ b/iotdb-client/client-py/table_model_session_example.py
@@ -39,13 +39,13 @@ session.execute_non_query_statement("use test2")
 # or use full qualified table name
 session.execute_non_query_statement(
     "create table test1.table1("
-    "region_id STRING ID, plant_id STRING ID, device_id STRING ID, "
-    "model STRING ATTRIBUTE, temperature FLOAT MEASUREMENT, humidity DOUBLE 
MEASUREMENT) with (TTL=3600000)"
+    "region_id STRING TAG, plant_id STRING TAG, device_id STRING TAG, "
+    "model STRING ATTRIBUTE, temperature FLOAT FIELD, humidity DOUBLE FIELD) 
with (TTL=3600000)"
 )
 session.execute_non_query_statement(
     "create table table2("
-    "region_id STRING ID, plant_id STRING ID, color STRING ATTRIBUTE, 
temperature FLOAT MEASUREMENT,"
-    " speed DOUBLE MEASUREMENT) with (TTL=6600000)"
+    "region_id STRING TAG, plant_id STRING TAG, color STRING ATTRIBUTE, 
temperature FLOAT FIELD,"
+    " speed DOUBLE FIELD) with (TTL=6600000)"
 )
 
 # show tables from current database
@@ -101,9 +101,9 @@ session = TableSession(config)
 session.execute_non_query_statement("CREATE DATABASE IF NOT EXISTS db1")
 session.execute_non_query_statement('USE "db1"')
 session.execute_non_query_statement(
-    "CREATE TABLE table5 (id1 string id, attr1 string attribute, "
+    "CREATE TABLE table5 (id1 string TAG, attr1 string attribute, "
     + "m1 double "
-    + "measurement)"
+    + "FIELD)"
 )
 
 column_names = [

Reply via email to