Skip to content
Prev Previous commit
Next Next commit
addressed review comments
  • Loading branch information
kiszk committed Nov 7, 2016
commit 61504c38af27d3ede6a13930c421274bebb3d602
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ class HashExpressionsSuite extends SparkFunSuite with ExpressionEvalHelper {
test("SPARK-18207: Compute hash for a lot of expressions") {
val N = 1000
val wideRow = new GenericInternalRow(
Copy link
Contributor

Choose a reason for hiding this comment

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

Where are you using the wideRow?

(1 to N).map(i => UTF8String.fromString(i.toString)).toArray[Any])
Seq.tabulate(N)(i => UTF8String.fromString(i.toString)).toArray[Any])
val schema = StructType((1 to N).map(i => StructField("", StringType)))

val exprs = schema.fields.zipWithIndex.map { case (f, i) =>
Expand Down