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 Tue, 26 Sep 2017 14:04:01 GMT

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

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

GitHub user vdiravka opened a pull request:

    https://github.com/apache/drill/pull/961

    DRILL-5792: CONVERT_FROM_JSON on an empty file throws runtime exception

    Easyfix - using GenericAccessor for UntypedNullVector.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/vdiravka/drill DRILL-5792

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/drill/pull/961.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #961
    
----
commit 9d3a92b963271897565cfd81098050b702fcdac5
Author: Vitalii Diravka <vitalii.diravka@gmail.com>
Date:   2017-09-26T11:06:45Z

    DRILL-5792: CONVERT_FROM_JSON on an empty file throws runtime exception

----


> 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