-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
GH-35952: [R] Ensure that schema metadata can actually be set as a named character vector #35954
Conversation
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fantastic, thanks!
…s a named character vector (apache#35954) This wasn't necessarily a regression (reprex fails in 12.0.0 as well), although the comments suggest that assigning a named character vector will work when assigning schema metadata and this feature appears to be used by at least one of our dependencies (sfarrow). Given that the sfarrow check passes on 12.0.0, there is possibly also a place in our code that returns a named character vector rather than a list. I've confirmed that this fix solves the reverse dependency failure building the sfarrow example vignette. ``` r library(arrow, warn.conflicts = FALSE) schema <- schema(x = int32()) schema$metadata <- c("name" = "value") schema$metadata #> $name #> [1] "value" ``` <sup>Created on 2023-06-06 with [reprex v2.0.2](https://reprex.tidyverse.org)</sup> * Closes: apache#35952 Authored-by: Dewey Dunnington <[email protected]> Signed-off-by: Nic Crane <[email protected]>
Benchmark runs are scheduled for baseline = e7a9b29 and contender = fe6c067. fe6c067 is a master commit associated with this PR. Results will be available as each benchmark for each run completes. |
['Python', 'R'] benchmarks have high level of regressions. |
…s a named character vector (apache#35954) This wasn't necessarily a regression (reprex fails in 12.0.0 as well), although the comments suggest that assigning a named character vector will work when assigning schema metadata and this feature appears to be used by at least one of our dependencies (sfarrow). Given that the sfarrow check passes on 12.0.0, there is possibly also a place in our code that returns a named character vector rather than a list. I've confirmed that this fix solves the reverse dependency failure building the sfarrow example vignette. ``` r library(arrow, warn.conflicts = FALSE) schema <- schema(x = int32()) schema$metadata <- c("name" = "value") schema$metadata #> $name #> [1] "value" ``` <sup>Created on 2023-06-06 with [reprex v2.0.2](https://reprex.tidyverse.org)</sup> * Closes: apache#35952 Authored-by: Dewey Dunnington <[email protected]> Signed-off-by: Nic Crane <[email protected]>
This wasn't necessarily a regression (reprex fails in 12.0.0 as well), although the comments suggest that assigning a named character vector will work when assigning schema metadata and this feature appears to be used by at least one of our dependencies (sfarrow). Given that the sfarrow check passes on 12.0.0, there is possibly also a place in our code that returns a named character vector rather than a list. I've confirmed that this fix solves the reverse dependency failure building the sfarrow example vignette.
Created on 2023-06-06 with reprex v2.0.2