You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by heary-cao <gi...@git.apache.org> on 2018/09/01 02:44:29 UTC

[GitHub] spark pull request #21968: [SPARK-24999][SQL]Reduce unnecessary 'new' memory...

Github user heary-cao commented on a diff in the pull request:

    https://github.com/apache/spark/pull/21968#discussion_r214502585
  
    --- Diff: sql/core/src/main/scala/org/apache/spark/sql/execution/aggregate/RowBasedHashMapGenerator.scala ---
    @@ -48,6 +48,8 @@ class RowBasedHashMapGenerator(
         val keySchema = ctx.addReferenceObj("keySchemaTerm", groupingKeySchema)
         val valueSchema = ctx.addReferenceObj("valueSchemaTerm", bufferSchema)
     
    +    val numVarLenFields = groupingKeys.map(_.dataType).count(dt => !UnsafeRow.isFixedLength(dt))
    --- End diff --
    
    @cloud-fan We want to discuss, how to modify?


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org