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

Support nested map type for SqlDataTypeSpec

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.36.0
    • core

    Description

      There was added a similar support for arrays/multisets at https://issues.apache.org/jira/browse/CALCITE-3250
      however there is no support for maps so far.

      The issue is to add such support.

       

      I think I'd like to clarify is syntax for maps since it has 2 internal subtypes for keys and values may be something similar to ROW with delimiter like

      SELECT CAST(NULL AS MAP(INT, INT));
      -- or with square brackets similar to map constructor
      SELECT CAST(NULL AS MAP[INT, INT]);
      -- or with angle (Flink syntax)
      SELECT CAST(NULL AS MAP<INT, INT>);
      

       

       
       

      Attachments

        Issue Links

          Activity

            People

              jiajunbernoulli Jiajun Xie
              Sergey Nuyanzin Sergey Nuyanzin
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 50m
                  50m