You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@drill.apache.org by "Mehant Baid (JIRA)" <ji...@apache.org> on 2014/04/26 09:42:14 UTC

[jira] [Updated] (DRILL-577) Allow implicit cast to be applied in both directions for certain data types

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

Mehant Baid updated DRILL-577:
------------------------------

    Attachment: DRILL-577.patch

> Allow implicit cast to be applied in both directions for certain data types
> ---------------------------------------------------------------------------
>
>                 Key: DRILL-577
>                 URL: https://issues.apache.org/jira/browse/DRILL-577
>             Project: Apache Drill
>          Issue Type: Bug
>            Reporter: Mehant Baid
>            Assignee: Mehant Baid
>         Attachments: DRILL-577.patch
>
>
> Currently implicit cast works as per the precedence rules. However based on some functions it might be useful allow the implicit cast to work in the opposite direction as specified by the precedence map.
> For example: As per the precedence rules, we can implicitly cast from VARCHAR ---> BIGINT. However for some functions (eg: substr, concat) it might be useful to implicitly cast from BIGINT ---> VARCHAR. 



--
This message was sent by Atlassian JIRA
(v6.2#6252)