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-39232: [C++] Support binary to fixed_size_binary cast #39236

Merged
merged 1 commit into from
Dec 21, 2023

Conversation

js8544
Copy link
Collaborator

@js8544 js8544 commented Dec 15, 2023

Rationale for this change

Add binary to fixed_size_binary cast.

What changes are included in this PR?

Add binary to fixed_size_binary cast.

Are these changes tested?

Yes

Are there any user-facing changes?

No

Copy link

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

Copy link
Member

@pitrou pitrou left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a lot @js8544 ! This LGTM.

@@ -387,6 +389,33 @@ BinaryToBinaryCastExec(KernelContext* ctx, const ExecSpan& batch, ExecResult* ou
return ZeroCopyCastExec(ctx, batch, out);
}

template <typename O, typename I>
enable_if_t<is_base_binary_type<I>::value && std::is_same<O, FixedSizeBinaryType>::value,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note that we can use std::is_same_v now.

@github-actions github-actions bot added awaiting review Awaiting review awaiting committer review Awaiting committer review and removed awaiting review Awaiting review labels Dec 21, 2023
@pitrou pitrou merged commit 535b925 into apache:main Dec 21, 2023
35 checks passed
@pitrou pitrou removed awaiting review Awaiting review awaiting committer review Awaiting committer review labels Dec 21, 2023
Copy link

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

There were no benchmark performance regressions. 🎉

The full Conbench report has more details.

clayburn pushed a commit to clayburn/arrow that referenced this pull request Jan 23, 2024
…e#39236)

### Rationale for this change
Add binary to fixed_size_binary cast.

### What changes are included in this PR?
Add binary to fixed_size_binary cast.

### Are these changes tested?
Yes

### Are there any user-facing changes?
No

* Closes: apache#39232

Authored-by: Jin Shang <shangjin1997@gmail.com>
Signed-off-by: Antoine Pitrou <antoine@python.org>
dgreiss pushed a commit to dgreiss/arrow that referenced this pull request Feb 19, 2024
…e#39236)

### Rationale for this change
Add binary to fixed_size_binary cast.

### What changes are included in this PR?
Add binary to fixed_size_binary cast.

### Are these changes tested?
Yes

### Are there any user-facing changes?
No

* Closes: apache#39232

Authored-by: Jin Shang <shangjin1997@gmail.com>
Signed-off-by: Antoine Pitrou <antoine@python.org>
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.

[C++][Compute] Unsupported cast from binary to fixed-size binary
2 participants