mihaibudiu commented on code in PR #4110:
URL: https://github.com/apache/calcite/pull/4110#discussion_r1896235208
##########
testkit/src/main/java/org/apache/calcite/test/SqlOperatorTest.java:
##########
@@ -11262,11 +11264,12 @@ private static void
checkSubstringFunction(SqlOperatorFixture f) {
String.format(Locale.ROOT, "^substring('string', CAST(%d AS DOUBLE),
"
+ "CAST(%d AS DOUBLE))^", Byte.MIN_VALUE, Byte.MAX_VALUE + 10),
"Cannot apply 'SUBSTRING' to arguments of type "
- + ".*\\n.*\\n.*\\n.*\\n.*\\n.*\\n.*\\n.*", false);
+ + ".*\\n.*\\n.*\\n.*\\n.*\\n.*\\n.*\\n.*\\n.*\\n.*", false);
Review Comment:
Because of implicit casts SUBSTRING can now also allow UUID as arguments,
which are implicitly cast to VARCHAR.
--
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]