Help Center/ Data Lake Insight/ FAQs/ Problems Related to SQL Jobs/ O&M Guide/ Why Is All Data Overwritten When insert overwrite Is Used to Overwrite Partitioned Table?
Updated on 2022-11-09 GMT+08:00

Why Is All Data Overwritten When insert overwrite Is Used to Overwrite Partitioned Table?

To dynamically overwrite the specified partitioned data in the DataSource table, set dli.sql.dynamicPartitionOverwrite.enabled to true and then run the insert overwrite statement. (The default value of dli.sql.dynamicPartitionOverwrite.enabled is false.)

For details, see Inserting Data.