jduo commented on code in PR #3635:
URL: https://github.com/apache/calcite/pull/3635#discussion_r1529022099


##########
testkit/src/main/java/org/apache/calcite/test/SqlOperatorTest.java:
##########
@@ -709,6 +709,24 @@ void testCastToExactNumeric(CastType castType, 
SqlOperatorFixture f) {
         "CHAR(1) NOT NULL", "3");
   }
 
+  /**
+   * Test case for <a 
href="https://issues.apache.org/jira/browse/CALCITE-6210";>
+   * Cast to VARBINARY causes an assertion failure</a>. */
+  @Test public void testVarbinaryCast() {

Review Comment:
   Check a null string as well (eg CAST(CAST(NULL AS VARCHAR) AS VARINARY)



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

Reply via email to