Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 17 additions & 19 deletions datafusion/physical-expr/src/planner.rs
Original file line number Diff line number Diff line change
Expand Up @@ -283,25 +283,23 @@ pub fn create_physical_expr(
input_dfschema,
execution_props,
)?),
Expr::GetIndexedField(GetIndexedField { expr: _, field }) => {
match field {
GetFieldAccess::NamedStructField { name: _ } => {
unreachable!(
"NamedStructField should be rewritten in OperatorToFunction"
)
}
GetFieldAccess::ListIndex { key: _ } => {
unreachable!("ListIndex should be rewritten in OperatorToFunction")
}
GetFieldAccess::ListRange {
start: _,
stop: _,
stride: _,
} => {
unreachable!("ListRange should be rewritten in OperatorToFunction")
}
};
}
Expr::GetIndexedField(GetIndexedField { expr: _, field }) => match field {
GetFieldAccess::NamedStructField { name: _ } => {
internal_err!(
"NamedStructField should be rewritten in OperatorToFunction"
)
}
GetFieldAccess::ListIndex { key: _ } => {
internal_err!("ListIndex should be rewritten in OperatorToFunction")
}
GetFieldAccess::ListRange {
start: _,
stop: _,
stride: _,
} => {
internal_err!("ListRange should be rewritten in OperatorToFunction")
}
},

Expr::ScalarFunction(ScalarFunction { func_def, args }) => {
let physical_args =
Expand Down