[ 
https://issues.apache.org/jira/browse/FLINK-24586?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17503256#comment-17503256
 ] 

Caizhi Weng commented on FLINK-24586:
-------------------------------------

Hi [~airblader] [~liliwei]. I see that {{JSON_VALUE}} is in the list, however 
in {{JsonFunctionsITcase#jsonValueSpec}} the expected return type for 
{{JSON_VALUE}} is still varchar(2000). Is this intended or shall we also change 
this?

> 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
>             Fix For: 1.15.0
>
>
> 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)

Reply via email to