Append to each row the results of applying elements of `scalar`.
(mut self, scalars: Vec<MirScalarExpr>)
| 1175 | |
| 1176 | /// Append to each row the results of applying elements of `scalar`. |
| 1177 | pub fn map(mut self, scalars: Vec<MirScalarExpr>) -> Self { |
| 1178 | if let MirRelationExpr::Map { scalars: s, .. } = &mut self { |
| 1179 | s.extend(scalars); |
| 1180 | self |
| 1181 | } else if !scalars.is_empty() { |
| 1182 | MirRelationExpr::Map { |
| 1183 | input: Box::new(self), |
| 1184 | scalars, |
| 1185 | } |
| 1186 | } else { |
| 1187 | self |
| 1188 | } |
| 1189 | } |
| 1190 | |
| 1191 | /// Append to each row a single `scalar`. |
| 1192 | pub fn map_one(self, scalar: MirScalarExpr) -> Self { |
no test coverage detected