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

Support UDT declarations from root of JSON schema model

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 1.35.0
    • core

    Description

      Related to CALCITE-5346.

      This change would allow for declaring user-defined types at the root of a schema model and allows for easy type alias mapping.

      These data types are shared by all schema in the model so cast and DDL expressions do not need to scope data type references to a particular sub-schema.

      For example:

      ...
        "inline":{
          "version":"1.0",
          "types":[
            {
              "name":"BOOL",
              "type":"BOOLEAN"
            },
            {
              "name":"BYTES",
              "type":"VARBINARY"
            }
          ]
      ...
      

      Would allow for CAST("true" as BOOL)

      Attachments

        Issue Links

          Activity

            People

              tjbanghart TJ Banghart
              tjbanghart TJ Banghart
              Votes:
              0 Vote for this issue
              Watchers:
              3 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 - 20m
                  20m