[
https://issues.apache.org/jira/browse/FLINK-38565?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18033136#comment-18033136
]
Sergey Nuyanzin commented on FLINK-38565:
-----------------------------------------
Merged as
[51561476a086fac922b363f07708fba6f78aeed5|https://github.com/apache/flink/commit/51561476a086fac922b363f07708fba6f78aeed5]
> 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
>
> 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)