yikf commented on a change in pull request #31510:
URL: https://github.com/apache/spark/pull/31510#discussion_r571615032



##########
File path: 
sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/expressions/StringExpressionsSuite.scala
##########
@@ -28,7 +28,7 @@ class StringExpressionsSuite extends SparkFunSuite with 
ExpressionEvalHelper {
   test("concat") {
     def testConcat(inputs: String*): Unit = {
       val expected = if (inputs.contains(null)) null else inputs.mkString
-      checkEvaluation(Concat(inputs.map(Literal.create(_, StringType))), 
expected, EmptyRow)
+      checkEvaluation(Concat(inputs.map(Literal.create(_, StringType))), 
expected)

Review comment:
       For reviewer, method of the `checkEvaluation` as  follow:
   
   `  protected def checkEvaluation(
         expression: => Expression, expected: Any, inputRow: InternalRow = 
EmptyRow): Unit = {
       // Make it as method to obtain fresh expression everytime.
       def expr = prepareEvaluation(expression)
       val catalystValue = CatalystTypeConverters.convertToCatalyst(expected)
       checkEvaluationWithoutCodegen(expr, catalystValue, inputRow)
       checkEvaluationWithMutableProjection(expr, catalystValue, inputRow)
       if (GenerateUnsafeProjection.canSupport(expr.dataType)) {
         checkEvaluationWithUnsafeProjection(expr, catalystValue, inputRow)
       }
       checkEvaluationWithOptimization(expr, catalystValue, inputRow)
     }`




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]



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

Reply via email to