Skip to content
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-39488: [Ruby] Add support for ChunkedArray in Ractor #39490

Merged
merged 1 commit into from
Jan 7, 2024

Conversation

kou
Copy link
Member

@kou kou commented 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.

Copy link

github-actions bot commented Jan 7, 2024

⚠️ GitHub issue #39488 has been automatically assigned in GitHub to PR creator.

@kou kou force-pushed the ruby-chunked-array-ractor branch from ff4ed07 to cb90353 Compare January 7, 2024 21:04
@kou kou force-pushed the ruby-chunked-array-ractor branch from cb90353 to 8d83697 Compare January 7, 2024 21:41
@kou
Copy link
Member Author

kou commented Jan 7, 2024

+1

@kou kou merged commit de3130e into apache:main Jan 7, 2024
8 checks passed
@kou kou deleted the ruby-chunked-array-ractor branch January 7, 2024 22:21
@kou kou removed the awaiting committer review Awaiting committer review label Jan 7, 2024
Copy link

After merging your PR, Conbench analyzed the 6 benchmarking runs that have been run so far on merge-commit de3130e.

There was 1 benchmark result with an error:

There was 1 benchmark result indicating a performance regression:

The full Conbench report has more details. It also includes information about 2 possible false positives for unstable benchmarks that are known to sometimes produce them.

clayburn pushed a commit to clayburn/arrow that referenced this pull request 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 pull request 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 pull request 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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Ruby] ChunkedArray raises an error in Ractor block
1 participant