Fix bug with multiway joins that include the same table multiple times

This commit is contained in:
jussisaurio
2024-12-03 20:26:13 +02:00
parent 7924f9b64d
commit 840caed2f7

View File

@@ -365,7 +365,7 @@ pub fn get_table_ref_bitmask_for_operator<'a>(
table_refs_mask |= 1
<< tables
.iter()
.position(|t| Rc::ptr_eq(&t.table, &table_reference.table))
.position(|t| &t.table_identifier == &table_reference.table_identifier)
.unwrap();
}
SourceOperator::Search {
@@ -374,7 +374,7 @@ pub fn get_table_ref_bitmask_for_operator<'a>(
table_refs_mask |= 1
<< tables
.iter()
.position(|t| Rc::ptr_eq(&t.table, &table_reference.table))
.position(|t| &t.table_identifier == &table_reference.table_identifier)
.unwrap();
}
SourceOperator::Nothing => {}