Skip to content

Conversation

@ColinLeeo
Copy link
Contributor

No description provided.

@ColinLeeo ColinLeeo force-pushed the colin_support_read_tree branch 2 times, most recently from 11b9469 to 0df919d Compare November 20, 2025 02:34
@ColinLeeo ColinLeeo force-pushed the colin_support_read_tree branch from 0df919d to 7ef45b5 Compare November 20, 2025 02:40
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());
Copy link
Contributor

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);

Comment on lines 102 to 105
if (RET_FAIL(file_meta->get_table_metaindex_node(
device->get_table_name(), table_inode))) {
};
table_inodes.push_back(table_inode);
Copy link
Contributor

Choose a reason for hiding this comment

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

Should return the failure?

Comment on lines +119 to +122
if (column_types_map.find(field_col) == column_types_map.end()) {
all_collected = false;
break;
}
Copy link
Contributor

Choose a reason for hiding this comment

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

How about type collision?

Comment on lines 131 to 134
if (RET_FAIL(tsfile_io_reader_->get_timeseries_indexes(
device, measurements, index, pa))) {
assert(0);
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Should return the failure?

Comment on lines +142 to +152
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;
Copy link
Contributor

Choose a reason for hiding this comment

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

Fix it now.

}
std::vector<std::string> columns_names(max_len);
for (int i = 0; i < max_len; i++) {
columns_names[i] = "l_" + std::to_string(i);
Copy link
Contributor

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.

@ColinLeeo ColinLeeo force-pushed the colin_support_read_tree branch from a4d33a0 to c5d1410 Compare November 30, 2025 04:08
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.

3 participants