snuyanzin commented on code in PR #20342:
URL: https://github.com/apache/flink/pull/20342#discussion_r968170353
##########
flink-table/flink-table-planner/src/test/scala/org/apache/flink/table/planner/expressions/ScalarFunctionsTest.scala:
##########
@@ -282,6 +282,13 @@ class ScalarFunctionsTest extends ScalarTypesTestBase {
"NULL")
}
+ @Test
+ def testTranslate(): Unit = {
+ testSqlApi("translate('AaBbCc', 'abc', '123')", "A1B2C3")
Review Comment:
Would be great to see also negative tests like with wrong amount of
arguments or wrong argument types.
Or what happen if the last argument has length more than the second?
--
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]