ColinLeeo commented on code in PR #748:
URL: https://github.com/apache/tsfile/pull/748#discussion_r3015043817
##########
cpp/src/common/tablet.cc:
##########
@@ -98,10 +98,9 @@ int Tablet::init() {
case BLOB:
case TEXT:
case STRING: {
- value_matrix_[c].string_data =
- static_cast<common::String*>(common::mem_alloc(
- sizeof(String) * max_row_num_, common::MOD_TABLET));
- if (value_matrix_[c].string_data == nullptr) return E_OOM;
+ auto* sc = new StringColumn();
+ sc->init(max_row_num_, max_row_num_ * 32);
+ value_matrix_[c].string_col = sc;
Review Comment:
fixed
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]