Skip to content

Conversation

@ColinLeeo
Copy link
Contributor

@ColinLeeo ColinLeeo commented Nov 19, 2025

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:
截屏2025-12-01 09 28 18

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

@ColinLeeo ColinLeeo force-pushed the colin_support_read_tree branch from a4d33a0 to c5d1410 Compare November 30, 2025 04:08
return !(*this == other);
}

void should_split_table_name() override { init_prefix_segments(); }
Copy link
Contributor

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

Comment on lines 125 to 126
auto device_names = this->get_all_device_ids();
std::vector<std::shared_ptr<IDeviceID>> device_ids;
Copy link
Contributor

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

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;
Copy link
Contributor

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

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;
Copy link
Contributor

Choose a reason for hiding this comment

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

row_cnt

@ColinLeeo ColinLeeo merged commit 7aa4141 into apache:develop Dec 1, 2025
13 checks passed
ColinLeeo added a commit that referenced this pull request Dec 23, 2025
ColinLeeo added a commit that referenced this pull request Dec 23, 2025
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