Hive
  1. Hive
  2. HIVE-2138

Exception when no splits returned from index

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 0.8.0
    • Fix Version/s: 0.8.0
    • Component/s: Indexing
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

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

       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) 

      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.

      1. HIVE-2138.5.patch
        8 kB
        Syed S. Albiz
      2. HIVE-2138.4.patch
        8 kB
        Syed S. Albiz
      3. HIVE-2138.3.patch
        10 kB
        Syed S. Albiz
      4. HIVE-2138.2.patch
        19 kB
        Syed S. Albiz
      5. HIVE-2138.1.patch
        14 kB
        Syed S. Albiz
      6. index_auto_test_if_used.q
        0.9 kB
        Russell Melick

        Issue Links

          Activity

          No work has yet been logged on this issue.

            People

            • Assignee:
              Syed S. Albiz
              Reporter:
              Russell Melick
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development