XuQianJin-Stars commented on a change in pull request #1862: [CALCITE-3864] Add Implementation for SqlLibraryOperators.CONCAT_FUNCTION in SqlFunctions and correct the return type inference of SqlLibraryOperators.CONCAT_FUNCTION URL: https://github.com/apache/calcite/pull/1862#discussion_r397039940
########## File path: core/src/test/java/org/apache/calcite/sql/test/SqlOperatorBaseTest.java ########## @@ -2169,6 +2170,21 @@ protected static Calendar getCalendarNotTooNear(int timeUnit) { "VARCHAR(33335) NOT NULL"); tester.checkNull("x'ff' || cast(null as varbinary)"); tester.checkNull(" cast(null as ANY) || cast(null as ANY) "); + tester.checkString("cast('a' as varchar) || cast('b' as varchar) " + + "|| cast('c' as varchar)", "abc", "VARCHAR NOT NULL"); + + final SqlTester tester1 = tester(SqlLibrary.MYSQL); + final SqlTester tester2 = tester(SqlLibrary.POSTGRESQL); + final SqlTester tester3 = tester(SqlLibrary.ORACLE); Review comment: oracle `CONCAT (char1, char2)` only accept how to reflect two parameters? ---------------------------------------------------------------- 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: us...@infra.apache.org With regards, Apache Git Services