Uploaded image for project: 'Calcite'
  1. Calcite
  2. CALCITE-6091

Char that in array or map is truncated if CASE WHEN statement contains null

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • core

    Description

      select case when true then array('abc')
                  when false then array('d') 
                  else null -- Perhaps it will be omitted
      end as c 

      The sql result type is CHAR(1) ARRAY.

      If we use the CHAR(1) ARRAY, array('abc') will be truncated.

      > Map has same issue.

       

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              jiajunbernoulli Jiajun Xie
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated: