Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Py-client] Fix dataset contains null value contract error #13762

Merged
merged 10 commits into from
Oct 15, 2024
Merged

Conversation

HTHou
Copy link
Contributor

@HTHou HTHou commented Oct 14, 2024

Description

To reproduce:

  1. execute the following sql
create database root.ln

CREATE ALIGNED TIMESERIES root.ln.g1.d1(BOOLEAN BOOLEAN encoding=PLAIN compressor=SNAPPY, INT32 INT32 encoding=PLAIN compressor=SNAPPY, INT64 INT64 encoding=PLAIN compressor=SNAPPY, FLOAT FLOAT encoding=PLAIN compressor=SNAPPY, DOUBLE DOUBLE encoding=PLAIN compressor=SNAPPY, TEXT TEXT encoding=PLAIN compressor=SNAPPY, TS TIMESTAMP encoding=PLAIN compressor=SNAPPY, DATE DATE encoding=PLAIN compressor=SNAPPY, BLOB BLOB encoding=PLAIN compressor=SNAPPY, STRING STRING encoding=PLAIN compressor=SNAPPY)

insert into root.ln.g1.d1(timestamp, BOOLEAN, INT32, INT64, FLOAT, DOUBLE, TEXT, TS, DATE, BLOB, STRING) aligned values(1, true, 1, 1, 1.0, 1.0, '1', 1, '1971-01-01', X'', '1')
insert into root.ln.g1.d1(timestamp, STRING) aligned values(2, 'None')
  1. execute the following python script
from iotdb.Session import Session

session = Session("127.0.0.1", "6667", "root", "root", 1024, "UTC+8", False)
 
session.open(False)
 
with session.execute_query_statement(
        "select * from root.**"
    ) as session_data_set:
        session_data_set.set_fetch_size(1024)
        while session_data_set.has_next():
            print(session_data_set.next())
 
session.close()

You will see an error.
image

Copy link

sonarcloud bot commented Oct 14, 2024

Copy link

codecov bot commented Oct 14, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 40.93%. Comparing base (d359e0d) to head (6fec871).
Report is 6 commits behind head on master.

Additional details and impacted files
@@             Coverage Diff              @@
##             master   #13762      +/-   ##
============================================
- Coverage     40.94%   40.93%   -0.01%     
  Complexity       71       71              
============================================
  Files          4038     4038              
  Lines        252818   252818              
  Branches      30855    30855              
============================================
- Hits         103518   103493      -25     
- Misses       149300   149325      +25     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@jt2594838 jt2594838 merged commit b6a30e8 into master Oct 15, 2024
38 of 40 checks passed
@HTHou HTHou deleted the fix_py_query branch October 15, 2024 03:39
HTHou added a commit that referenced this pull request Oct 15, 2024
* add test

* fix query dataset

* try IT

* try IT

* try IT

* try IT

* try IT

* fix

* fix IT
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants