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-41141: [C++] Reduce string inlining in Substrait serde #45174

Merged
merged 1 commit into from
Jan 6, 2025

Conversation

attilajeges
Copy link
Contributor

@attilajeges attilajeges commented Jan 4, 2025

Rationale for this change

This patch adds a helper function to create Status instances with similarly formatted messages in order to reduce the string literal bloat in the binary.

What changes are included in this PR?

Helper function UserDefinedLiteralToArrow::FailedToUnpack. Also added ARROW_PREDICT_FALSE to conditions before calling the function.

Are these changes tested?

No. Normally there are no tests to verify specific Status messages.

Are there any user-facing changes?

No.

Rationale for this change:

This patch adds a helper function to create similarly formatted
Status instances in order to reduce the string literal bloat in
the binary.

What changes are included in this PR?

Helper function UserDefinedLiteralToArrow::FailedToUnpack.
Also added ARROW_PREDICT_FALSE to conditions before calling the
function.

Are these changes tested?

No. Normally there are no tests to verify specific Status messages.
Copy link
Member

@kou kou left a comment

Choose a reason for hiding this comment

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

+1

@kou kou merged commit 1938582 into apache:main Jan 6, 2025
36 of 37 checks passed
@kou kou removed the awaiting review Awaiting review label Jan 6, 2025
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.

2 participants