Skip to content

Conversation

@ColinLeeo
Copy link
Contributor

  • [Python] new datatypes

  • add cwrapper ut for python new datatypes

* [Python] new datatypes

* add cwrapper ut for python new datatypes
@codecov-commenter
Copy link

codecov-commenter commented Nov 20, 2025

Codecov Report

❌ Patch coverage is 80.00000% with 3 lines in your changes missing coverage. Please review.
✅ Project coverage is 62.49%. Comparing base (be7bd7e) to head (bc7e1b0).
⚠️ Report is 5 commits behind head on develop.

Files with missing lines Patch % Lines
cpp/src/common/allocator/my_string.h 60.00% 0 Missing and 2 partials ⚠️
cpp/src/cwrapper/tsfile_cwrapper.cc 80.00% 0 Missing and 1 partial ⚠️
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.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@ColinLeeo ColinLeeo requested a review from jt2594838 November 21, 2025 11:25
Copy link
Contributor

@hongzhi-gao hongzhi-gao left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good Job!

Comment on lines 629 to 631
ERRNO _insert_data_into_ts_record_by_name_string(TsRecord data,
const char* measurement_name,
const char* value);
Copy link
Contributor

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?

// Verify the retrieved data matches what we inserted
bool has_next = false;
int row_count = 0;
while (!result->next(has_next) && has_next) {
Copy link
Contributor

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.

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())
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove

Comment on lines 271 to 273
# 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):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

or BLOB

@ColinLeeo ColinLeeo force-pushed the feature/python-new-datatypes branch from db78d02 to bc7e1b0 Compare November 29, 2025 04:15
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.

4 participants