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
Describe the bug, including details regarding any error messages, version, and platform.
Reprex:
x<-mtcars
attr(x, "arrow_version") <- packageVersion("arrow")
arrow::write_parquet(x, "x.parquet")
# Error: C stack usage 7974388 is too close to the limit
attr(x, "arrow_version") <- as.character(packageVersion("arrow"))
arrow::write_parquet(x, "x.parquet")
# works fine
### Rationale for this change
See #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: #43748
…#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
Describe the bug, including details regarding any error messages, version, and platform.
Reprex:
Session Info:
A very strange error I suspect is related to #41969 ?
Component(s)
R
The text was updated successfully, but these errors were encountered: