This is an automated email from the ASF dual-hosted git repository.

colinlee pushed a commit to branch fix_example
in repository https://gitbox.apache.org/repos/asf/tsfile.git

commit 02dda7be0d3de28e8c6bfdaf9cc4354390abc290
Author: ColinLee <[email protected]>
AuthorDate: Mon Oct 27 10:51:53 2025 +0800

    fix example
---
 python/examples/example.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/python/examples/example.py b/python/examples/example.py
index cd0e61e5..cf44a284 100644
--- a/python/examples/example.py
+++ b/python/examples/example.py
@@ -28,7 +28,7 @@ if os.path.exists(table_data_dir):
 
 column1 = ColumnSchema("id", TSDataType.STRING, ColumnCategory.TAG)
 column2 = ColumnSchema("id2", TSDataType.STRING, ColumnCategory.TAG)
-column3 = ColumnSchema("value", TSDataType.FLOAT, ColumnCategory.FIELD)
+column3 = ColumnSchema("value", TSDataType.DOUBLE, ColumnCategory.FIELD)
 table_schema = TableSchema("test_table", columns=[column1, column2, column3])
 
 
@@ -37,7 +37,7 @@ with TsFileTableWriter(table_data_dir, table_schema) as 
writer:
     tablet_row_num = 100
     tablet = Tablet(
                     ["id", "id2", "value"],
-                    [TSDataType.STRING, TSDataType.STRING, TSDataType.FLOAT],
+                    [TSDataType.STRING, TSDataType.STRING, TSDataType.DOUBLE],
                     tablet_row_num)
 
     for i in range(tablet_row_num):

Reply via email to