Add reusable protobuf test data helpers [databricks] [reduced-it] - #15948
Draft
thirtiseven wants to merge 1 commit into
Draft
Add reusable protobuf test data helpers [databricks] [reduced-it]#15948thirtiseven wants to merge 1 commit into
thirtiseven wants to merge 1 commit into
Conversation
Signed-off-by: Haoyang Li <haoyangl@nvidia.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of #14069.
Description
This PR adds reusable integration-test helpers for protobuf feature work. It centralizes the Spark-version-specific
to_protobufcall, accepting either descriptor bytes or a descriptor path, and materializes deterministic protobuf payloads from a non-nullableStructGen.Tests cover both
to_protobufAPI signatures, helper input validation, and Spark 3.5.2 CPU materialization using the descriptor fixture landed in #15814.No GPU protobuf functionality is enabled by this PR.
Validation:
./integration_tests/run_pyspark_from_build.sh -s -k 'protobuf_data_gen'AI assistance: The change and PR description were prepared with Codex assistance and reviewed by the author before submission.
Checklists
Documentation
Testing
Performance