You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues-all@impala.apache.org by "Xianqing He (Jira)" <ji...@apache.org> on 2021/08/03 03:46:00 UTC

[jira] [Updated] (IMPALA-10836) Add simplify cast rule

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

Xianqing He updated IMPALA-10836:
---------------------------------
    Description: 
For the function cast we can add the following optimizer:
 # 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

  was:
For the function cast we can add the following optimizer:
 # 
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


> 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 optimizer:
>  # 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-unsubscribe@impala.apache.org
For additional commands, e-mail: issues-all-help@impala.apache.org