Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SPARK-49565][SQL] Improve auto-generated expression aliases with pipe SQL operators #49245

Closed
wants to merge 8 commits into from
Closed
Changes from 1 commit
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
Prev Previous commit
sync
  • Loading branch information
dtenedor committed Jan 9, 2025
commit ad74a06719f257679dd53608f0e4c8e4f9cfb8f2
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
Loading