Repository navigation
GH-43748: [R] Handle package_version in safe_r_metadata - #43895
Merged
nealrichardson merged 3 commits intoSep 12, 2024
Merged
Conversation
nealrichardson
commented
Sep 1, 2024
…eck attributes for invalid types
jonkeane
approved these changes
Sep 11, 2024
jonkeane
left a comment
Member
There was a problem hiding this comment.
Thanks for this! I'm not totally surprised by this slightly odd package version thing.
|
After merging your PR, Conbench analyzed the 4 benchmarking runs that have been run so far on merge-commit 5b968b3. There were no benchmark performance regressions. 🎉 The full Conbench report has more details. It also includes information about 1 possible false positive for unstable benchmarks that are known to sometimes produce them. |
khwilson
pushed a commit
to khwilson/arrow
that referenced
this pull request
Sep 14, 2024
…#43895) ### Rationale for this change See apache#43748. There is what appears to be a bug in R's `[[.numeric_version` implementation that leads to infinite recursion. Edit: after some digging in R source, this appears to be as designed. And other list subclasses that have methods to make them behave like atomic types, like `POSIXlt`, also have this. ### What changes are included in this PR? When recursing into list objects, `unclass()` them first to get the raw list behavior. Also apply the checking to the `attributes()` before reapplying them. ### Are these changes tested? yes ### Are there any user-facing changes? Fewer bugs! * GitHub Issue: apache#43748
2 of 5 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Rationale for this change
See #43748. There is what appears to be a bug in R's
[[.numeric_versionimplementation that leads to infinite recursion.Edit: after some digging in R source, this appears to be as designed. And other list subclasses that have methods to make them behave like atomic types, like
POSIXlt, also have this.What changes are included in this PR?
When recursing into list objects,
unclass()them first to get the raw list behavior. Also apply the checking to theattributes()before reapplying them.Are these changes tested?
yes
Are there any user-facing changes?
Fewer bugs!
write_parquet()has infinite recursion error when writingpackageVersion()attributes #43748