-
Notifications
You must be signed in to change notification settings - Fork 85
Colin support read tree #643
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
11b9469 to
0df919d
Compare
0df919d to
7ef45b5
Compare
| int column_pos_in_id = | ||
| table_schema->find_id_column_order(id_column) + 1; | ||
| int column_pos_in_id = table_schema->find_id_column_order(id_column) + | ||
| (!table_schema->is_virtual_table()); |
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.
int column_pos_in_id = table_schema->find_id_column_order(id_column) +
(table_schema->is_virtual_table() ? 0 : 1);
| if (RET_FAIL(file_meta->get_table_metaindex_node( | ||
| device->get_table_name(), table_inode))) { | ||
| }; | ||
| table_inodes.push_back(table_inode); |
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.
Should return the failure?
| if (column_types_map.find(field_col) == column_types_map.end()) { | ||
| all_collected = false; | ||
| break; | ||
| } |
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.
How about type collision?
| if (RET_FAIL(tsfile_io_reader_->get_timeseries_indexes( | ||
| device, measurements, index, pa))) { | ||
| assert(0); | ||
| } |
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.
Should return the failure?
| common::TSDataType type = ts_index->get_data_type(); | ||
| // TODO(Colin): Fix type missmatch. | ||
| // if (type == common::TSDataType::INT32 || | ||
| // type == common::TSDataType::INT64 || | ||
| // type == common::TSDataType::TIMESTAMP || | ||
| // type == common::TSDataType::DATE) { | ||
| // type = common::TSDataType::INT64; | ||
| // } else if (type == common::TSDataType::FLOAT) { | ||
| // type = common::TSDataType::DOUBLE; | ||
| // } | ||
| column_types_map[measurement_name] = type; |
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.
Fix it now.
cpp/src/reader/tsfile_reader.cc
Outdated
| } | ||
| std::vector<std::string> columns_names(max_len); | ||
| for (int i = 0; i < max_len; i++) { | ||
| columns_names[i] = "l_" + std::to_string(i); |
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.
Use "__L" to reduce the possiblity of conflicting with the user column.
a4d33a0 to
c5d1410
Compare
No description provided.