yzeng1618 commented on PR #10266:
URL: https://github.com/apache/seatunnel/pull/10266#issuecomment-3712853694

   > > `DataSaveMode`
   > 
   > +1, @yzeng1618, Could you explain the difference between 
`file_exists_mode`, `DataSaveMode`, and `SchemaSaveMode`? Does the combined 
functionality of `DataSaveMode` and `SchemaSaveMode` include `file_exists_mode`?
   
   Differences:
   
   - SchemaSaveMode: directory/path-level, executed pre-write 
(create/recreate/error/ignore).
   
   - DataSaveMode: data-in-directory-level, executed pre-write (truncate 
directory, append, or fail if the directory already has data files).
   
   - file_exists_mode: commit-time, single-target-file-level behavior when 
renaming a temp file to the final file name (SKIP/OVERWRITE/FAIL on name 
collision).
   
   So SchemaSaveMode + DataSaveMode does not include file_exists_mode; they 
don’t cover commit-time rename conflicts for a specific final file name.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to