jonkeane commented on a change in pull request #11552: URL: https://github.com/apache/arrow/pull/11552#discussion_r737463823
########## File path: r/R/dataset-write.R ########## @@ -38,6 +38,14 @@ #' will yield `"part-0.feather", ...`. #' @param hive_style logical: write partition segments as Hive-style #' (`key1=value1/key2=value2/file.ext`) or as just bare values. Default is `TRUE`. +#' @param existing_data_behavior The behavior to use when there is already data +#' in the destination directory. Must be one of overwrite, error, or +#' delete_matching. When this is set to "overwrite" (the default) then any +#' new files created will overwrite existing files. When this is set to +#' "error" then the operation will fail if the destination directory is not +#' empty. When this is set to "delete_matching" then the writer will delete +#' any existing partitions if data is going to be written to those partitions +#' and will leave alone partitions which data is not written to. Review comment: ```suggestion #' @param existing_data_behavior The behavior to use when there is already data #' in the destination directory. Must be one of "overwrite", "error", or #' "delete_matching". #' - "overwrite" (the default) then any new files created will overwrite #' existing files #' - "error" then the operation will fail if the destination directory is not #' empty #' - "delete_matching" then the writer will delete any existing partitions #' if data is going to be written to those partitions and will leave alone #' partitions which data is not written to. ``` -- 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: github-unsubscr...@arrow.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org