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

Minor: Support protobuf serialization for Utf8View and BinaryView #12165

Merged
merged 3 commits into from
Sep 7, 2024

Conversation

Lordworms
Copy link
Contributor

@Lordworms Lordworms commented Aug 26, 2024

…calarValue::BinaryView

Which issue does this PR close?

Closes #12117

Rationale for this change

What changes are included in this PR?

Are these changes tested?

Are there any user-facing changes?

@github-actions github-actions bot added the proto Related to proto crate label Aug 26, 2024
Copy link
Contributor

@alamb alamb left a comment

Choose a reason for hiding this comment

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

Thank you @Lordworms -- I am sorry for the delay in reviewing this PR. I found one bug (see below) but clearly there was a gap in coverage.

Thus I took the liberty of fixing the issue and updating the tests as I had this checked out already.

Thanks again, and again sorry for the delay

DataType::FixedSizeBinary(size) => Self::FixedSizeBinary(*size),
DataType::LargeBinary => Self::LargeBinary(EmptyMessage {}),
DataType::Utf8 => Self::Utf8(EmptyMessage {}),
DataType::Utf8View => Self::Utf8(EmptyMessage {}),
Copy link
Contributor

Choose a reason for hiding this comment

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

I think this should be Utf8View?

Suggested change
DataType::Utf8View => Self::Utf8(EmptyMessage {}),
DataType::Utf8View => Self::Utf8View(EmptyMessage {}),

@Lordworms
Copy link
Contributor Author

Thank you @Lordworms -- I am sorry for the delay in reviewing this PR. I found one bug (see below) but clearly there was a gap in coverage.

Thus I took the liberty of fixing the issue and updating the tests as I had this checked out already.

Thanks again, and again sorry for the delay

It is ok and welcome back!

@alamb alamb merged commit 73f3086 into apache:main Sep 7, 2024
24 checks passed
@alamb
Copy link
Contributor

alamb commented Sep 7, 2024

Thanks again @Lordworms

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
proto Related to proto crate
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support protobuf serialization for ScalarValue::Utf8View and ScalarValue::BinaryView
2 participants