Skip to content

Commit

Permalink
fixes post-merge
Browse files Browse the repository at this point in the history
  • Loading branch information
emcake committed Dec 20, 2023
1 parent c6da2e9 commit 862aceb
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions crates/deltalake-core/src/operations/merge.rs
Original file line number Diff line number Diff line change
Expand Up @@ -707,13 +707,6 @@ fn generalize_filter(
None
}
}
Expr::ScalarUDF(udf) => {
if udf.args.len() == 1 {
references_table(&udf.args[0], table)
} else {
None
}
}
_ => None,
}
}
Expand Down Expand Up @@ -847,16 +840,16 @@ async fn try_construct_early_filter(
} else {
// if we have some recognised partitions, then discover the distinct set of partitions in the source data and
// make a new filter, which expands out the placeholders for each distinct partition (and then OR these together)
let distinct_partitions = LogicalPlan::Distinct(Distinct {
input: LogicalPlan::Projection(Projection::try_new(
let distinct_partitions = LogicalPlan::Distinct(Distinct::All(
LogicalPlan::Projection(Projection::try_new(
placeholders
.into_iter()
.map(|(alias, expr)| expr.alias(alias))
.collect_vec(),
source.clone().into(),
)?)
.into(),
});
));

let execution_plan = session_state
.create_physical_plan(&distinct_partitions)
Expand Down

0 comments on commit 862aceb

Please sign in to comment.