You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "Russell Melick (JIRA)" <ji...@apache.org> on 2011/05/01 02:21:03 UTC

[jira] [Created] (HIVE-2138) Exception when no splits returned from index

Exception when no splits returned from index
--------------------------------------------

                 Key: HIVE-2138
                 URL: https://issues.apache.org/jira/browse/HIVE-2138
             Project: Hive
          Issue Type: Bug
          Components: Indexing
    Affects Versions: 0.8.0
            Reporter: Russell Melick


Running a query that uses indexing but doesn't return any results give an exception.

{code} java.lang.IllegalArgumentException: Can not create a Path from an empty string
at org.apache.hadoop.fs.Path.checkPathArg(Path.java:82)
at org.apache.hadoop.fs.Path.<init>(Path.java:90)
at org.apache.hadoop.util.StringUtils.stringToPath(StringUtils.java:224)
at org.apache.hadoop.mapred.FileInputFormat.setInputPaths(FileInputFormat.java:282)
at org.apache.hadoop.hive.ql.index.HiveIndexedInputFormat.getSplits(HiveIndexedInputFormat.java:123) {code}

This could potentially be fixed by creating a new empty file to use for the splits.

Once this is fixed, the index_auto_test_if_used.q can be used.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (HIVE-2138) Exception when no splits returned from index

Posted by "John Sichi (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HIVE-2138?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

John Sichi updated HIVE-2138:
-----------------------------

       Resolution: Fixed
    Fix Version/s: 0.8.0
     Hadoop Flags: [Reviewed]
           Status: Resolved  (was: Patch Available)

Committed.  Thanks Syed!


> Exception when no splits returned from index
> --------------------------------------------
>
>                 Key: HIVE-2138
>                 URL: https://issues.apache.org/jira/browse/HIVE-2138
>             Project: Hive
>          Issue Type: Bug
>          Components: Indexing
>    Affects Versions: 0.8.0
>            Reporter: Russell Melick
>            Assignee: Syed S. Albiz
>             Fix For: 0.8.0
>
>         Attachments: HIVE-2138.1.patch, HIVE-2138.2.patch, HIVE-2138.3.patch, HIVE-2138.4.patch, HIVE-2138.5.patch, index_auto_test_if_used.q
>
>
> Running a query that uses indexing but doesn't return any results give an exception.
> {code} java.lang.IllegalArgumentException: Can not create a Path from an empty string
> at org.apache.hadoop.fs.Path.checkPathArg(Path.java:82)
> at org.apache.hadoop.fs.Path.<init>(Path.java:90)
> at org.apache.hadoop.util.StringUtils.stringToPath(StringUtils.java:224)
> at org.apache.hadoop.mapred.FileInputFormat.setInputPaths(FileInputFormat.java:282)
> at org.apache.hadoop.hive.ql.index.HiveIndexedInputFormat.getSplits(HiveIndexedInputFormat.java:123) {code}
> This could potentially be fixed by creating a new empty file to use for the splits.
> Once this is fixed, the index_auto_test_if_used.q can be used.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (HIVE-2138) Exception when no splits returned from index

Posted by "Syed S. Albiz (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HIVE-2138?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Syed S. Albiz updated HIVE-2138:
--------------------------------

    Status: Patch Available  (was: Open)

> Exception when no splits returned from index
> --------------------------------------------
>
>                 Key: HIVE-2138
>                 URL: https://issues.apache.org/jira/browse/HIVE-2138
>             Project: Hive
>          Issue Type: Bug
>          Components: Indexing
>    Affects Versions: 0.8.0
>            Reporter: Russell Melick
>            Assignee: Syed S. Albiz
>         Attachments: HIVE-2138.1.patch, index_auto_test_if_used.q
>
>
> Running a query that uses indexing but doesn't return any results give an exception.
> {code} java.lang.IllegalArgumentException: Can not create a Path from an empty string
> at org.apache.hadoop.fs.Path.checkPathArg(Path.java:82)
> at org.apache.hadoop.fs.Path.<init>(Path.java:90)
> at org.apache.hadoop.util.StringUtils.stringToPath(StringUtils.java:224)
> at org.apache.hadoop.mapred.FileInputFormat.setInputPaths(FileInputFormat.java:282)
> at org.apache.hadoop.hive.ql.index.HiveIndexedInputFormat.getSplits(HiveIndexedInputFormat.java:123) {code}
> This could potentially be fixed by creating a new empty file to use for the splits.
> Once this is fixed, the index_auto_test_if_used.q can be used.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (HIVE-2138) Exception when no splits returned from index

Posted by "Syed S. Albiz (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HIVE-2138?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Syed S. Albiz updated HIVE-2138:
--------------------------------

    Attachment: HIVE-2138.3.patch

replace testcase with a robust testcase to check for empty splits

> Exception when no splits returned from index
> --------------------------------------------
>
>                 Key: HIVE-2138
>                 URL: https://issues.apache.org/jira/browse/HIVE-2138
>             Project: Hive
>          Issue Type: Bug
>          Components: Indexing
>    Affects Versions: 0.8.0
>            Reporter: Russell Melick
>            Assignee: Syed S. Albiz
>         Attachments: HIVE-2138.1.patch, HIVE-2138.2.patch, HIVE-2138.3.patch, index_auto_test_if_used.q
>
>
> Running a query that uses indexing but doesn't return any results give an exception.
> {code} java.lang.IllegalArgumentException: Can not create a Path from an empty string
> at org.apache.hadoop.fs.Path.checkPathArg(Path.java:82)
> at org.apache.hadoop.fs.Path.<init>(Path.java:90)
> at org.apache.hadoop.util.StringUtils.stringToPath(StringUtils.java:224)
> at org.apache.hadoop.mapred.FileInputFormat.setInputPaths(FileInputFormat.java:282)
> at org.apache.hadoop.hive.ql.index.HiveIndexedInputFormat.getSplits(HiveIndexedInputFormat.java:123) {code}
> This could potentially be fixed by creating a new empty file to use for the splits.
> Once this is fixed, the index_auto_test_if_used.q can be used.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (HIVE-2138) Exception when no splits returned from index

