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

    https://github.com/apache/spark/pull/22375#discussion_r223214388
  
    --- Diff: 
sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/expressions/ExpressionEvalHelper.scala
 ---
    @@ -221,6 +227,12 @@ trait ExpressionEvalHelper extends 
GeneratorDrivenPropertyChecks with PlanTestBa
             val unsafeRow = evaluateWithUnsafeProjection(expression, inputRow)
             val input = if (inputRow == EmptyRow) "" else s", input: $inputRow"
     
    +        val dataType = expression.dataType
    +        if (!checkResult(unsafeRow.get(0, dataType), expected, dataType, 
expression.nullable)) {
    --- End diff --
    
    > does not perform checks recursively
    
    good point, I was not considering it. Then, do we need the check at 
https://github.com/apache/spark/pull/22375/files/9ef335d6e43a6ef7d253d0ed3564f95bd0278f71#diff-41747ec3f56901eb7bfb95d2a217e94dL231?
 Isn't it performed in `checkResult`?


---

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

Reply via email to