drill-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (DRILL-5792) CONVERT_FROM_JSON on an empty file throws runtime exception
Date Fri, 29 Sep 2017 22:53:00 GMT

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

ASF GitHub Bot commented on DRILL-5792:
---------------------------------------

Github user priteshm commented on the issue:

    https://github.com/apache/drill/pull/961
  
    @paul-rogers please review.


> 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)

Mime
View raw message