Skip to content

Commit

Permalink
fix a mistake
Browse files Browse the repository at this point in the history
  • Loading branch information
cloud-fan committed Jan 22, 2018
1 parent 55a288e commit 0c22f5b
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -127,9 +127,7 @@ class VectorizedHashMapGenerator(

def genEqualsForKeys(groupingKeys: Seq[Buffer]): String = {
groupingKeys.zipWithIndex.map { case (key: Buffer, ordinal: Int) =>
// `ColumnVector.getStruct` is different from `InternalRow.getStruct`, it only takes an
// `ordinal` parameter.
val value = ctx.getValue(s"vectors[$ordinal]", key.dataType, "buckets[idx]")
val value = ctx.getValueFromVector(s"vectors[$ordinal]", key.dataType, "buckets[idx]")
s"(${ctx.genEqual(key.dataType, value, key.name)})"
}.mkString(" && ")
}
Expand Down

0 comments on commit 0c22f5b

Please sign in to comment.