-
Notifications
You must be signed in to change notification settings - Fork 85
Feature/python new datatypes (#641) #644
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
base: develop
Are you sure you want to change the base?
Conversation
* [Python] new datatypes * add cwrapper ut for python new datatypes
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #644 +/- ##
===========================================
+ Coverage 62.34% 62.49% +0.15%
===========================================
Files 703 704 +1
Lines 39628 39819 +191
Branches 5537 5571 +34
===========================================
+ Hits 24705 24885 +180
+ Misses 14261 14246 -15
- Partials 662 688 +26 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
hongzhi-gao
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good Job!
cpp/src/cwrapper/tsfile_cwrapper.h
Outdated
| ERRNO _insert_data_into_ts_record_by_name_string(TsRecord data, | ||
| const char* measurement_name, | ||
| const char* value); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we really need to provide such an insecure method?
cpp/test/cwrapper/cwrapper_test.cc
Outdated
| // Verify the retrieved data matches what we inserted | ||
| bool has_next = false; | ||
| int row_count = 0; | ||
| while (!result->next(has_next) && has_next) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rewrite !result->next(has_next) to make it clear that it is checking the status code.
python/tsfile/tsfile_cpp.pxd
Outdated
| ErrorCode _insert_data_into_ts_record_by_name_string_with_len(TsRecord data, const char *measurement_name, | ||
| const char *value, | ||
| const uint32_t value_len); | ||
| #ErrorCode _insert_data_into_ts_record_by_name_blob(record, PyUnicode_AsUTF8(field.get_field_name()), field.get_bytes_value()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove
python/tsfile/tsfile_py_cpp.pyx
Outdated
| # STRING or TEXT | ||
| elif data_type == TS_DATATYPE_STRING or data_type == TS_DATATYPE_TEXT or data_type == TS_DATATYPE_BLOB: | ||
| for row in range(max_row_num): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
or BLOB
db78d02 to
bc7e1b0
Compare
[Python] new datatypes
add cwrapper ut for python new datatypes