Skip to content

[MINOR][SQL] Remove duplicate code for AggregateExpression.isAggregate usage#36886

Closed
wangyum wants to merge 1 commit intoapache:masterfrom
wangyum:isAggregateExpression
Closed

[MINOR][SQL] Remove duplicate code for AggregateExpression.isAggregate usage#36886
wangyum wants to merge 1 commit intoapache:masterfrom
wangyum:isAggregateExpression

Conversation

@wangyum
Copy link
Member

@wangyum wangyum commented Jun 16, 2022

What changes were proposed in this pull request?

Remove duplicate code for AggregateExpression.isAggregate usage.

Why are the changes needed?

Make the code easier to maintain.

Does this PR introduce any user-facing change?

No.

How was this patch tested?

Existing UT.

Comment on lines -305 to -307
def isAggregateExpression(expr: Expression): Boolean = {
expr.isInstanceOf[AggregateExpression] || PythonUDF.isGroupedAggPandasUDF(expr)
}
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

def isAggregate(expr: Expression): Boolean = {
expr.isInstanceOf[AggregateExpression] || PythonUDF.isGroupedAggPandasUDF(expr)
}

@github-actions github-actions bot added the SQL label Jun 16, 2022
@huaxingao huaxingao closed this in 2d00164 Jun 16, 2022
@huaxingao
Copy link
Contributor

Merged to master. Thanks @wangyum

@wangyum wangyum deleted the isAggregateExpression branch June 16, 2022 04:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants