MaxGekk commented on code in PR #45615:
URL: https://github.com/apache/spark/pull/45615#discussion_r1537379721


##########
sql/core/src/test/scala/org/apache/spark/sql/CollationStringExpressionsSuite.scala:
##########
@@ -70,6 +73,19 @@ class CollationStringExpressionsSuite extends QueryTest with 
SharedSparkSession
     })
   }
 
+  test("REPEAT check output type on explicitly collated string") {
+    def testRepeat(expected: String, stringType: Integer, input: String, n: 
Integer): Unit = {
+      val s = Literal.create(input, StringType(stringType))
+
+      checkEvaluation(Collation(StringRepeat(s, 
Literal.create(n))).replacement, expected)

Review Comment:
   Does `checkEvaluation` check the output type?



-- 
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.

To unsubscribe, e-mail: [email protected]

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