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

Sheng Wang commented on IMPALA-10836:
-------------------------------------

Thanks [~stigahuang], the second situation is indeed same asĀ IMPALA-10969. But 
I found that this Jira is created two month ago, I've already finished the 
secondĀ  optimization in my own environment. If no one plan to do this feature, 
I would like to contribute my code.

> Add simplify cast rule
> ----------------------
>
>                 Key: IMPALA-10836
>                 URL: https://issues.apache.org/jira/browse/IMPALA-10836
>             Project: IMPALA
>          Issue Type: Improvement
>          Components: Frontend
>            Reporter: Xianqing He
>            Assignee: Xianqing He
>            Priority: Major
>             Fix For: Impala 4.1.0
>
>
> For the function cast we can add the following optimizations:
>  # Removes the inner case conversion expressions that are unnecessary, e.g. 
> cast(cast(col as int) as string) => cast(col as string)
>  # Removes unnecessary cast when the input is already the correct type, e.g. 
> col is bigint, cast(col as bigint) => col



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-all-unsubscr...@impala.apache.org
For additional commands, e-mail: issues-all-h...@impala.apache.org

Reply via email to