Github user ooq commented on a diff in the pull request:

    https://github.com/apache/spark/pull/14176#discussion_r73050331
  
    --- Diff: 
sql/core/src/main/scala/org/apache/spark/sql/execution/aggregate/HashAggregateExec.scala
 ---
    @@ -279,9 +280,15 @@ case class HashAggregateExec(
         .map(_.asInstanceOf[DeclarativeAggregate])
       private val bufferSchema = 
StructType.fromAttributes(aggregateBufferAttributes)
     
    -  // The name for Vectorized HashMap
    -  private var vectorizedHashMapTerm: String = _
    -  private var isVectorizedHashMapEnabled: Boolean = _
    +  // The name for Fast HashMap
    +  private var fastHashMapTerm: String = _
    +  // whether vectorized hashmap or row based hashmap is enabled
    +  // we make sure that at most one of the two flags is true
    +  // i.e., assertFalse(isVectorizedHashMapEnabled && 
isRowBasedHashMapEnabled)
    +  private var isVectorizedHashMapEnabled: Boolean = false
    +  private var isRowBasedHashMapEnabled: Boolean = false
    +  // auxiliary flag, true if any of two above is true
    +  private var isFastHashMapEnabled: Boolean = false
    --- End diff --
    
    This flag check if one of them is enabled. As some of the generated code is 
same for both hash maps, the flag could make condition-checking clearer. 


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to