Commit 9dbe381
[SPARK-56340][PYTHON] Move input_type schema to eval conf
### What changes were proposed in this pull request?
Use eval conf to pass the schema json, instead of sending a random string before UDF.
### Why are the changes needed?
Clean up JVM <-> python worker protocol. We should not randomly pass data.
### Does this PR introduce _any_ user-facing change?
No.
### How was this patch tested?
`test_udf` passed locally, the rest is on CI.
### Was this patch authored or co-authored using generative AI tooling?
No.
Closes #55170 from gaogaotiantian/move-input-type.
Authored-by: Tian Gao <gaogaotiantian@hotmail.com>
Signed-off-by: Ruifeng Zheng <ruifengz@foxmail.com>1 parent 491add8 commit 9dbe381
File tree
2 files changed
+19
-7
lines changed- python/pyspark
- sql/core/src/main/scala/org/apache/spark/sql/execution/python
2 files changed
+19
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
207 | 207 | | |
208 | 208 | | |
209 | 209 | | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
210 | 217 | | |
211 | 218 | | |
212 | 219 | | |
| |||
2532 | 2539 | | |
2533 | 2540 | | |
2534 | 2541 | | |
| 2542 | + | |
2535 | 2543 | | |
2536 | 2544 | | |
2537 | | - | |
2538 | | - | |
2539 | | - | |
2540 | 2545 | | |
2541 | 2546 | | |
2542 | 2547 | | |
| |||
2865 | 2870 | | |
2866 | 2871 | | |
2867 | 2872 | | |
2868 | | - | |
| 2873 | + | |
2869 | 2874 | | |
2870 | 2875 | | |
2871 | 2876 | | |
| |||
2968 | 2973 | | |
2969 | 2974 | | |
2970 | 2975 | | |
2971 | | - | |
| 2976 | + | |
2972 | 2977 | | |
2973 | 2978 | | |
2974 | 2979 | | |
| |||
Lines changed: 9 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
136 | 136 | | |
137 | 137 | | |
138 | 138 | | |
139 | | - | |
| 139 | + | |
140 | 140 | | |
141 | | - | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
142 | 146 | | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
143 | 150 | | |
144 | 151 | | |
145 | 152 | | |
| |||
0 commit comments