Posted by "jiraposter@reviews.apache.org (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HIVE-2138?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13078326#comment-13078326 ] 

jiraposter@reviews.apache.org commented on HIVE-2138:
-----------------------------------------------------


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/1255/#review1265
-----------------------------------------------------------



ql/src/java/org/apache/hadoop/hive/ql/index/HiveIndexedInputFormat.java
<https://reviews.apache.org/r/1255/#comment2898>

    We're not actually generating a dummy file now...



ql/src/test/queries/clientpositive/index_auto_test_if_used.q
<https://reviews.apache.org/r/1255/#comment2900>

    Could you add a note that this test relies on the fact that we currently attempt to use indexes even when they are out of date, and that once we fix that by detecting stale indexes, we'll need another way to verify that the index actually had an effect?
    



ql/src/test/queries/clientpositive/index_auto_test_if_used.q
<https://reviews.apache.org/r/1255/#comment2899>

    Reissue query to demonstrate that results are returned after index lookup is disabled.


- John


On 2011-08-02 02:35:11, Syed Albiz wrote:
bq.  
bq.  -----------------------------------------------------------
bq.  This is an automatically generated e-mail. To reply, visit:
bq.  https://reviews.apache.org/r/1255/
bq.  -----------------------------------------------------------
bq.  
bq.  (Updated 2011-08-02 02:35:11)
bq.  
bq.  
bq.  Review request for hive, John Sichi and Yongqiang He.
bq.  
bq.  
bq.  Summary
bq.  -------
bq.  
bq.  return an empty array of input splits when we get back no results from the hiveIndexResult
bq.  
bq.  
bq.  This addresses bug HIVE-2138.
bq.      https://issues.apache.org/jira/browse/HIVE-2138
bq.  
bq.  
bq.  Diffs
bq.  -----
bq.  
bq.    ql/src/java/org/apache/hadoop/hive/ql/index/HiveIndexedInputFormat.java 1a1ecd7 
bq.    ql/src/test/queries/clientpositive/index_auto_test_if_used.q PRE-CREATION 
bq.    ql/src/test/results/clientpositive/index_auto_test_if_used.q.out PRE-CREATION 
bq.  
bq.  Diff: https://reviews.apache.org/r/1255/diff
bq.  
bq.  
bq.  Testing
bq.  -------
bq.  
bq.  added index_auto_test_if_used.q to the test suite
bq.  
bq.  
bq.  Thanks,
bq.  
bq.  Syed
bq.  
bq.



> Exception when no splits returned from index
> --------------------------------------------
>
>                 Key: HIVE-2138
>                 URL: https://issues.apache.org/jira/browse/HIVE-2138
>             Project: Hive
>          Issue Type: Bug
>          Components: Indexing
>    Affects Versions: 0.8.0
>            Reporter: Russell Melick
>            Assignee: Syed S. Albiz
>         Attachments: HIVE-2138.1.patch, index_auto_test_if_used.q
>
>
> Running a query that uses indexing but doesn't return any results give an exception.
> {code} java.lang.IllegalArgumentException: Can not create a Path from an empty string
> at org.apache.hadoop.fs.Path.checkPathArg(Path.java:82)
> at org.apache.hadoop.fs.Path.<init>(Path.java:90)
> at org.apache.hadoop.util.StringUtils.stringToPath(StringUtils.java:224)
> at org.apache.hadoop.mapred.FileInputFormat.setInputPaths(FileInputFormat.java:282)
> at org.apache.hadoop.hive.ql.index.HiveIndexedInputFormat.getSplits(HiveIndexedInputFormat.java:123) {code}
> This could potentially be fixed by creating a new empty file to use for the splits.
> Once this is fixed, the index_auto_test_if_used.q can be used.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (HIVE-2138) Exception when no splits returned from index

Posted by "Syed S. Albiz (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HIVE-2138?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Syed S. Albiz updated HIVE-2138:
--------------------------------

    Attachment: HIVE-2138.1.patch

fix + testcase

> Exception when no splits returned from index
> --------------------------------------------
>
>                 Key: HIVE-2138
>                 URL: https://issues.apache.org/jira/browse/HIVE-2138
>             Project: Hive
>          Issue Type: Bug
>          Components: Indexing
>    Affects Versions: 0.8.0
>            Reporter: Russell Melick
>            Assignee: Syed S. Albiz
>         Attachments: HIVE-2138.1.patch, index_auto_test_if_used.q
>
>
> Running a query that uses indexing but doesn't return any results give an exception.
> {code} java.lang.IllegalArgumentException: Can not create a Path from an empty string
> at org.apache.hadoop.fs.Path.checkPathArg(Path.java:82)
> at org.apache.hadoop.fs.Path.<init>(Path.java:90)
> at org.apache.hadoop.util.StringUtils.stringToPath(StringUtils.java:224)
> at org.apache.hadoop.mapred.FileInputFormat.setInputPaths(FileInputFormat.java:282)
> at org.apache.hadoop.hive.ql.index.HiveIndexedInputFormat.getSplits(HiveIndexedInputFormat.java:123) {code}
> This could potentially be fixed by creating a new empty file to use for the splits.
> Once this is fixed, the index_auto_test_if_used.q can be used.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (HIVE-2138) Exception when no splits returned from index

Posted by "Russell Melick (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HIVE-2138?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Russell Melick updated HIVE-2138:
---------------------------------

    Attachment: index_auto_test_if_used.q

Attached test file (index_auto_test_if_used) that should test whether indexes are used.

> Exception when no splits returned from index
> --------------------------------------------
>
>                 Key: HIVE-2138
>                 URL: https://issues.apache.org/jira/browse/HIVE-2138
>             Project: Hive
>          Issue Type: Bug
>          Components: Indexing
>    Affects Versions: 0.8.0
>            Reporter: Russell Melick
>         Attachments: index_auto_test_if_used.q
>
>
> Running a query that uses indexing but doesn't return any results give an exception.
> {code} java.lang.IllegalArgumentException: Can not create a Path from an empty string
> at org.apache.hadoop.fs.Path.checkPathArg(Path.java:82)
> at org.apache.hadoop.fs.Path.<init>(Path.java:90)
> at org.apache.hadoop.util.StringUtils.stringToPath(StringUtils.java:224)
> at org.apache.hadoop.mapred.FileInputFormat.setInputPaths(FileInputFormat.java:282)
> at org.apache.hadoop.hive.ql.index.HiveIndexedInputFormat.getSplits(HiveIndexedInputFormat.java:123) {code}
> This could potentially be fixed by creating a new empty file to use for the splits.
> Once this is fixed, the index_auto_test_if_used.q can be used.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (HIVE-2138) Exception when no splits returned from index

Posted by "jiraposter@reviews.apache.org (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HIVE-2138?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13076007#comment-13076007 ] 

jiraposter@reviews.apache.org commented on HIVE-2138:
-----------------------------------------------------


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/1255/
-----------------------------------------------------------

Review request for hive, John Sichi and Yongqiang He.


Summary
-------

return an empty array of input splits when we get back no results from the hiveIndexResult


This addresses bug HIVE-2138.
    https://issues.apache.org/jira/browse/HIVE-2138


Diffs
-----

  ql/src/java/org/apache/hadoop/hive/ql/index/HiveIndexedInputFormat.java 1a1ecd7 
  ql/src/test/queries/clientpositive/index_auto_test_if_used.q PRE-CREATION 
  ql/src/test/results/clientpositive/index_auto_test_if_used.q.out PRE-CREATION 

Diff: https://reviews.apache.org/r/1255/diff


Testing
-------

added index_auto_test_if_used.q to the test suite


Thanks,

Syed



> Exception when no splits returned from index
> --------------------------------------------
>
>                 Key: HIVE-2138
>                 URL: https://issues.apache.org/jira/browse/HIVE-2138
>             Project: Hive
>          Issue Type: Bug
>          Components: Indexing
>    Affects Versions: 0.8.0
>            Reporter: Russell Melick
>            Assignee: Syed S. Albiz
>         Attachments: HIVE-2138.1.patch, index_auto_test_if_used.q
>
>
> Running a query that uses indexing but doesn't return any results give an exception.
> {code} java.lang.IllegalArgumentException: Can not create a Path from an empty string
> at org.apache.hadoop.fs.Path.checkPathArg(Path.java:82)
> at org.apache.hadoop.fs.Path.<init>(Path.java:90)
> at org.apache.hadoop.util.StringUtils.stringToPath(StringUtils.java:224)
> at org.apache.hadoop.mapred.FileInputFormat.setInputPaths(FileInputFormat.java:282)
> at org.apache.hadoop.hive.ql.index.HiveIndexedInputFormat.getSplits(HiveIndexedInputFormat.java:123) {code}
> This could potentially be fixed by creating a new empty file to use for the splits.
> Once this is fixed, the index_auto_test_if_used.q can be used.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (HIVE-2138) Exception when no splits returned from index

Posted by "jiraposter@reviews.apache.org (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HIVE-2138?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13080158#comment-13080158 ] 

jiraposter@reviews.apache.org commented on HIVE-2138:
-----------------------------------------------------


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/1255/
-----------------------------------------------------------

(Updated 2011-08-05 19:05:05.682867)


Review request for hive, John Sichi and Yongqiang He.


Changes
-------

updated testcases with new output


Summary
-------

return an empty array of input splits when we get back no results from the hiveIndexResult


This addresses bug HIVE-2138.
    https://issues.apache.org/jira/browse/HIVE-2138


Diffs (updated)
-----

  ql/src/java/org/apache/hadoop/hive/ql/index/HiveIndexedInputFormat.java 1a1ecd7 
  ql/src/test/queries/clientpositive/index_auto_empty.q PRE-CREATION 
  ql/src/test/results/clientpositive/index_auto_empty.q.out PRE-CREATION 

Diff: https://reviews.apache.org/r/1255/diff


Testing
-------

added index_auto_test_if_used.q to the test suite


Thanks,

Syed



> Exception when no splits returned from index
> --------------------------------------------
>
>                 Key: HIVE-2138
>                 URL: https://issues.apache.org/jira/browse/HIVE-2138
>             Project: Hive
>          Issue Type: Bug
>          Components: Indexing
>    Affects Versions: 0.8.0
>            Reporter: Russell Melick
>            Assignee: Syed S. Albiz
>         Attachments: HIVE-2138.1.patch, HIVE-2138.2.patch, HIVE-2138.3.patch, HIVE-2138.4.patch, HIVE-2138.5.patch, index_auto_test_if_used.q
>
>
> Running a query that uses indexing but doesn't return any results give an exception.
> {code} java.lang.IllegalArgumentException: Can not create a Path from an empty string
> at org.apache.hadoop.fs.Path.checkPathArg(Path.java:82)
> at org.apache.hadoop.fs.Path.<init>(Path.java:90)
> at org.apache.hadoop.util.StringUtils.stringToPath(StringUtils.java:224)
> at org.apache.hadoop.mapred.FileInputFormat.setInputPaths(FileInputFormat.java:282)
> at org.apache.hadoop.hive.ql.index.HiveIndexedInputFormat.getSplits(HiveIndexedInputFormat.java:123) {code}
> This could potentially be fixed by creating a new empty file to use for the splits.
> Once this is fixed, the index_auto_test_if_used.q can be used.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (HIVE-2138) Exception when no splits returned from index

