Github user kiszk commented on a diff in the pull request: https://github.com/apache/spark/pull/21968#discussion_r215905122 --- Diff: sql/core/src/main/scala/org/apache/spark/sql/execution/aggregate/RowBasedHashMapGenerator.scala --- @@ -48,6 +48,12 @@ class RowBasedHashMapGenerator( val keySchema = ctx.addReferenceObj("keySchemaTerm", groupingKeySchema) val valueSchema = ctx.addReferenceObj("valueSchemaTerm", bufferSchema) + val numVarLenFields = groupingKeys.map(_.dataType).count { --- End diff -- I think that we can simplify this by removing `case ...`, as @cloud-fan suggested.
--- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org