You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@drill.apache.org by "Jacques Nadeau (JIRA)" <ji...@apache.org> on 2015/07/23 04:39:05 UTC

[jira] [Resolved] (DRILL-3544) Need better error messages when convert_to is given a bad type

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

Jacques Nadeau resolved DRILL-3544.
-----------------------------------
    Resolution: Duplicate

> Need better error messages when convert_to is given a bad type
> --------------------------------------------------------------
>
>                 Key: DRILL-3544
>                 URL: https://issues.apache.org/jira/browse/DRILL-3544
>             Project: Apache Drill
>          Issue Type: Bug
>            Reporter: Ted Dunning
>
> The first query below fails because I used UTF-8 instead of UTF8.  This should have a decent error message.
> {code}
> 0: jdbc:drill:zk=local> SELECT CONVERT_TO('[ [1, 2], [3, 4], [5]]' ,'UTF-8') AS MYCOL1 FROM sys.version;
> Error: SYSTEM ERROR: org.apache.drill.exec.work.foreman.ForemanException: Unexpected exception during fragment initialization: null
> [Error Id: 899207da-2338-4b09-bdc8-8e12e320b661 on 172.16.0.61:31010] (state=,code=0)
> 0: jdbc:drill:zk=local> SELECT CONVERT_TO('[ [1, 2], [3, 4], [5]]' ,'UTF8') AS MYCOL1 FROM sys.version;
> +-------------+
> |   MYCOL1    |
> +-------------+
> | [B@71f3d3a  |
> +-------------+
> 1 row selected (0.108 seconds)
> 0: jdbc:drill:zk=local> 
> {code}



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