You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@drill.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2017/10/02 17:32:01 UTC
[jira] [Commented] (DRILL-5792) CONVERT_FROM_JSON on an empty file
throws runtime exception
[ https://issues.apache.org/jira/browse/DRILL-5792?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16188473#comment-16188473 ]
ASF GitHub Bot commented on DRILL-5792:
---------------------------------------
Github user asfgit closed the pull request at:
https://github.com/apache/drill/pull/961
> CONVERT_FROM_JSON on an empty file throws runtime exception
> -----------------------------------------------------------
>
> Key: DRILL-5792
> URL: https://issues.apache.org/jira/browse/DRILL-5792
> Project: Apache Drill
> Issue Type: Bug
> Reporter: Prasad Nagaraj Subramanya
> Assignee: Vitalii Diravka
>
> Sample query to reproduce-
> {code}
> SELECT CONVERT_FROM(columns[1], 'JSON') as col1 FROM dfs.`file1.tbl`;
> {code}
> Throws runtime exception-
> {code}
> Error: Unexpected RuntimeException: java.lang.UnsupportedOperationException: Unable to find sql accessor for minor type [NULL] and mode [OPTIONAL] (state=,code=0)
> {code}
> The expected result is that the query returns 0 rows.
> Issue observed with commit id - 7a900b71fd269aceee7301afb18fd8d303df5bcd
> Expected result-
> {code}
> +-------+
> | col1 |
> +-------+
> +-------+
> {code}
> Works with drill 1.11.0
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)