Skip to content

Commit c1d5e40

Browse files
authored
correctly compute the bound positions (#749)
2 parents 17cafdd + f647888 commit c1d5e40

File tree

1 file changed

+5
-2
lines changed
  • nemo/src/execution/planning/operations

1 file changed

+5
-2
lines changed

nemo/src/execution/planning/operations/import.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,12 +123,15 @@ impl BindingPattern {
123123
let subsets = input
124124
.iter()
125125
.map(|input_variables| {
126-
input_variables
126+
let mut subset = input_variables
127127
.iter()
128128
.filter_map(|variable| {
129129
bound_variables.iter().position(|bound| bound == variable)
130130
})
131-
.collect::<Vec<_>>()
131+
.collect::<Vec<_>>();
132+
133+
subset.sort();
134+
subset
132135
})
133136
.collect::<Vec<_>>();
134137

0 commit comments

Comments
 (0)