Skip to content

[SPARK-59435][UDF] Qualify UDF worker proto import paths - #58738

Open
haiyangsun-db wants to merge 2 commits into
apache:masterfrom
haiyangsun-db:SPARK-59435-qualify-udf-worker-proto-imports
Open

[SPARK-59435][UDF] Qualify UDF worker proto import paths#58738
haiyangsun-db wants to merge 2 commits into
apache:masterfrom
haiyangsun-db:SPARK-59435-qualify-udf-worker-proto-imports

Conversation

@haiyangsun-db

@haiyangsun-db haiyangsun-db commented Sep 11, 2026

Copy link
Copy Markdown
Contributor

What changes were proposed in this pull request?

This PR relocates the UDF worker protobuf definitions beneath
udf/worker/proto/src/main/protobuf/org/apache/spark/udf/worker/ and updates
their intra-proto imports to use the corresponding qualified paths.

This follows the namespaced source layouts used by other Spark protobuf
definitions, including:

Why are the changes needed?

The UDF worker definitions previously used generic bare import names such as
common.proto and udf_message.proto. Relocating them establishes stable,
qualified import paths, avoiding ambiguity if Spark protobuf sources are later
collected, indexed, or compiled alongside definitions with similarly named
files.

The message definitions, generated Java package, and wire format are unchanged.

Does this PR introduce any user-facing change?

No.

How was this patch tested?

  • protoc compilation of the relocated UDF worker protobuf definitions.
  • build/mvn -pl udf/worker/proto,udf/worker/grpc -am -DskipTests compile
  • build/mvn -pl udf/worker/grpc -am test
    • UDF worker core: 59 tests passed.
    • UDF worker gRPC: 60 tests passed.

Was this patch authored or co-authored using generative AI tooling?

Yes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant