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
Add function write_csv_dataset() (we don't currently support the functionality needed for write_delim_dataset(), and write_tsv_dataset() - not entirely sure how true this is, so could be worth investigating?), to mirror our open_csv_dataset() function
I drafted a PR #36436 for write_csv_dataset, and I also investigated if write_tsx_dataset() and write_delim_dataset() could be implemented. The available options that get passed to the CSV writer are here: https://arrow.apache.org/docs/cpp/api/formats.html#csv-writer .
There is a delimiter option, and it is defined as Field delimiter, but I'm not entirely sure what that means in this context. If it is the delimiter for values, then it should be relatively straightforward to implement it as an option to the csv writer.
Of the options listed for the CSV writer class the package currently accepts these :
include_header
batch_string
null_string
It may be worth while exposing the quoting_style option as well.
Activity
dgreiss commentedon Jul 1, 2023
I can take this one if no one else is working on it.
thisisnic commentedon Jul 1, 2023
Fantastic, thanks @dgreiss!
dgreiss commentedon Jul 2, 2023
I drafted a PR #36436 for
write_csv_dataset, and I also investigated ifwrite_tsx_dataset()andwrite_delim_dataset()could be implemented. The available options that get passed to the CSV writer are here: https://arrow.apache.org/docs/cpp/api/formats.html#csv-writer .There is a
delimiteroption, and it is defined asFielddelimiter, but I'm not entirely sure what that means in this context. If it is the delimiter for values, then it should be relatively straightforward to implement it as an option to the csv writer.Of the options listed for the CSV writer class the package currently accepts these :
include_headerbatch_stringnull_stringIt may be worth while exposing the
quoting_styleoption as well.dgreiss commentedon Jul 4, 2023
I've updated the PR to include these other wrappers.
Merge branch 'main' into apachegh-36247-write-csv-dataset
GH-36247: [R] Add write_csv_dataset (#36436)
apacheGH-36247: [R] Add write_csv_dataset (apache#36436)