Skip to content

Commit 3b7ad2c

Browse files
committed
rename method
1 parent 8c5c9ac commit 3b7ad2c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/plans/logical/basicLogicalOperators.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1019,13 +1019,13 @@ case class Aggregate(
10191019
}
10201020

10211021
object Aggregate {
1022-
def supportsAggregationBufferSchema(schema: StructType): Boolean = {
1022+
def isAggregateBufferMutable(schema: StructType): Boolean = {
10231023
schema.forall(f => UnsafeRow.isMutable(f.dataType))
10241024
}
10251025

10261026
def supportsHashAggregate(aggregateBufferAttributes: Seq[Attribute]): Boolean = {
10271027
val aggregationBufferSchema = StructType.fromAttributes(aggregateBufferAttributes)
1028-
supportsAggregationBufferSchema(aggregationBufferSchema)
1028+
isAggregateBufferMutable(aggregationBufferSchema)
10291029
}
10301030

10311031
def supportsObjectHashAggregate(aggregateExpressions: Seq[AggregateExpression]): Boolean = {

sql/core/src/main/java/org/apache/spark/sql/execution/UnsafeFixedWidthAggregationMap.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ public final class UnsafeFixedWidthAggregationMap {
6868
* schema, false otherwise.
6969
*/
7070
public static boolean supportsAggregationBufferSchema(StructType schema) {
71-
return Aggregate$.MODULE$.supportsAggregationBufferSchema(schema);
71+
return Aggregate$.MODULE$.isAggregateBufferMutable(schema);
7272
}
7373

7474
/**

0 commit comments

Comments
 (0)