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

Measures inside structured types (ROW, ARRAY, MAP)

    XMLWordPrintableJSON

Details

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

    Description

      Decide whether it is valid for measures to occur inside structured types (ROW, ARRAY, MAP). If invalid, throw a validation error; if valid, change the planner to make such queries work.

      A measure can occur within a ROW (struct) type because measures are part of a table's row type. It is more difficult to see measures in arrays or maps, because they would have to be treated as values (similar to lambdas) and could not be expanded at compile time.

      Note that SqlTypeUtil.fromMeasure only handles struct types currently.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              julianhyde Julian Hyde
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: