You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@calcite.apache.org by "JiajunBernoulli (via GitHub)" <gi...@apache.org> on 2023/11/04 05:55:31 UTC

Re: [PR] [CALCITE-6091] Char that in array or map is truncated if CASE WHEN statement contains null [calcite]

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


##########
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:
   @mihaibudiu , Thanks for your review.
   
   I change the JIRA summary because https://issues.apache.org/jira/browse/CALCITE-4603 has been resolved.
   I just add the case if `types` has null.



-- 
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: commits-unsubscribe@calcite.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org