Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
HTHou committed Sep 9, 2024
1 parent 445bdb8 commit fe5a227
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions iotdb-client/client-py/TableModelSessionExample.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,10 @@
print(dataset.get_column_names())
while dataset.has_next():
row_record = dataset.next()
# print(row_record.get_fields()[0].get_long_value())
# print(row_record.get_fields()[1].get_string_value())
# print(row_record.get_fields()[2].get_string_value())
# print(row_record.get_fields()[3].get_double_value())
print(row_record)

with session.execute_query_statement("select * from table5 order by time") as dataset:
Expand Down
1 change: 1 addition & 0 deletions iotdb-client/client-py/iotdb/utils/Field.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ def get_long_value(self):
raise Exception("Null Field Exception!")
if (
self.__data_type != TSDataType.INT64
and self.__data_type != TSDataType.TIMESTAMP
or self.value is None
or self.value is pd.NA
):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

from iotdb.Session import Session
from iotdb.SessionPool import PoolConfig, create_session_pool
from iotdb.utils.IoTDBConstants import TSDataType, TSEncoding, Compressor
from iotdb.utils.IoTDBConstants import TSDataType
from iotdb.utils.NumpyTablet import NumpyTablet
from iotdb.utils.Tablet import Tablet, ColumnType
from iotdb.IoTDBContainer import IoTDBContainer
Expand Down

0 comments on commit fe5a227

Please sign in to comment.