Skip to content

Commit

Permalink
sync
Browse files Browse the repository at this point in the history
  • Loading branch information
dtenedor committed Jan 9, 2025
1 parent 168402f commit ad74a06
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -504,7 +504,7 @@ class Analyzer(override val catalogManager: CatalogManager) extends RuleExecutor
*/
object ResolveAliases extends Rule[LogicalPlan] {
def apply(plan: LogicalPlan): LogicalPlan =
plan.resolveOperatorsUpWithPruning(_.containsAnyPattern(UNRESOLVED_ALIAS), ruleId) {
plan.resolveOperatorsUpWithPruning(_.containsPattern(UNRESOLVED_ALIAS), ruleId) {
case Aggregate(groups, aggs, child, _)
if child.resolved && AliasResolution.hasUnresolvedAlias(aggs) =>
Aggregate(groups, AliasResolution.assignAliases(aggs), child)
Expand Down

0 comments on commit ad74a06

Please sign in to comment.