You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Overwrite mode works on main now: #4946 added SaveMode.Overwrite handling to the native writer (CometNativeWriteExec.scala, test "SaveMode.Overwrite replaces existing parquet data" in CometParquetWriterSuite), and on Spark 4.0+ #5763 leaves SaveMode to Spark. I think this can be closed.
Overwrite mode works on main, as @dwsmith1983 found. I checked it at c230bf4: a native Parquet write with mode("overwrite") into a directory that already held an earlier write replaced it, on Spark 3.5.9 (CometNativeWriteExec) and on Spark 4.1.3 (CometWriteFilesExec). The second write succeeded, and the directory read back only its 5 rows.
#4946 added the SaveMode.Overwrite handling on Spark 3.x, which SaveMode.Overwrite replaces existing parquet data in CometParquetWriterSuite covers, and on Spark 4.0+ #5763 leaves the save mode to Spark. Closing.
Activity
coderfender commentedon Dec 24, 2025
Taking a look at this
comphead commentedon Dec 29, 2025
some more details on implementation
The flow is like
This Spark implementation now
The keypoint here, we need to support
dynamicPartitionOverwriteor fallback to Spark in this casecoderfender commentedon Feb 6, 2026
take
dwsmith1983 commentedon Oct 4, 2026
Overwrite mode works on main now: #4946 added
SaveMode.Overwritehandling to the native writer (CometNativeWriteExec.scala, test "SaveMode.Overwrite replaces existing parquet data" inCometParquetWriterSuite), and on Spark 4.0+ #5763 leaves SaveMode to Spark. I think this can be closed.andygrove commentedon Oct 16, 2026
Overwrite mode works on
main, as @dwsmith1983 found. I checked it at c230bf4: a native Parquet write withmode("overwrite")into a directory that already held an earlier write replaced it, on Spark 3.5.9 (CometNativeWriteExec) and on Spark 4.1.3 (CometWriteFilesExec). The second write succeeded, and the directory read back only its 5 rows.#4946 added the
SaveMode.Overwritehandling on Spark 3.x, whichSaveMode.Overwrite replaces existing parquet datainCometParquetWriterSuitecovers, and on Spark 4.0+ #5763 leaves the save mode to Spark. Closing.