Skip to content

Commit

Permalink
align arguments following tidyverse style guide
Browse files Browse the repository at this point in the history
  • Loading branch information
romainfrancois committed Sep 27, 2019
1 parent 72caaab commit 7f1c184
Showing 1 changed file with 29 additions and 21 deletions.
50 changes: 29 additions & 21 deletions r/R/parquet.R
Original file line number Diff line number Diff line change
Expand Up @@ -241,30 +241,38 @@ ParquetFileWriter$create <- function(
#'
#' }
#' @export
write_parquet <- function(
table,
sink, chunk_size = NULL,
write_parquet <- function(table,
sink,
chunk_size = NULL,

# writer properties
version = NULL, compression = NULL, compression_level = NULL, use_dictionary = NULL, write_statistics = NULL, data_page_size = NULL,
properties = ParquetWriterProperties$create(
table,
# writer properties
version = NULL,
compression = NULL,
compression_level = NULL,
use_dictionary = NULL,
write_statistics = NULL,
data_page_size = NULL,

version = version,
compression = compression,
compression_level = compression_level,
use_dictionary = use_dictionary,
write_statistics = write_statistics,
data_page_size = data_page_size
),
properties = ParquetWriterProperties$create(
table,
version = version,
compression = compression,
compression_level = compression_level,
use_dictionary = use_dictionary,
write_statistics = write_statistics,
data_page_size = data_page_size
),

# arrow writer properties
use_deprecated_int96_timestamps = FALSE, coerce_timestamps = NULL, allow_truncated_timestamps = FALSE,
arrow_properties = ParquetArrowWriterProperties$create(
use_deprecated_int96_timestamps = use_deprecated_int96_timestamps,
coerce_timestamps = coerce_timestamps,
allow_truncated_timestamps = allow_truncated_timestamps
)
# arrow writer properties
use_deprecated_int96_timestamps = FALSE,
coerce_timestamps = NULL,
allow_truncated_timestamps = FALSE,

arrow_properties = ParquetArrowWriterProperties$create(
use_deprecated_int96_timestamps = use_deprecated_int96_timestamps,
coerce_timestamps = coerce_timestamps,
allow_truncated_timestamps = allow_truncated_timestamps
)
) {
table <- to_arrow(table)

Expand Down

0 comments on commit 7f1c184

Please sign in to comment.