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

insert overwrite with select does not remove data when the select query returns empty resultset

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 3.0.0
    • None
    • HiveServer2
    • None

    Description

      create table address (city string);
      insert into address values ('b');
      create table empty_insert (city string);
      insert into empty_insert values ('a');
      insert overwrite table empty_insert select city from address where city='g';
      

      empty_insert still contains 'a'; # should be nothing

      Attachments

        Activity

          People

            Unassigned Unassigned
            anishek Anishek Agarwal
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated: