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

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

> Reduce chain of TRY_CAST if source and target types are same
> ------------------------------------------------------------
>
>                 Key: FLINK-38565
>                 URL: https://issues.apache.org/jira/browse/FLINK-38565
>             Project: Flink
>          Issue Type: Bug
>          Components: Table SQL / Planner
>            Reporter: Sergey Nuyanzin
>            Assignee: Sergey Nuyanzin
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 2.2.0
>
>
> example
> {code:sql}
> SELECT TRY_CAST(CAST(a AS STRING) AS STRING) FROM MyTable
> {code}
> will have 2 casts in plan while in fact {{TRY_CAST}} is useless since type is 
> already STRING



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

Reply via email to