Posted by "Hudson (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HIVE-2138?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13081328#comment-13081328 ] 

Hudson commented on HIVE-2138:
------------------------------

Integrated in Hive-trunk-h0.21 #881 (See [https://builds.apache.org/job/Hive-trunk-h0.21/881/])
    HIVE-2138. Exception when no splits returned from index.
(Syed Albiz via jvs)

jvs : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1155059
Files : 
* /hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/index/HiveIndexedInputFormat.java
* /hive/trunk/ql/src/test/results/clientpositive/index_auto_empty.q.out
* /hive/trunk/ql/src/test/queries/clientpositive/index_auto_empty.q


> Exception when no splits returned from index
> --------------------------------------------
>
>                 Key: HIVE-2138
>                 URL: https://issues.apache.org/jira/browse/HIVE-2138
>             Project: Hive
>          Issue Type: Bug
>          Components: Indexing
>    Affects Versions: 0.8.0
>            Reporter: Russell Melick
>            Assignee: Syed S. Albiz
>             Fix For: 0.8.0
>
>         Attachments: HIVE-2138.1.patch, HIVE-2138.2.patch, HIVE-2138.3.patch, HIVE-2138.4.patch, HIVE-2138.5.patch, index_auto_test_if_used.q
>
>
> Running a query that uses indexing but doesn't return any results give an exception.
> {code} java.lang.IllegalArgumentException: Can not create a Path from an empty string
> at org.apache.hadoop.fs.Path.checkPathArg(Path.java:82)
> at org.apache.hadoop.fs.Path.<init>(Path.java:90)
> at org.apache.hadoop.util.StringUtils.stringToPath(StringUtils.java:224)
> at org.apache.hadoop.mapred.FileInputFormat.setInputPaths(FileInputFormat.java:282)
> at org.apache.hadoop.hive.ql.index.HiveIndexedInputFormat.getSplits(HiveIndexedInputFormat.java:123) {code}
> This could potentially be fixed by creating a new empty file to use for the splits.
> Once this is fixed, the index_auto_test_if_used.q can be used.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (HIVE-2138) Exception when no splits returned from index

Posted by "John Sichi (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HIVE-2138?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13078358#comment-13078358 ] 

John Sichi commented on HIVE-2138:
----------------------------------

+1, will commit when tests pass.


> Exception when no splits returned from index
> --------------------------------------------
>
>                 Key: HIVE-2138
>                 URL: https://issues.apache.org/jira/browse/HIVE-2138
>             Project: Hive
>          Issue Type: Bug
>          Components: Indexing
>    Affects Versions: 0.8.0
>            Reporter: Russell Melick
>            Assignee: Syed S. Albiz
>         Attachments: HIVE-2138.1.patch, HIVE-2138.2.patch, index_auto_test_if_used.q
>
>
> Running a query that uses indexing but doesn't return any results give an exception.
> {code} java.lang.IllegalArgumentException: Can not create a Path from an empty string
> at org.apache.hadoop.fs.Path.checkPathArg(Path.java:82)
> at org.apache.hadoop.fs.Path.<init>(Path.java:90)
> at org.apache.hadoop.util.StringUtils.stringToPath(StringUtils.java:224)
> at org.apache.hadoop.mapred.FileInputFormat.setInputPaths(FileInputFormat.java:282)
> at org.apache.hadoop.hive.ql.index.HiveIndexedInputFormat.getSplits(HiveIndexedInputFormat.java:123) {code}
> This could potentially be fixed by creating a new empty file to use for the splits.
> Once this is fixed, the index_auto_test_if_used.q can be used.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (HIVE-2138) Exception when no splits returned from index

Posted by "John Sichi (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HIVE-2138?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

John Sichi updated HIVE-2138:
-----------------------------

    Status: Open  (was: Patch Available)

index_auto_test_if_used.q should not be in this patch.

> Exception when no splits returned from index
> --------------------------------------------
>
>                 Key: HIVE-2138
>                 URL: https://issues.apache.org/jira/browse/HIVE-2138
>             Project: Hive
>          Issue Type: Bug
>          Components: Indexing
>    Affects Versions: 0.8.0
>            Reporter: Russell Melick
>            Assignee: Syed S. Albiz
>         Attachments: HIVE-2138.1.patch, HIVE-2138.2.patch, HIVE-2138.3.patch, index_auto_test_if_used.q
>
>
> Running a query that uses indexing but doesn't return any results give an exception.
> {code} java.lang.IllegalArgumentException: Can not create a Path from an empty string
> at org.apache.hadoop.fs.Path.checkPathArg(Path.java:82)
> at org.apache.hadoop.fs.Path.<init>(Path.java:90)
> at org.apache.hadoop.util.StringUtils.stringToPath(StringUtils.java:224)
> at org.apache.hadoop.mapred.FileInputFormat.setInputPaths(FileInputFormat.java:282)
> at org.apache.hadoop.hive.ql.index.HiveIndexedInputFormat.getSplits(HiveIndexedInputFormat.java:123) {code}
> This could potentially be fixed by creating a new empty file to use for the splits.
> Once this is fixed, the index_auto_test_if_used.q can be used.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (HIVE-2138) Exception when no splits returned from index

Posted by "Syed S. Albiz (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HIVE-2138?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Syed S. Albiz updated HIVE-2138:
--------------------------------

    Attachment: HIVE-2138.5.patch

regenerated patch with updated testcase output

