Skip to content
Snippets Groups Projects
Verified Commit 20bca6e7 authored by Denis Smirnov's avatar Denis Smirnov
Browse files

fixup: incorrect iterator for bucket discovery

parent 214b55a5
No related branches found
No related tags found
1 merge request!1414sbroad import
......@@ -198,7 +198,9 @@ where
#[otm_child_span("query.bucket.discovery")]
pub fn bucket_discovery(&mut self, top_id: usize) -> Result<Buckets, QueryPlannerError> {
let ir_plan = self.exec_plan.get_ir_plan();
let tree = DftPost::new(&top_id, |node| ir_plan.flashback_subtree_iter(node));
// We use a `subtree_iter()` because we need DNF version of the filter/condition
// expressions to determine buckets.
let tree = DftPost::new(&top_id, |node| ir_plan.subtree_iter(node));
let nodes: Vec<usize> = tree
.filter_map(|(_, id)| {
if ir_plan.get_relation_node(*id).is_ok() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment