-
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
[Ruby] ChunkedArray raises an error in Ractor block #39488
Comments
kou
added a commit
to kou/arrow
that referenced
this issue
Jan 7, 2024
kou
added a commit
to kou/arrow
that referenced
this issue
Jan 7, 2024
kou
added a commit
to kou/arrow
that referenced
this issue
Jan 7, 2024
kou
added a commit
that referenced
this issue
Jan 7, 2024
### Rationale for this change We can't use `@ cache ||= build_cache` idiom in Ractor because Ractor requires that shared objects are immutable. ### What changes are included in this PR? Compute caches before making ChunkedArray immutable. ### Are these changes tested? Yes. ### Are there any user-facing changes? Yes. * Closes: #39488 Authored-by: Sutou Kouhei <kou@clear-code.com> Signed-off-by: Sutou Kouhei <kou@clear-code.com>
Thanks! |
clayburn
pushed a commit
to clayburn/arrow
that referenced
this issue
Jan 23, 2024
…#39490) ### Rationale for this change We can't use `@ cache ||= build_cache` idiom in Ractor because Ractor requires that shared objects are immutable. ### What changes are included in this PR? Compute caches before making ChunkedArray immutable. ### Are these changes tested? Yes. ### Are there any user-facing changes? Yes. * Closes: apache#39488 Authored-by: Sutou Kouhei <kou@clear-code.com> Signed-off-by: Sutou Kouhei <kou@clear-code.com>
dgreiss
pushed a commit
to dgreiss/arrow
that referenced
this issue
Feb 19, 2024
…#39490) ### Rationale for this change We can't use `@ cache ||= build_cache` idiom in Ractor because Ractor requires that shared objects are immutable. ### What changes are included in this PR? Compute caches before making ChunkedArray immutable. ### Are these changes tested? Yes. ### Are there any user-facing changes? Yes. * Closes: apache#39488 Authored-by: Sutou Kouhei <kou@clear-code.com> Signed-off-by: Sutou Kouhei <kou@clear-code.com>
zanmato1984
pushed a commit
to zanmato1984/arrow
that referenced
this issue
Feb 28, 2024
…#39490) ### Rationale for this change We can't use `@ cache ||= build_cache` idiom in Ractor because Ractor requires that shared objects are immutable. ### What changes are included in this PR? Compute caches before making ChunkedArray immutable. ### Are these changes tested? Yes. ### Are there any user-facing changes? Yes. * Closes: apache#39488 Authored-by: Sutou Kouhei <kou@clear-code.com> Signed-off-by: Sutou Kouhei <kou@clear-code.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug, including details regarding any error messages, version, and platform.
From red-data-tools/red_amber#289
When you access
ChunkedArray
's elements in Ractor block, it raises an error:I think most of
pattern occur the same problem.
Component(s)
Ruby
The text was updated successfully, but these errors were encountered: