You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Timo Walther (Jira)" <ji...@apache.org> on 2022/04/12 08:31:00 UTC

[jira] [Closed] (FLINK-24586) SQL functions should return STRING instead of VARCHAR(2000)

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

Timo Walther closed FLINK-24586.
--------------------------------
    Fix Version/s: 1.15.1
                       (was: 1.15.0)
       Resolution: Fixed

Unfortunately, we forgot to merge the fix for JSON_VALUE to the 1.15 branch. However, since this is plan breaking, I would suggest to merge this fix still to 1.15.1 asap.

Fixed in master: 3e8de30e42716b91b85d401fb7a3f9fe85d43fd9
Fixed in 1.15: dbfe5da2a2bc4564a1cf715a918299d107758b6c

> SQL functions should return STRING instead of VARCHAR(2000)
> -----------------------------------------------------------
>
>                 Key: FLINK-24586
>                 URL: https://issues.apache.org/jira/browse/FLINK-24586
>             Project: Flink
>          Issue Type: Improvement
>          Components: Table SQL / API
>            Reporter: Ingo Bürk
>            Assignee: Nicholas Jiang
>            Priority: Major
>              Labels: pull-request-available, stale-assigned
>             Fix For: 1.15.1
>
>
> There are some SQL functions which currently return VARCHAR(2000). With more strict CAST behavior from FLINK-24413, this could become an issue.
> The following functions return VARCHAR(2000) and should be changed to return STRING instead:
> * JSON_VALUE
> * JSON_QUERY
> * JSON_OBJECT
> * JSON_ARRAY
> There are also some more functions which should be evaluated:
> * CHR
> * REVERSE
> * SPLIT_INDEX
> * PARSE_URL
> * FROM_UNIXTIME
> * DECODE



--
This message was sent by Atlassian Jira
(v8.20.1#820001)