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

bug when different partitions are present in different dfs

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.7.0
    • Query Processor
    • None
    • Reviewed

    Description

      The following does not work:

      create table T -> default location dfs1
      insert overwrite T partition (ds='1') select * from src;

      alter table T location 'dfs2';
      insert overwrite T partition (ds='1') select * from src;

      It tries to insert back in dfs1 - due to which the move task fails.
      It would be cleaner to keep the same semantics as fileformat - whenever a partition is being inserted into, it
      inherits the properties from the table. So, after the insert, the partition should belong to dfs1.
      It does not matter whether the partition exists before or not,.

      Attachments

        1. hive-1707.1.patch
          10 kB
          He Yongqiang
        2. hive-1707.2.patch
          8 kB
          He Yongqiang
        3. hive-1707.3.patch
          8 kB
          He Yongqiang

        Issue Links

          Activity

            People

              he yongqiang He Yongqiang
              namit Namit Jain
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: