Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-2138

Exception when no splits returned from index

Log workAgile BoardRank to TopRank to BottomBulk Copy AttachmentsBulk Move AttachmentsVotersWatch issueWatchersCreate sub-taskConvert to sub-taskMoveLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.8.0
    • 0.8.0
    • Indexing
    • None
    • 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.

      Attachments

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

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            salbiz Syed S. Albiz Assign to me
            rmelick Russell Melick
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment