Create Projection # Errors This function errors under any of the following conditions: Two or more expressions have the same name An invalid expression is used (e.g. a `sort` expression)
(
plan: LogicalPlan,
expr: impl IntoIterator<Item = impl Into<SelectExpr>>,
)
| 1928 | /// * Two or more expressions have the same name |
| 1929 | /// * An invalid expression is used (e.g. a `sort` expression) |
| 1930 | pub fn project( |
| 1931 | plan: LogicalPlan, |
| 1932 | expr: impl IntoIterator<Item = impl Into<SelectExpr>>, |
| 1933 | ) -> Result<LogicalPlan> { |
| 1934 | project_with_validation(plan, expr.into_iter().map(|e| (e, true)), None) |
| 1935 | } |
| 1936 | |
| 1937 | /// Create Projection. Similar to project except that the expressions |
| 1938 | /// passed in have a flag to indicate if that expression requires |
no test coverage detected
searching dependent graphs…