You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@calcite.apache.org by "Mihai Budiu (Jira)" <ji...@apache.org> on 2023/09/09 01:39:00 UTC

[jira] [Created] (CALCITE-5989) Type inference for RPAD and LPAD functions (BIGQUERY) is incorrect

Mihai Budiu created CALCITE-5989:
------------------------------------

             Summary: Type inference for RPAD and LPAD functions (BIGQUERY) is incorrect
                 Key: CALCITE-5989
                 URL: https://issues.apache.org/jira/browse/CALCITE-5989
             Project: Calcite
          Issue Type: Bug
          Components: core
    Affects Versions: 1.35.0
            Reporter: Mihai Budiu


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.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)