Commit d7bd595
[SPARK-59435][UDF] Qualify UDF worker proto import paths
### 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:
- [Spark Connect common.proto](https://github.com/apache/spark/blob/master/sql/connect/common/src/main/protobuf/spark/connect/common.proto)
- [configuration schema](https://github.com/apache/spark/blob/master/common/config/src/main/protobuf/org/apache/spark/config/config_schema.proto)
- [status store types](https://github.com/apache/spark/blob/master/core/src/main/protobuf/org/apache/spark/status/protobuf/store_types.proto)
- [streaming state message](https://github.com/apache/spark/blob/master/sql/core/src/main/protobuf/org/apache/spark/sql/execution/streaming/StateMessage.proto)
### 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.
Closes #58738 from haiyangsun-db/SPARK-59435-qualify-udf-worker-proto-imports.
Authored-by: Haiyang Sun <haiyang.sun@databricks.com>
Signed-off-by: Hyukjin Kwon <hyukjin.kwon@databricks.com>
(cherry picked from commit f3b1883)
Signed-off-by: Hyukjin Kwon <hyukjin.kwon@databricks.com>1 parent e5dcad6 commit d7bd595
5 files changed
Lines changed: 14 additions & 12 deletions
File tree
- udf/worker
- proto/src/main/protobuf/org/apache/spark/udf/worker
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
41 | 42 | | |
42 | 43 | | |
43 | 44 | | |
| |||
56 | 57 | | |
57 | 58 | | |
58 | 59 | | |
59 | | - | |
| 60 | + | |
60 | 61 | | |
61 | 62 | | |
62 | 63 | | |
| |||
67 | 68 | | |
68 | 69 | | |
69 | 70 | | |
70 | | - | |
| 71 | + | |
71 | 72 | | |
72 | 73 | | |
73 | 74 | | |
| |||
81 | 82 | | |
82 | 83 | | |
83 | 84 | | |
84 | | - | |
85 | | - | |
86 | | - | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
87 | 89 | | |
88 | 90 | | |
89 | 91 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| |||
0 commit comments