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

Multi insert query bug

Log workAgile BoardRank to TopRank to BottomVotersWatch issueWatchersCreate sub-taskConvert to sub-taskMoveLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.1.1, 2.2.0
    • Component/s: Logical Optimizer
    • Labels:
      None
    • Target Version/s:

      Description

      When running multi-insert queries, when one of the query is not returning results, the other query is not returning the right result.
      For example:
      After following query, there is no value in /tmp/emp/dir3/000000_0

      From (select * from src) a
      insert overwrite directory '/tmp/emp/dir1/'
      select key, value
      insert overwrite directory '/tmp/emp/dir2/'
      select 'header'
      where 1=2
      insert overwrite directory '/tmp/emp/dir3/'
      select key, value 
      where key = 100;
      

      where clause in the second insert should not affect the third insert.

        Attachments

        1. HIVE-14519.1.patch
          4 kB
          Yongzhi Chen

        Issue Links

          Activity

          $i18n.getText('security.level.explanation', $currentSelection) Viewable by All Users
          Cancel

            People

            • Assignee:
              ychena Yongzhi Chen Assign to me
              Reporter:
              ychena Yongzhi Chen

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment