drill-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Khurram Faraaz (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (DRILL-2618) BasicFormatMatcher calls getFirstPath(...) without checking # of paths is not zero
Date Tue, 01 Dec 2015 03:01:10 GMT

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

Khurram Faraaz commented on DRILL-2618:
---------------------------------------

Verified Fix on Drill 1.4.0 commit ID : ff76078b
Querying an empty directory now returns, Table <name> not found, message.

{code}
0: jdbc:drill:schema=dfs.tmp> select * from empty_DIR;
Error: VALIDATION ERROR: From line 1, column 15 to line 1, column 23: Table 'empty_DIR' not
found


[Error Id: 2e07938e-145b-4c00-917d-9cd4c7ad54d1 on centos-01.qa.lab:31010] (state=,code=0)
{code}

> BasicFormatMatcher calls getFirstPath(...) without checking # of paths is not zero
> ----------------------------------------------------------------------------------
>
>                 Key: DRILL-2618
>                 URL: https://issues.apache.org/jira/browse/DRILL-2618
>             Project: Apache Drill
>          Issue Type: Bug
>          Components: Storage - Other
>            Reporter: Daniel Barclay (Drill)
>            Assignee: Hanifi Gunes
>             Fix For: 1.4.0
>
>
> {{BasicFormatMatcher.isReadable(...)}} calls {{getFirstPath(...)}} without checking that
there is at least one path.  This can cause an IndexOutOfBoundsException.
> To reproduce, create an empty directory {{/tmp/CaseInsensitiveColumnNames}} and run {{exec/java-exec/src/test/java/org/apache/drill/TestExampleQueries.java}}.



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

Mime
View raw message