drill-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jinfeng Ni (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (DRILL-2827) Allow implicit cast from strings to boolean
Date Sun, 19 Apr 2015 17:14:58 GMT

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

Jinfeng Ni commented on DRILL-2827:
-----------------------------------

+1. LGTM. 

> Allow implicit cast from strings to boolean
> -------------------------------------------
>
>                 Key: DRILL-2827
>                 URL: https://issues.apache.org/jira/browse/DRILL-2827
>             Project: Apache Drill
>          Issue Type: Bug
>          Components: Functions - Drill
>    Affects Versions: 0.8.0
>            Reporter: Aman Sinha
>            Assignee: Jinfeng Ni
>         Attachments: 0001-DRILL-2827-Allow-implicit-cast-from-string-to-boolea.patch
>
>
> The following query fails: 
> {code}
> select * from dfs.`bool.json` where key = 'true';
> Error in expression at index -1.  Error: Missing function implementation: [castINT(BIT-REQUIRED)].
 Full expression: --UNKNOWN EXPRESSION--..
> {code}
> The reason is that a prior fix for DRILL-2590 removed the implicit casting from string
literals to boolean.  That fix is valid for non-string values.  



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message