Skip to content
Prev Previous commit
addressed review comments
  • Loading branch information
kiszk committed Nov 8, 2016
commit a2b240808fc449c919c85ebe2eb840ca131ab8a4
Original file line number Diff line number Diff line change
Expand Up @@ -137,11 +137,13 @@ class HashExpressionsSuite extends SparkFunSuite with ExpressionEvalHelper {
}
val murmur3HashExpr = Murmur3Hash(exprs, 42)
val murmur3HashPlan = GenerateMutableProjection.generate(Seq(murmur3HashExpr))
assert(murmur3HashPlan(wideRow).getInt(0) == 58499324)
val murmursHashEval = Murmur3Hash(exprs, 42).eval(wideRow)
assert(murmur3HashPlan(wideRow).getInt(0) == murmursHashEval)

val hiveHashExpr = HiveHash(exprs)
val hiveHashPlan = GenerateMutableProjection.generate(Seq(hiveHashExpr))
assert(hiveHashPlan(wideRow).getInt(0) == 117331003)
val hiveHashEval = HiveHash(exprs).eval(wideRow)
assert(hiveHashPlan(wideRow).getInt(0) == hiveHashEval)
}

private def testHash(inputSchema: StructType): Unit = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1729,4 +1729,3 @@ class DataFrameSuite extends QueryTest with SharedSQLContext {
assert(df.filter($"array1" === $"array2").count() == 1)
}
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you need to revert this change.

Copy link
Member Author

@kiszk kiszk Nov 7, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry for my typo. It is time for me to have to sleep.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No problem. Happens to us all :)