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

Converting SAFE_CAST from RexCall to SqlCall fails to add the type as an argument

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • None
    • 1.37.0
    • None

    Description

      BigQuery's SAFE_CAST function operates much like CAST. Currently, the unparsing logic is broken because it does not use the special logic for CAST in SqlImplementor.callToSql that turns the rex call's return type into the sql call's second argument.

      Attachments

        Issue Links

          Activity

            People

              wnoble Will Noble
              wnoble Will Noble
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: