You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@arrow.apache.org by "KitaitiMakoto (via GitHub)" <gi...@apache.org> on 2024/01/06 23:24:34 UTC
[I] [Ruby] ChunkedArray raises an error in Ractor block [arrow]
KitaitiMakoto opened a new issue, #39488:
URL: https://github.com/apache/arrow/issues/39488
### Describe the bug, including details regarding any error messages, version, and platform.
From https://github.com/red-data-tools/red_amber/issues/289
When you access `ChunkedArray`'s elements in Ractor block, it raises an error:
```ruby
array = Arrow::Array.new([1, 2, 3])
chunked_array = Arrow::ChunkedArray.new([array])
Ractor.make_shareable(chunked_array)
ractor = Ractor.new {
ca = Ractor.receive
ca[0]
}
ractor.send(chunked_array)
ractor.take
```
```
#<Thread:0x0000000127354008 run> terminated with exception (report_on_exception is true):
~/src/github.com/apache/arrow/ruby/red-arrow/lib/arrow/chunked-array.rb:50:in `chunks': can't modify frozen Arrow::ChunkedArray: #<Arrow::ChunkedArray:0x1273546e8ptr=0x60000377f2a0 [ (FrozenError)
[
1,
2,
3
]
]>
from ~/src/github.com/apache/arrow/ruby/red-arrow/lib/arrow/chunked-array.rb:80:in `[]'
```
I think most of
```ruby
def iv
@iv ||= init_instance_variable
end
```
pattern occur the same problem.
### Component(s)
Ruby
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@arrow.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Ruby] ChunkedArray raises an error in Ractor block [arrow]
Posted by "kou (via GitHub)" <gi...@apache.org>.
kou closed issue #39488: [Ruby] ChunkedArray raises an error in Ractor block
URL: https://github.com/apache/arrow/issues/39488
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Ruby] ChunkedArray raises an error in Ractor block [arrow]
Posted by "KitaitiMakoto (via GitHub)" <gi...@apache.org>.
KitaitiMakoto commented on issue #39488:
URL: https://github.com/apache/arrow/issues/39488#issuecomment-1880684535
Thanks!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org