drill-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sean Hsuan-Yi Chu (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (DRILL-3508) IOOB raised if FROM points at an empty directory
Date Tue, 21 Jul 2015 20:08:05 GMT

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

Sean Hsuan-Yi Chu commented on DRILL-3508:
------------------------------------------

The issue originates from storage plugin. Specifically, FileSelect would attempts to use the
first file for coming up with the schema in execution later.
(see FileSelect.getFirstPath)

And in case when there is not even a file, the logic above fails. 

> IOOB raised if FROM points at an empty directory
> ------------------------------------------------
>
>                 Key: DRILL-3508
>                 URL: https://issues.apache.org/jira/browse/DRILL-3508
>             Project: Apache Drill
>          Issue Type: Bug
>          Components: Query Planning & Optimization
>    Affects Versions: 1.1.0
>            Reporter: Stefán Baxter
>            Assignee: Sean Hsuan-Yi Chu
>             Fix For: 1.2.0
>
>
> I union select where the right hand side points to an empty directory files with the
following error code:
> Error: PARSE ERROR: Index: 0, Size: 0
> [Error Id: fed7527a-9d7a-4980-80f5-ff3f0b92d49b on localhost:31010] (state=,code=0)
> We use this to merge tenant based information and sometimes there are no files on the
right hand side of the union. It would be ideal that that scenario would return an empty list
rather than an error.



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

Mime
View raw message