Skip to content

Commit

Permalink
add test
Browse files Browse the repository at this point in the history
  • Loading branch information
HTHou committed Oct 14, 2024
1 parent 418baaa commit 4d5dba6
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/multi-language-client.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
branches:
- master
- "rc/*"
- fix_py_query
paths:
- 'pom.xml'
- 'iotdb-client/pom.xml'
Expand Down
18 changes: 18 additions & 0 deletions iotdb-client/client-py/tests/integration/test_new_data_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,5 +153,23 @@ def session_test(use_session_pool=False):
assert rows == 10
assert columns == 5

session.insert_records(
[device_id],
[11],
[measurements_new_type],
[data_types_new_type],
[
[date(1970, 1, 1), 11, b"\x12\x34", "test11"],
],
)

with session.execute_query_statement(
"select s_01,s_02,s_03,s_04 from root.sg_test_01.d_04 where time > 10"
) as dataset:
cnt = 0
while dataset.has_next():
print(dataset.next())
assert cnt == 1

# close session connection.
session.close()

0 comments on commit 4d5dba6

Please sign in to comment.