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

Type inference for RPAD and LPAD functions (BIGQUERY) is incorrect

    XMLWordPrintableJSON

Details

    Description

      The type inference uses the type `ReturnTypes.ARG0_NULLABLE_VARYING` for the output.
      This means that the output cannot be longer than arg0. This bug surfaces when the query is optimized.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              mbudiu Mihai Budiu
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: