File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
catalyst/src/test/scala/org/apache/spark/sql/catalyst/expressions
core/src/test/scala/org/apache/spark/sql Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -137,11 +137,13 @@ class HashExpressionsSuite extends SparkFunSuite with ExpressionEvalHelper {
137137 }
138138 val murmur3HashExpr = Murmur3Hash (exprs, 42 )
139139 val murmur3HashPlan = GenerateMutableProjection .generate(Seq (murmur3HashExpr))
140- assert(murmur3HashPlan(wideRow).getInt(0 ) == 58499324 )
140+ val murmursHashEval = Murmur3Hash (exprs, 42 ).eval(wideRow)
141+ assert(murmur3HashPlan(wideRow).getInt(0 ) == murmursHashEval)
141142
142143 val hiveHashExpr = HiveHash (exprs)
143144 val hiveHashPlan = GenerateMutableProjection .generate(Seq (hiveHashExpr))
144- assert(hiveHashPlan(wideRow).getInt(0 ) == 117331003 )
145+ val hiveHashEval = HiveHash (exprs).eval(wideRow)
146+ assert(hiveHashPlan(wideRow).getInt(0 ) == hiveHashEval)
145147 }
146148
147149 private def testHash (inputSchema : StructType ): Unit = {
Original file line number Diff line number Diff line change @@ -1729,4 +1729,3 @@ class DataFrameSuite extends QueryTest with SharedSQLContext {
17291729 assert(df.filter($" array1" === $" array2" ).count() == 1 )
17301730 }
17311731}
1732-
You can’t perform that action at this time.
0 commit comments