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

    https://github.com/apache/spark/pull/19083#discussion_r137378351
  
    --- Diff: 
sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/expressions/CodeGenerationSuite.scala
 ---
    @@ -98,19 +99,23 @@ class CodeGenerationSuite extends SparkFunSuite with 
ExpressionEvalHelper {
       }
     
       test("SPARK-18091: split large if expressions into blocks due to JVM 
code size limit") {
    -    var strExpr: Expression = Literal("abc")
    -    for (_ <- 1 to 150) {
    -      strExpr = Decode(Encode(strExpr, "utf-8"), "utf-8")
    -    }
    +    // Set the max value at `WHOLESTAGE_HUGE_METHOD_LIMIT` to compile 
gen'd code by janino
    +    withSQLConf(SQLConf.WHOLESTAGE_HUGE_METHOD_LIMIT.key -> 
Int.MaxValue.toString) {
    --- End diff --
    
    Why do we need to change value for `WHOLESTAGE_HUGE_METHOD_LIMIT` while 
this test is not for whole-stage codegen?
    We could select better naming for `SQLConf.WHOLESTAGE_HUGE_METHOD_LIMIT`?


---

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

Reply via email to