Commit b808fbb
### Rationale for this change
This PR gives the user to choose not to create directory in the bucket before writing dataset.
In case the `create_directory` option is set to FALSE, no verification will be made by R arrow.
The S3 storage will itself verify if the directory exists and if the users has the rigth to modify it.
This way no `ListBucket` or ` HeadBucket` are necessary to achieve the write operation.
```
df |> arrow::write_dataset(
minio$path(paste0("smartsla-bucket/rarrow/")),
partitioning = "qualitative",
create_directory = FALSE,
format = "parquet"
)
```
### What changes are included in this PR?
`create_directory` is now available to the user in the `write_dataset` function.
Before this PR, this option was automatically set to TRUE (by default).
### Are these changes tested?
Yes
### Are there any user-facing changes?
No, the default value for `create_directory` is still TRUE.
* GitHub Issue: #42173
Lead-authored-by: Simon ELBAZ <[email protected]>
Co-authored-by: Simon Elbaz <[email protected]>
Co-authored-by: Antoine Pitrou <[email protected]>
Signed-off-by: Antoine Pitrou <[email protected]>
1 parent 52704cb commit b808fbb
File tree
5 files changed
+21
-9
lines changed- r
- R
- man
- src
5 files changed
+21
-9
lines changedSome generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
70 | 74 | | |
71 | 75 | | |
72 | 76 | | |
| |||
132 | 136 | | |
133 | 137 | | |
134 | 138 | | |
| 139 | + | |
135 | 140 | | |
136 | 141 | | |
137 | 142 | | |
| |||
224 | 229 | | |
225 | 230 | | |
226 | 231 | | |
227 | | - | |
| 232 | + | |
228 | 233 | | |
229 | 234 | | |
230 | 235 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
318 | 318 | | |
319 | 319 | | |
320 | 320 | | |
321 | | - | |
| 321 | + | |
322 | 322 | | |
323 | 323 | | |
324 | 324 | | |
| |||
335 | 335 | | |
336 | 336 | | |
337 | 337 | | |
| 338 | + | |
338 | 339 | | |
339 | 340 | | |
340 | 341 | | |
| |||
0 commit comments