Takes an expression from the global context and creates a new version where column references have been remapped to the local context. Assumes that all columns in `expr` are from the same input.
(&self, mut expr: C)
| 182 | /// where column references have been remapped to the local context. |
| 183 | /// Assumes that all columns in `expr` are from the same input. |
| 184 | pub fn map_expr_to_local<C: Columns + Sized>(&self, mut expr: C) -> C { |
| 185 | expr.visit_columns(|c| { |
| 186 | *c -= self.prior_arities[self.input_relation[*c]]; |
| 187 | }); |
| 188 | expr |
| 189 | } |
| 190 | |
| 191 | /// Takes an expression from the local context of the `index`th input and |
| 192 | /// creates a new version where column references have been remapped to the |
no test coverage detected