Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
7mming7 committed Jul 9, 2024
1 parent 34a8b8c commit 545baff
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -134,9 +134,11 @@ trait OptimizeMetadataOnlyDeltaQuery extends Logging {
}
}

private def extractPartitionFilters(plan: Aggregate): Option[Expression] = {
plan.child match {
private def extractPartitionFilters(plan: LogicalPlan): Option[Expression] = {
plan match {
case Filter(cond, _) => Some(cond)
case Project(_, child) => extractPartitionFilters(child)
case Aggregate(_, _, child) => extractPartitionFilters(child)
case _ => None
}
}
Expand Down

0 comments on commit 545baff

Please sign in to comment.