> Exception when no splits returned from index
> --------------------------------------------
>
>                 Key: HIVE-2138
>                 URL: https://issues.apache.org/jira/browse/HIVE-2138
>             Project: Hive
>          Issue Type: Bug
>          Components: Indexing
>    Affects Versions: 0.8.0
>            Reporter: Russell Melick
>            Assignee: Syed S. Albiz
>         Attachments: HIVE-2138.1.patch, HIVE-2138.2.patch, HIVE-2138.3.patch, HIVE-2138.4.patch, HIVE-2138.5.patch, index_auto_test_if_used.q
>
>
> Running a query that uses indexing but doesn't return any results give an exception.
> {code} java.lang.IllegalArgumentException: Can not create a Path from an empty string
> at org.apache.hadoop.fs.Path.checkPathArg(Path.java:82)
> at org.apache.hadoop.fs.Path.<init>(Path.java:90)
> at org.apache.hadoop.util.StringUtils.stringToPath(StringUtils.java:224)
> at org.apache.hadoop.mapred.FileInputFormat.setInputPaths(FileInputFormat.java:282)
> at org.apache.hadoop.hive.ql.index.HiveIndexedInputFormat.getSplits(HiveIndexedInputFormat.java:123) {code}
> This could potentially be fixed by creating a new empty file to use for the splits.
> Once this is fixed, the index_auto_test_if_used.q can be used.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (HIVE-2138) Exception when no splits returned from index

Posted by "John Sichi (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HIVE-2138?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

John Sichi updated HIVE-2138:
-----------------------------

    Status: Open  (was: Patch Available)

index_auto_empty needs its log updated:

    [junit] < PREHOOK: type: ALTERINDEX_REBUILD
    [junit] ---
    [junit] > PREHOOK: type: QUERY
    [junit] 23c23
    [junit] < POSTHOOK: type: ALTERINDEX_REBUILD
    [junit] ---


> Exception when no splits returned from index
> --------------------------------------------
>
>                 Key: HIVE-2138
>                 URL: https://issues.apache.org/jira/browse/HIVE-2138
>             Project: Hive
>          Issue Type: Bug
>          Components: Indexing
>    Affects Versions: 0.8.0
>            Reporter: Russell Melick
>            Assignee: Syed S. Albiz
>         Attachments: HIVE-2138.1.patch, HIVE-2138.2.patch, HIVE-2138.3.patch, HIVE-2138.4.patch, index_auto_test_if_used.q
>
>
> Running a query that uses indexing but doesn't return any results give an exception.
> {code} java.lang.IllegalArgumentException: Can not create a Path from an empty string
> at org.apache.hadoop.fs.Path.checkPathArg(Path.java:82)
> at org.apache.hadoop.fs.Path.<init>(Path.java:90)
> at org.apache.hadoop.util.StringUtils.stringToPath(StringUtils.java:224)
> at org.apache.hadoop.mapred.FileInputFormat.setInputPaths(FileInputFormat.java:282)
> at org.apache.hadoop.hive.ql.index.HiveIndexedInputFormat.getSplits(HiveIndexedInputFormat.java:123) {code}
> This could potentially be fixed by creating a new empty file to use for the splits.
> Once this is fixed, the index_auto_test_if_used.q can be used.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Assigned] (HIVE-2138) Exception when no splits returned from index

Posted by "John Sichi (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HIVE-2138?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

John Sichi reassigned HIVE-2138:
--------------------------------

    Assignee: Syed S. Albiz

Syed, if you get time to look into this one, it's a good one to fix for getting automatic index usage production-ready.


> Exception when no splits returned from index
> --------------------------------------------
>
>                 Key: HIVE-2138
>                 URL: https://issues.apache.org/jira/browse/HIVE-2138
>             Project: Hive
>          Issue Type: Bug
>          Components: Indexing
>    Affects Versions: 0.8.0
>            Reporter: Russell Melick
>            Assignee: Syed S. Albiz
>         Attachments: index_auto_test_if_used.q
>
>
> Running a query that uses indexing but doesn't return any results give an exception.
> {code} java.lang.IllegalArgumentException: Can not create a Path from an empty string
> at org.apache.hadoop.fs.Path.checkPathArg(Path.java:82)
> at org.apache.hadoop.fs.Path.<init>(Path.java:90)
> at org.apache.hadoop.util.StringUtils.stringToPath(StringUtils.java:224)
> at org.apache.hadoop.mapred.FileInputFormat.setInputPaths(FileInputFormat.java:282)
> at org.apache.hadoop.hive.ql.index.HiveIndexedInputFormat.getSplits(HiveIndexedInputFormat.java:123) {code}
> This could potentially be fixed by creating a new empty file to use for the splits.
> Once this is fixed, the index_auto_test_if_used.q can be used.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (HIVE-2138) Exception when no splits returned from index

Posted by "jiraposter@reviews.apache.org (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HIVE-2138?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13079630#comment-13079630 ] 

jiraposter@reviews.apache.org commented on HIVE-2138:
-----------------------------------------------------


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/1255/
-----------------------------------------------------------

(Updated 2011-08-04 21:56:31.633797)


Review request for hive, John Sichi and Yongqiang He.


Changes
-------

removed stale testcase


Summary
-------

return an empty array of input splits when we get back no results from the hiveIndexResult


This addresses bug HIVE-2138.
    https://issues.apache.org/jira/browse/HIVE-2138


Diffs (updated)
-----

  ql/src/java/org/apache/hadoop/hive/ql/index/HiveIndexedInputFormat.java 1a1ecd7 
  ql/src/test/queries/clientpositive/index_auto_empty.q PRE-CREATION 
  ql/src/test/results/clientpositive/index_auto_empty.q.out PRE-CREATION 

