In summary the difference between Hive INSERT INTO vs INSERT OVERWRITE, INSERT INTO is used to append the data into Hive tables and partitioned tables and INSERT OVERWRITE is used to remove the existing data from the table and insert the new data.
Does insert SQL overwrite?
When MaxCompute SQL processes data, the INSERT OVERWRITE or INSERT INTO statement is used to save the results to a destination table. INSERT INTO: inserts data into a table or partition. ... INSERT OVERWRITE: clears the existing data in a table and inserts data into the table or its partition.
What does hive insert overwrite do?
The INSERT OVERWRITE DIRECTORY with Hive format overwrites the existing data in the directory with the new values using Hive SerDe . Hive support must be enabled to use this command. The inserted rows can be specified by value expressions or result from a query.