Skip to content

Commit 054e8a3

Browse files
authored
fix some api and example. (#612)
1 parent 1a27b9c commit 054e8a3

8 files changed

Lines changed: 12 additions & 12 deletions

File tree

src/UserGuide/develop/QuickStart/InterfaceDefinition/InterfaceDefinition-Python.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ class ResultSet:
225225
:param max_row_num: The maximum number of rows to retrieve. Default is 1024.
226226
:return: A DataFrame containing data from the query result set.
227227
"""
228-
def read_next_data_frame(self, max_row_num : int = 1024) -> DataFrame
228+
def read_data_frame(self, max_row_num : int = 1024) -> DataFrame
229229
230230
231231
"""

src/UserGuide/develop/QuickStart/QuickStart-PYTHON.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ if os.path.exists(table_data_dir):
8686

8787
column1 = ColumnSchema("id", TSDataType.STRING, ColumnCategory.TAG)
8888
column2 = ColumnSchema("id2", TSDataType.STRING, ColumnCategory.TAG)
89-
column3 = ColumnSchema("value", TSDataType.FLOAT, ColumnCategory.FIELD)
89+
column3 = ColumnSchema("value", TSDataType.DOUBLE, ColumnCategory.FIELD)
9090
table_schema = TableSchema("test_table", columns=[column1, column2, column3])
9191

9292

@@ -95,7 +95,7 @@ with TsFileTableWriter(table_data_dir, table_schema) as writer:
9595
tablet_row_num = 100
9696
tablet = Tablet(
9797
["id", "id2", "value"],
98-
[TSDataType.STRING, TSDataType.STRING, TSDataType.FLOAT],
98+
[TSDataType.STRING, TSDataType.STRING, TSDataType.DOUBLE],
9999
tablet_row_num)
100100

101101
for i in range(tablet_row_num):

src/UserGuide/latest/QuickStart/InterfaceDefinition/InterfaceDefinition-Python.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ class ResultSet:
225225
:param max_row_num: The maximum number of rows to retrieve. Default is 1024.
226226
:return: A DataFrame containing data from the query result set.
227227
"""
228-
def read_next_data_frame(self, max_row_num : int = 1024) -> DataFrame
228+
def read_data_frame(self, max_row_num : int = 1024) -> DataFrame
229229
230230
231231
"""

src/UserGuide/latest/QuickStart/QuickStart-PYTHON.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ if os.path.exists(table_data_dir):
8686

8787
column1 = ColumnSchema("id", TSDataType.STRING, ColumnCategory.TAG)
8888
column2 = ColumnSchema("id2", TSDataType.STRING, ColumnCategory.TAG)
89-
column3 = ColumnSchema("value", TSDataType.FLOAT, ColumnCategory.FIELD)
89+
column3 = ColumnSchema("value", TSDataType.DOUBLE, ColumnCategory.FIELD)
9090
table_schema = TableSchema("test_table", columns=[column1, column2, column3])
9191

9292

@@ -95,7 +95,7 @@ with TsFileTableWriter(table_data_dir, table_schema) as writer:
9595
tablet_row_num = 100
9696
tablet = Tablet(
9797
["id", "id2", "value"],
98-
[TSDataType.STRING, TSDataType.STRING, TSDataType.FLOAT],
98+
[TSDataType.STRING, TSDataType.STRING, TSDataType.DOUBLE],
9999
tablet_row_num)
100100

101101
for i in range(tablet_row_num):

src/zh/UserGuide/develop/QuickStart/InterfaceDefinition/InterfaceDefinition-Python.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ class ResultSet:
214214
:param max_row_num: 要读取的最大行数,默认值为 1024
215215
:return: 包含查询结果数据的 DataFrame。
216216
"""
217-
def read_next_data_frame(self, max_row_num : int = 1024) -> DataFrame
217+
def read_data_frame(self, max_row_num : int = 1024) -> DataFrame
218218
219219
"""
220220
从查询结果集中按索引获取值。

src/zh/UserGuide/develop/QuickStart/QuickStart-PYTHON.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ if os.path.exists(table_data_dir):
9494

9595
column1 = ColumnSchema("id", TSDataType.STRING, ColumnCategory.TAG)
9696
column2 = ColumnSchema("id2", TSDataType.STRING, ColumnCategory.TAG)
97-
column3 = ColumnSchema("value", TSDataType.FLOAT, ColumnCategory.FIELD)
97+
column3 = ColumnSchema("value", TSDataType.DOUBLE, ColumnCategory.FIELD)
9898
table_schema = TableSchema("test_table", columns=[column1, column2, column3])
9999

100100

@@ -103,7 +103,7 @@ with TsFileTableWriter(table_data_dir, table_schema) as writer:
103103
tablet_row_num = 100
104104
tablet = Tablet(
105105
["id", "id2", "value"],
106-
[TSDataType.STRING, TSDataType.STRING, TSDataType.FLOAT],
106+
[TSDataType.STRING, TSDataType.STRING, TSDataType.DOUBLE],
107107
tablet_row_num)
108108

109109
for i in range(tablet_row_num):

src/zh/UserGuide/latest/QuickStart/InterfaceDefinition/InterfaceDefinition-Python.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ class ResultSet:
214214
:param max_row_num: 要读取的最大行数,默认值为 1024
215215
:return: 包含查询结果数据的 DataFrame。
216216
"""
217-
def read_next_data_frame(self, max_row_num : int = 1024) -> DataFrame
217+
def read_data_frame(self, max_row_num : int = 1024) -> DataFrame
218218
219219
"""
220220
从查询结果集中按索引获取值。

src/zh/UserGuide/latest/QuickStart/QuickStart-PYTHON.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ if os.path.exists(table_data_dir):
9494

9595
column1 = ColumnSchema("id", TSDataType.STRING, ColumnCategory.TAG)
9696
column2 = ColumnSchema("id2", TSDataType.STRING, ColumnCategory.TAG)
97-
column3 = ColumnSchema("value", TSDataType.FLOAT, ColumnCategory.FIELD)
97+
column3 = ColumnSchema("value", TSDataType.DOUBLE, ColumnCategory.FIELD)
9898
table_schema = TableSchema("test_table", columns=[column1, column2, column3])
9999

100100

@@ -103,7 +103,7 @@ with TsFileTableWriter(table_data_dir, table_schema) as writer:
103103
tablet_row_num = 100
104104
tablet = Tablet(
105105
["id", "id2", "value"],
106-
[TSDataType.STRING, TSDataType.STRING, TSDataType.FLOAT],
106+
[TSDataType.STRING, TSDataType.STRING, TSDataType.DOUBLE],
107107
tablet_row_num)
108108

109109
for i in range(tablet_row_num):

0 commit comments

Comments
 (0)