-
Notifications
You must be signed in to change notification settings - Fork 89
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
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);
a4d33a0 to
c5d1410
Compare
cpp/src/common/device_id.h
Outdated
| return !(*this == other); | ||
| } | ||
|
|
||
| void should_split_table_name() override { init_prefix_segments(); } |
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_split_table_name -> split_table_name
cpp/src/reader/tsfile_reader.cc
Outdated
| auto device_names = this->get_all_device_ids(); | ||
| std::vector<std::shared_ptr<IDeviceID>> device_ids; |
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.
device_names -> device_ids
device_ids -> satisfied_device_ids
cpp/src/reader/tsfile_reader.cc
Outdated
| auto device_names = this->get_all_device_ids(); | ||
| std::vector<std::shared_ptr<IDeviceID>> device_ids; | ||
| std::unordered_set<std::string> measurement_names_set_to_query; | ||
| size_t max_len = 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.
max_len -> device_max_len
|
|
||
| auto* table_result_set = (storage::TableResultSet*)result; | ||
| bool has_next = false; | ||
| int num = table_result_set->get_metadata()->get_column_count(); |
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.
col_cnt
| bool has_next = false; | ||
| int num = table_result_set->get_metadata()->get_column_count(); | ||
| ASSERT_EQ(num, 8); | ||
| int cnt = 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.
row_cnt
create timeseries with device_id in device_ids and measurement.
device_ids = [
"root.db1.t1",
"root.db2.t1",
"root.db3.t2.t3",
"root.db3.t3",
"device",
"device.ln",
"device2.ln1.tmp",
"device3.ln2.tmp.v1.v2",
"device3.ln2.tmp.v1.v3",
]
measurement_ids1 = ["temperature", "hudi", "level"]
measurement_ids2 = ["level", "vol"]
call to_dataframe() will get:
