You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "liwei li (Jira)" <ji...@apache.org> on 2021/10/20 06:57:00 UTC
[jira] [Commented] (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:comment-tabpanel&focusedCommentId=17431015#comment-17431015 ]
liwei li commented on FLINK-24586:
----------------------------------
I'm interested in changing the return of JSON functions, can I have this ticket and start writing JSON-related code first?
> 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
> Priority: Major
>
> 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.3.4#803005)