You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Sergey Nuyanzin (Jira)" <ji...@apache.org> on 2025/08/02 15:02:00 UTC

[jira] [Resolved] (FLINK-38069) The nullability of function ENCODE return type differs in Table API and SQL

     [ https://issues.apache.org/jira/browse/FLINK-38069?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sergey Nuyanzin resolved FLINK-38069.
-------------------------------------
    Fix Version/s: 2.2.0
       Resolution: Fixed

> The nullability of function ENCODE return type differs in Table API and SQL
> ---------------------------------------------------------------------------
>
>                 Key: FLINK-38069
>                 URL: https://issues.apache.org/jira/browse/FLINK-38069
>             Project: Flink
>          Issue Type: Bug
>          Components: Table SQL / API
>            Reporter: dylanhz
>            Assignee: dylanhz
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 2.2.0
>
>         Attachments: Snipaste_2025-07-09_11-28-33.png
>
>
> The definition of return type nullability is different in `BuiltInFunctionDefinitions#ENCODE` and `FlinkSqlOperatorTable#ENCODE`. The same issue applies to  DECODE.
> The test in the attached image will pass, clearly the nullability differs in Table API and SQL.
> I think we should unify them to enforce nullable return types. And there may exist similar diffs in other functions, though I haven't checked yet.



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