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

IOW Directory queries fails to write data to final path when query result cache is enabled

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

    Description

      INSERT OVERWRITE DIRECTORY queries fails to write the data to the specified directory location when query result cache is enabled.

      Steps to reproduce

      1. create a data file with the following data
      
      1 abc 10.5
      2 def 11.5
      
      
      2. create table pointing to that data
      
      create external table iowd(strct struct<a:int, b:string, c:string>)
      row format delimited
      fields terminated by '\t'
      collection items terminated by ' '
      location '<data_location>';
      
      
      3. run the following query
      
      set hive.query.results.cache.enabled=true;
      INSERT OVERWRITE DIRECTORY "<destination directory>" SELECT * FROM iowd;
      

      After execution of the above query, It is expected that the destination directory contains data from the table iowd, But due to HIVE-21386 it is not happening anymore.

      Attachments

        Issue Links

        Activity

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

          People

            srahman Syed Shameerur Rahman Assign to me
            srahman Syed Shameerur Rahman
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

              Estimated:
              Original Estimate - Not Specified
              Not Specified
              Remaining:
              Remaining Estimate - 0h
              0h
              Logged:
              Time Spent - 4h 20m
              4h 20m

              Slack

                Issue deployment