MCPcopy Create free account
hub / github.com/apache/datafusion / project

Function project

datafusion/expr/src/logical_plan/builder.rs:1930–1935  ·  view source on GitHub ↗

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>>,
)

Source from the content-addressed store, hash-verified

1928/// * Two or more expressions have the same name
1929/// * An invalid expression is used (e.g. a `sort` expression)
1930pub 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

Callers 9

projectMethod · 0.85
projectMethod · 0.85
add_missing_columnsMethod · 0.85
update_to_planMethod · 0.85
insert_to_planMethod · 0.85
try_into_logical_planMethod · 0.85
apply_emit_kindFunction · 0.85
from_project_relFunction · 0.85
rewriteMethod · 0.85

Calls 3

project_with_validationFunction · 0.85
mapMethod · 0.45
into_iterMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…