mihaibudiu commented on code in PR #3501:
URL: https://github.com/apache/calcite/pull/3501#discussion_r1381997969


##########
testkit/src/main/java/org/apache/calcite/test/SqlOperatorTest.java:
##########
@@ -10497,6 +10497,27 @@ private static void 
checkArrayConcatAggFuncFails(SqlOperatorFixture t) {
         "[1         , 2         , Hi        , null]", "CHAR(10) ARRAY NOT 
NULL");
   }
 
+  /**
+   * Test case for
+   * <a 
href="https://issues.apache.org/jira/browse/CALCITE-6091";>[CALCITE-6091]
+   * Char that in array or map is truncated in CASE WHEN statement</a>.
+   */
+  @Test void testTruncatedCharInCaseWhen() {

Review Comment:
   I don't understand how this test relates to the change in the code.
   The code is about nullability, but this test does not have any null values.
   But the issue is about the type inference across cases in a case statement.
   This would suggest that the bug is actually in leastRestrictive, which 
doesn't handle properly nullable types? 



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