[
https://issues.apache.org/jira/browse/DRILL-429?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jacques Nadeau reassigned DRILL-429:
------------------------------------
Assignee: Jacques Nadeau (was: Jinfeng Ni)
i'm working on this as part of another merge.
> explicit cast function call should be removed when input type is same as
> target type.
> -------------------------------------------------------------------------------------
>
> Key: DRILL-429
> URL: https://issues.apache.org/jira/browse/DRILL-429
> Project: Apache Drill
> Issue Type: Bug
> Reporter: Jinfeng Ni
> Assignee: Jacques Nadeau
>
> If the expression has an explicit cast function call, the code has a bug when
> the input type is same as the target type.
> For instance, castBIGINT(bigint_col). Since there is no function
> implementation for casting from bigint to bigint, the code will try to insert
> an implicit cast on top of the input. It will end up with
> castBIGINT(castFLOAT4(bigint_col)). This is inefficient, and in some case,
> it could cause query failure.
> We should remove the explicit cast function call, if we see the input type is
> same as the target type.
--
This message was sent by Atlassian JIRA
(v6.2#6252)