Github user gatorsmile commented on a diff in the pull request:

    https://github.com/apache/spark/pull/19440#discussion_r143091966
  
    --- Diff: 
sql/core/src/test/scala/org/apache/spark/sql/execution/WholeStageCodegenSuite.scala
 ---
    @@ -185,4 +185,22 @@ class WholeStageCodegenSuite extends SparkPlanTest 
with SharedSQLContext {
         val (_, maxCodeSize2) = CodeGenerator.compile(codeWithLongFunctions)
         assert(maxCodeSize2 > 
SQLConf.WHOLESTAGE_HUGE_METHOD_LIMIT.defaultValue.get)
       }
    +
    +  test("returning batch for wide table") {
    +    import testImplicits._
    +    withTempPath { dir =>
    +      val path = dir.getCanonicalPath
    +      val df = spark.range(10).select(Seq.tabulate(201) {i => ('id + 
i).as(s"c$i")} : _*)
    +      df.write.mode(SaveMode.Overwrite).parquet(path)
    +
    +      withSQLConf(SQLConf.WHOLESTAGE_MAX_NUM_FIELDS.key -> "202",
    +        SQLConf.WHOLESTAGE_HUGE_METHOD_LIMIT.key -> "8000") {
    +        // donot return batch, because whole stage codegen is disabled for 
wide table (>202 columns)
    --- End diff --
    
    this is copied and pasted. will fix it.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to