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

    https://github.com/apache/spark/pull/21405#discussion_r200259117
  
    --- Diff: 
sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/expressions/codegen/CodeBlockSuite.scala
 ---
    @@ -133,4 +133,55 @@ class CodeBlockSuite extends SparkFunSuite {
                |}""".stripMargin
         assert(aliasedCode.toString == expected.toString)
       }
    +
    +  test ("transform expr in nested blocks") {
    +    val expr = JavaCode.expression("1 + 1", IntegerType)
    +    val isNull = JavaCode.isNullVariable("expr1_isNull")
    --- End diff --
    
    I think it is fine. I was thinking the name of `isNullVariable`  is a bit 
confusing at the first look actually.


---

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

Reply via email to