Diff: https://reviews.apache.org/r/1255/diff


Testing
-------

added index_auto_test_if_used.q to the test suite


Thanks,

Syed



> Exception when no splits returned from index
> --------------------------------------------
>
>                 Key: HIVE-2138
>                 URL: https://issues.apache.org/jira/browse/HIVE-2138
>             Project: Hive
>          Issue Type: Bug
>          Components: Indexing
>    Affects Versions: 0.8.0
>            Reporter: Russell Melick
>            Assignee: Syed S. Albiz
>         Attachments: HIVE-2138.1.patch, HIVE-2138.2.patch, HIVE-2138.3.patch, HIVE-2138.4.patch, index_auto_test_if_used.q
>
>
> Running a query that uses indexing but doesn't return any results give an exception.
> {code} java.lang.IllegalArgumentException: Can not create a Path from an empty string
> at org.apache.hadoop.fs.Path.checkPathArg(Path.java:82)
> at org.apache.hadoop.fs.Path.<init>(Path.java:90)
> at org.apache.hadoop.util.StringUtils.stringToPath(StringUtils.java:224)
> at org.apache.hadoop.mapred.FileInputFormat.setInputPaths(FileInputFormat.java:282)
> at org.apache.hadoop.hive.ql.index.HiveIndexedInputFormat.getSplits(HiveIndexedInputFormat.java:123) {code}
> This could potentially be fixed by creating a new empty file to use for the splits.
> Once this is fixed, the index_auto_test_if_used.q can be used.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (HIVE-2138) Exception when no splits returned from index

Posted by "jiraposter@reviews.apache.org (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HIVE-2138?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13078357#comment-13078357 ] 

jiraposter@reviews.apache.org commented on HIVE-2138:
-----------------------------------------------------


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/1255/
-----------------------------------------------------------

(Updated 2011-08-02 18:48:23.995744)


Review request for hive, John Sichi and Yongqiang He.


Changes
-------

addressed comments


Summary
-------

return an empty array of input splits when we get back no results from the hiveIndexResult


This addresses bug HIVE-2138.
    https://issues.apache.org/jira/browse/HIVE-2138


Diffs (updated)
-----

  ql/src/java/org/apache/hadoop/hive/ql/index/HiveIndexedInputFormat.java 1a1ecd7 
  ql/src/test/queries/clientpositive/index_auto_test_if_used.q PRE-CREATION 
  ql/src/test/results/clientpositive/index_auto_test_if_used.q.out PRE-CREATION 

Diff: https://reviews.apache.org/r/1255/diff


Testing
-------

added index_auto_test_if_used.q to the test suite


Thanks,

Syed



> Exception when no splits returned from index
> --------------------------------------------
>
>                 Key: HIVE-2138
>                 URL: https://issues.apache.org/jira/browse/HIVE-2138
>             Project: Hive
>          Issue Type: Bug
>          Components: Indexing
>    Affects Versions: 0.8.0
>            Reporter: Russell Melick
>            Assignee: Syed S. Albiz
>         Attachments: HIVE-2138.1.patch, HIVE-2138.2.patch, index_auto_test_if_used.q
>
>
> Running a query that uses indexing but doesn't return any results give an exception.
> {code} java.lang.IllegalArgumentException: Can not create a Path from an empty string
> at org.apache.hadoop.fs.Path.checkPathArg(Path.java:82)
> at org.apache.hadoop.fs.Path.<init>(Path.java:90)
> at org.apache.hadoop.util.StringUtils.stringToPath(StringUtils.java:224)
> at org.apache.hadoop.mapred.FileInputFormat.setInputPaths(FileInputFormat.java:282)
> at org.apache.hadoop.hive.ql.index.HiveIndexedInputFormat.getSplits(HiveIndexedInputFormat.java:123) {code}
> This could potentially be fixed by creating a new empty file to use for the splits.
> Once this is fixed, the index_auto_test_if_used.q can be used.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (HIVE-2138) Exception when no splits returned from index

Posted by "jiraposter@reviews.apache.org (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HIVE-2138?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13078516#comment-13078516 ] 

jiraposter@reviews.apache.org commented on HIVE-2138:
-----------------------------------------------------


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/1255/
-----------------------------------------------------------

(Updated 2011-08-02 23:44:30.658334)


Review request for hive, John Sichi and Yongqiang He.


Changes
-------

replace test case with something more robust


Summary
-------

return an empty array of input splits when we get back no results from the hiveIndexResult


This addresses bug HIVE-2138.
    https://issues.apache.org/jira/browse/HIVE-2138


Diffs (updated)
-----

  ql/src/java/org/apache/hadoop/hive/ql/index/HiveIndexedInputFormat.java 1a1ecd7 
  ql/src/test/queries/clientpositive/index_auto_empty.q PRE-CREATION 
  ql/src/test/queries/clientpositive/index_auto_test_if_used.q PRE-CREATION 
  ql/src/test/results/clientpositive/index_auto_empty.q.out PRE-CREATION 

Diff: https://reviews.apache.org/r/1255/diff


Testing
-------

added index_auto_test_if_used.q to the test suite


Thanks,

Syed



