We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 810e531 commit 7dbff02Copy full SHA for 7dbff02
1 file changed
src/main.cpp
@@ -583,17 +583,7 @@ int main(int argc, char* argv[]) {
583
cluster_manager->get_probe_key_col(args.context_id);
584
585
if (!probe_key_col.empty()) {
586
- auto table_meta_opt =
587
- catalog->get_table_by_name(args.table_name);
588
- if (table_meta_opt.has_value()) {
589
- const auto* table_meta = table_meta_opt.value();
590
- for (size_t i = 0; i < table_meta->columns.size(); ++i) {
591
- if (table_meta->columns[i].name == probe_key_col) {
592
- bloom_key_idx = i;
593
- break;
594
- }
595
596
+ bloom_key_idx = schema.find_column(probe_key_col);
597
}
598
have_bloom = (bloom_key_idx != static_cast<size_t>(-1));
599
0 commit comments