Sergey Nuyanzin created FLINK-38565:
---------------------------------------

             Summary: 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


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