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

Serialize return type during RelJson.toJson(RexNode node) for SqlKind.SAFE_CAST

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.37.0
    • None

    Description

      This is essentially the exact same as CALCITE-5607 for SqlKind.SAFE_CAST[1]. We need to preserve the desired cast type so that when going from json->rex, we know what type we want to cast to. We do this for the standard CAST, so we're really just trying to align the two functions.

      [1] https://github.com/apache/calcite/blob/main/core/src/main/java/org/apache/calcite/rel/externalize/RelJson.java#L635

      Attachments

        Issue Links

          Activity

            People

              tanclary Tanner Clary
              tanclary Tanner Clary
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: