-
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
GH-39232: [C++] Support binary to fixed_size_binary cast #39236
Conversation
|
There was a problem hiding this 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, |
There was a problem hiding this comment.
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.
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. |
…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>
…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>
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