Qijun Fu created HUDI-5317:
------------------------------

             Summary: SparkSQL insert overwrite table doesn't work as expected 
for partitioned table
                 Key: HUDI-5317
                 URL: https://issues.apache.org/jira/browse/HUDI-5317
             Project: Apache Hudi
          Issue Type: Bug
          Components: spark-sql
            Reporter: Qijun Fu
            Assignee: Qijun Fu


For sql like insert overwrite table $table select xxx, we expect to drop all 
data in the table first and then insert the selected data into it.  But we 
found that the 'insert overwrite table' semantic works only for non-partitioned 
table. For partitioned table, current implementation will drop only partitions 
involved in the select sub-query, other partitions won't be dropped( which 
should be dropped as expected).  

We will submit a pr to solve the problem.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to