Github user cloud-fan commented on a diff in the pull request:

    https://github.com/apache/spark/pull/19811#discussion_r156926555
  
    --- Diff: 
sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/expressions/codegen/GeneratedProjectionSuite.scala
 ---
    @@ -219,4 +219,31 @@ class GeneratedProjectionSuite extends SparkFunSuite {
         // - one is the mutableRow
         assert(globalVariables.length == 3)
       }
    +
    +  test("SPARK-18016: generated projections on wider table requiring state 
compaction") {
    +    val N = 6000
    +    val wideRow1 = new GenericInternalRow((0 until N).toArray[Any])
    +    val schema1 = StructType((1 to N).map(i => StructField("", 
IntegerType)))
    +    val wideRow2 = new GenericInternalRow(
    +      (0 until N).map(i => UTF8String.fromString(i.toString)).toArray[Any])
    --- End diff --
    
    nit: `Array[Any].fill(N)(i => UTF8String.fromString(i.toString))`


---

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

Reply via email to