Yu-Wen Lai created HIVE-26127:
---------------------------------

             Summary: Insert overwrite throws FileNotFound when destination 
partition is deleted 
                 Key: HIVE-26127
                 URL: https://issues.apache.org/jira/browse/HIVE-26127
             Project: Hive
          Issue Type: Bug
          Components: Query Processor
            Reporter: Yu-Wen Lai
            Assignee: Yu-Wen Lai


Steps to reproduce:
 # create external table src (col int) partitioned by (year int);
 # create external table dest (col int) partitioned by (year int);
 # insert into src partition (year=2022) values (1);
 # insert into dest partition (year=2022) values (2);
 # hdfs dfs -rm -r ${hive.metastore.warehouse.external.dir}/dest/year=2022
 # insert overwrite table dest select * from src;

We will get FileNotFoundException when it tries to callĀ 
{code:java}
fs.listStatus(path, pathFilter){code}
We should not fail insert overwrite because there is nothing to be clean up.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to