> Exception when no splits returned from index
> --------------------------------------------
>
>                 Key: HIVE-2138
>                 URL: https://issues.apache.org/jira/browse/HIVE-2138
>             Project: Hive
>          Issue Type: Bug
>          Components: Indexing
>    Affects Versions: 0.8.0
>            Reporter: Russell Melick
>            Assignee: Syed S. Albiz
>         Attachments: HIVE-2138.1.patch, HIVE-2138.2.patch, HIVE-2138.3.patch, index_auto_test_if_used.q
>
>
> Running a query that uses indexing but doesn't return any results give an exception.
> {code} java.lang.IllegalArgumentException: Can not create a Path from an empty string
> at org.apache.hadoop.fs.Path.checkPathArg(Path.java:82)
> at org.apache.hadoop.fs.Path.<init>(Path.java:90)
> at org.apache.hadoop.util.StringUtils.stringToPath(StringUtils.java:224)
> at org.apache.hadoop.mapred.FileInputFormat.setInputPaths(FileInputFormat.java:282)
> at org.apache.hadoop.hive.ql.index.HiveIndexedInputFormat.getSplits(HiveIndexedInputFormat.java:123) {code}
> This could potentially be fixed by creating a new empty file to use for the splits.
> Once this is fixed, the index_auto_test_if_used.q can be used.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (HIVE-2138) Exception when no splits returned from index

Posted by "John Sichi (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HIVE-2138?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13080187#comment-13080187 ] 

John Sichi commented on HIVE-2138:
----------------------------------

Giving it another go now.


> Exception when no splits returned from index
> --------------------------------------------
>
>                 Key: HIVE-2138
>                 URL: https://issues.apache.org/jira/browse/HIVE-2138
>             Project: Hive
>          Issue Type: Bug
>          Components: Indexing
>    Affects Versions: 0.8.0
>            Reporter: Russell Melick
>            Assignee: Syed S. Albiz
>         Attachments: HIVE-2138.1.patch, HIVE-2138.2.patch, HIVE-2138.3.patch, HIVE-2138.4.patch, HIVE-2138.5.patch, index_auto_test_if_used.q
>
>
> Running a query that uses indexing but doesn't return any results give an exception.
> {code} java.lang.IllegalArgumentException: Can not create a Path from an empty string
> at org.apache.hadoop.fs.Path.checkPathArg(Path.java:82)
> at org.apache.hadoop.fs.Path.<init>(Path.java:90)
> at org.apache.hadoop.util.StringUtils.stringToPath(StringUtils.java:224)
> at org.apache.hadoop.mapred.FileInputFormat.setInputPaths(FileInputFormat.java:282)
> at org.apache.hadoop.hive.ql.index.HiveIndexedInputFormat.getSplits(HiveIndexedInputFormat.java:123) {code}
> This could potentially be fixed by creating a new empty file to use for the splits.
> Once this is fixed, the index_auto_test_if_used.q can be used.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (HIVE-2138) Exception when no splits returned from index

Posted by "John Sichi (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HIVE-2138?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

John Sichi updated HIVE-2138:
-----------------------------

    Status: Open  (was: Patch Available)

A few comments added in Review Board.


> Exception when no splits returned from index
> --------------------------------------------
>
>                 Key: HIVE-2138
>                 URL: https://issues.apache.org/jira/browse/HIVE-2138
>             Project: Hive
>          Issue Type: Bug
>          Components: Indexing
>    Affects Versions: 0.8.0
>            Reporter: Russell Melick
>            Assignee: Syed S. Albiz
>         Attachments: HIVE-2138.1.patch, index_auto_test_if_used.q
>
>
> Running a query that uses indexing but doesn't return any results give an exception.
> {code} java.lang.IllegalArgumentException: Can not create a Path from an empty string
> at org.apache.hadoop.fs.Path.checkPathArg(Path.java:82)
> at org.apache.hadoop.fs.Path.<init>(Path.java:90)
> at org.apache.hadoop.util.StringUtils.stringToPath(StringUtils.java:224)
> at org.apache.hadoop.mapred.FileInputFormat.setInputPaths(FileInputFormat.java:282)
> at org.apache.hadoop.hive.ql.index.HiveIndexedInputFormat.getSplits(HiveIndexedInputFormat.java:123) {code}
> This could potentially be fixed by creating a new empty file to use for the splits.
> Once this is fixed, the index_auto_test_if_used.q can be used.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (HIVE-2138) Exception when no splits returned from index

Posted by "Syed S. Albiz (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HIVE-2138?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Syed S. Albiz updated HIVE-2138:
--------------------------------

    Status: Patch Available  (was: Open)

> Exception when no splits returned from index
> --------------------------------------------
>
>                 Key: HIVE-2138
>                 URL: https://issues.apache.org/jira/browse/HIVE-2138
>             Project: Hive
>          Issue Type: Bug
>          Components: Indexing
>    Affects Versions: 0.8.0
>            Reporter: Russell Melick
>            Assignee: Syed S. Albiz
>         Attachments: HIVE-2138.1.patch, HIVE-2138.2.patch, HIVE-2138.3.patch, HIVE-2138.4.patch, index_auto_test_if_used.q
>
>
> Running a query that uses indexing but doesn't return any results give an exception.
> {code} java.lang.IllegalArgumentException: Can not create a Path from an empty string
> at org.apache.hadoop.fs.Path.checkPathArg(Path.java:82)
> at org.apache.hadoop.fs.Path.<init>(Path.java:90)
> at org.apache.hadoop.util.StringUtils.stringToPath(StringUtils.java:224)
> at org.apache.hadoop.mapred.FileInputFormat.setInputPaths(FileInputFormat.java:282)
> at org.apache.hadoop.hive.ql.index.HiveIndexedInputFormat.getSplits(HiveIndexedInputFormat.java:123) {code}
> This could potentially be fixed by creating a new empty file to use for the splits.
> Once this is fixed, the index_auto_test_if_used.q can be used.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (HIVE-2138) Exception when no splits returned from index

Posted by "Syed S. Albiz (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HIVE-2138?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Syed S. Albiz updated HIVE-2138:
--------------------------------

    Attachment: HIVE-2138.4.patch

removed old testcase

> Exception when no splits returned from index
> --------------------------------------------
>
>                 Key: HIVE-2138
>                 URL: https://issues.apache.org/jira/browse/HIVE-2138
>             Project: Hive
>          Issue Type: Bug
>          Components: Indexing
>    Affects Versions: 0.8.0
>            Reporter: Russell Melick
>            Assignee: Syed S. Albiz
>         Attachments: HIVE-2138.1.patch, HIVE-2138.2.patch, HIVE-2138.3.patch, HIVE-2138.4.patch, index_auto_test_if_used.q
>
>
> Running a query that uses indexing but doesn't return any results give an exception.
> {code} java.lang.IllegalArgumentException: Can not create a Path from an empty string
> at org.apache.hadoop.fs.Path.checkPathArg(Path.java:82)
> at org.apache.hadoop.fs.Path.<init>(Path.java:90)
> at org.apache.hadoop.util.StringUtils.stringToPath(StringUtils.java:224)
> at org.apache.hadoop.mapred.FileInputFormat.setInputPaths(FileInputFormat.java:282)
> at org.apache.hadoop.hive.ql.index.HiveIndexedInputFormat.getSplits(HiveIndexedInputFormat.java:123) {code}
> This could potentially be fixed by creating a new empty file to use for the splits.
> Once this is fixed, the index_auto_test_if_used.q can be used.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (HIVE-2138) Exception when no splits returned from index

Posted by "Syed S. Albiz (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HIVE-2138?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Syed S. Albiz updated HIVE-2138:
--------------------------------

    Attachment: HIVE-2138.2.patch

> Exception when no splits returned from index
> --------------------------------------------
>
>                 Key: HIVE-2138
>                 URL: https://issues.apache.org/jira/browse/HIVE-2138
>             Project: Hive
>          Issue Type: Bug
>          Components: Indexing
>    Affects Versions: 0.8.0
>            Reporter: Russell Melick
>            Assignee: Syed S. Albiz
>         Attachments: HIVE-2138.1.patch, HIVE-2138.2.patch, index_auto_test_if_used.q
>
>
> Running a query that uses indexing but doesn't return any results give an exception.
> {code} java.lang.IllegalArgumentException: Can not create a Path from an empty string
> at org.apache.hadoop.fs.Path.checkPathArg(Path.java:82)
> at org.apache.hadoop.fs.Path.<init>(Path.java:90)
> at org.apache.hadoop.util.StringUtils.stringToPath(StringUtils.java:224)
> at org.apache.hadoop.mapred.FileInputFormat.setInputPaths(FileInputFormat.java:282)
> at org.apache.hadoop.hive.ql.index.HiveIndexedInputFormat.getSplits(HiveIndexedInputFormat.java:123) {code}
> This could potentially be fixed by creating a new empty file to use for the splits.
> Once this is fixed, the index_auto_test_if_used.q can be used.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (HIVE-2138) Exception when no splits returned from index

Posted by "Syed S. Albiz (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HIVE-2138?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Syed S. Albiz updated HIVE-2138:
--------------------------------

    Status: Patch Available  (was: Open)

> Exception when no splits returned from index
> --------------------------------------------
>
>                 Key: HIVE-2138
>                 URL: https://issues.apache.org/jira/browse/HIVE-2138
>             Project: Hive
>          Issue Type: Bug
>          Components: Indexing
>    Affects Versions: 0.8.0
>            Reporter: Russell Melick
>            Assignee: Syed S. Albiz
>         Attachments: HIVE-2138.1.patch, HIVE-2138.2.patch, index_auto_test_if_used.q
>
>
> Running a query that uses indexing but doesn't return any results give an exception.
> {code} java.lang.IllegalArgumentException: Can not create a Path from an empty string
> at org.apache.hadoop.fs.Path.checkPathArg(Path.java:82)
> at org.apache.hadoop.fs.Path.<init>(Path.java:90)
> at org.apache.hadoop.util.StringUtils.stringToPath(StringUtils.java:224)
> at org.apache.hadoop.mapred.FileInputFormat.setInputPaths(FileInputFormat.java:282)
> at org.apache.hadoop.hive.ql.index.HiveIndexedInputFormat.getSplits(HiveIndexedInputFormat.java:123) {code}
> This could potentially be fixed by creating a new empty file to use for the splits.
> Once this is fixed, the index_auto_test_if_used.q can be used.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (HIVE-2138) Exception when no splits returned from index

Posted by "Syed S. Albiz (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HIVE-2138?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Syed S. Albiz updated HIVE-2138:
--------------------------------

    Status: Patch Available  (was: Open)

> Exception when no splits returned from index
> --------------------------------------------
>
>                 Key: HIVE-2138
>                 URL: https://issues.apache.org/jira/browse/HIVE-2138
>             Project: Hive
>          Issue Type: Bug
>          Components: Indexing
>    Affects Versions: 0.8.0
>            Reporter: Russell Melick
>            Assignee: Syed S. Albiz
>         Attachments: HIVE-2138.1.patch, HIVE-2138.2.patch, HIVE-2138.3.patch, HIVE-2138.4.patch, HIVE-2138.5.patch, index_auto_test_if_used.q
>
>
> Running a query that uses indexing but doesn't return any results give an exception.
> {code} java.lang.IllegalArgumentException: Can not create a Path from an empty string
> at org.apache.hadoop.fs.Path.checkPathArg(Path.java:82)
> at org.apache.hadoop.fs.Path.<init>(Path.java:90)
> at org.apache.hadoop.util.StringUtils.stringToPath(StringUtils.java:224)
> at org.apache.hadoop.mapred.FileInputFormat.setInputPaths(FileInputFormat.java:282)
> at org.apache.hadoop.hive.ql.index.HiveIndexedInputFormat.getSplits(HiveIndexedInputFormat.java:123) {code}
> This could potentially be fixed by creating a new empty file to use for the splits.
> Once this is fixed, the index_auto_test_if_used.q can be used.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira