-
Notifications
You must be signed in to change notification settings - Fork 3.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[R] Update function examples to show how to open CSV dataset with partitioning and a schema #32938
Comments
Nicola Crane / @thisisnic: |
Nicola Crane / @thisisnic: |
Neal Richardson / @nealrichardson: |
Nicola Crane / @thisisnic: |
Nicola Crane / @thisisnic: |
Nicola Crane / @thisisnic: tf <- tempfile()
dir.create(tf)
write_dataset(mtcars, tf, partitioning = "cyl", hive_style = FALSE)
open_dataset(tf, partitioning = schema(cyl = int64())) %>% collect()
#> mpg disp hp drat wt qsec vs am gear carb cyl
#> 1 22.8 108.0 93 3.85 2.320 18.61 1 1 4 1 4
#> 2 24.4 146.7 62 3.69 3.190 20.00 1 0 4 2 4
#> 3 22.8 140.8 95 3.92 3.150 22.90 1 0 4 2 4
... |
Nicola Crane / @thisisnic: |
I feel like this might be a duplicate of a previous ticket, but can't find it.
If I include a schema which does not include the partitioning column, it works, but I lost the partitioning column
Reporter: Nicola Crane / @thisisnic
Note: This issue was originally created as ARROW-17700. Please see the migration documentation for further details.
The text was updated successfully, but these errors were encountered: