jonkeane commented on a change in pull request #9561: URL: https://github.com/apache/arrow/pull/9561#discussion_r582993386
########## File path: r/R/dataset-partition.R ########## @@ -72,19 +77,22 @@ HivePartitioning$create <- dataset___HivePartitioning #' Because fields are named in the path segments, order of fields passed to #' `hive_partition()` does not matter. #' @param ... named list of [data types][data-type], passed to [schema()] +#' @param null_fallback character to be used in place of `NA` and `NULL` values +#' in columns that are being partitioned by. (default: +#' `"__HIVE_DEFAULT_PARTITION__"`) #' @return A [HivePartitioning][Partitioning], or a `HivePartitioningFactory` if #' calling `hive_partition()` with no arguments. #' @examples #' \donttest{ #' hive_partition(year = int16(), month = int8()) #' } #' @export -hive_partition <- function(...) { +hive_partition <- function(..., null_fallback = "__HIVE_DEFAULT_PARTITION__") { Review comment: I'm happy to make this an envvar as well if we think that's helpful ---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: us...@infra.apache.org