Commit 1aa4b15
[SPARK-54763][TEST] Accelerate test_udf_return_types with multi-threading
### What changes were proposed in this pull request?
Use multi-threading to accelerate `test_udf_return_types`. Locally it has more than 2x speed up (113s -> 50s).
### Why are the changes needed?
`test_udf_return_types` is one of the slowest test we have. It took 300s on normal CI and even slower on coverage. This simple and straightforward fix can save us >50% of the time spent on this test.
### Does this PR introduce _any_ user-facing change?
No
### How was this patch tested?
Local speed up.
### Was this patch authored or co-authored using generative AI tooling?
No
Closes #53533 from gaogaotiantian/udfreturntype-accelerate.
Authored-by: Tian Gao <[email protected]>
Signed-off-by: Hyukjin Kwon <[email protected]>1 parent 80b4486 commit 1aa4b15
File tree
1 file changed
+9
-10
lines changed- python/pyspark/sql/tests/udf_type_tests
1 file changed
+9
-10
lines changedLines changed: 9 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
| |||
217 | 218 | | |
218 | 219 | | |
219 | 220 | | |
220 | | - | |
221 | | - | |
222 | | - | |
| 221 | + | |
223 | 222 | | |
224 | 223 | | |
225 | 224 | | |
| |||
233 | 232 | | |
234 | 233 | | |
235 | 234 | | |
236 | | - | |
| 235 | + | |
237 | 236 | | |
238 | | - | |
| 237 | + | |
| 238 | + | |
239 | 239 | | |
240 | 240 | | |
241 | 241 | | |
| |||
252 | 252 | | |
253 | 253 | | |
254 | 254 | | |
255 | | - | |
256 | | - | |
257 | | - | |
| 255 | + | |
258 | 256 | | |
259 | 257 | | |
260 | 258 | | |
| |||
276 | 274 | | |
277 | 275 | | |
278 | 276 | | |
279 | | - | |
| 277 | + | |
280 | 278 | | |
281 | | - | |
| 279 | + | |
| 280 | + | |
282 | 281 | | |
283 | 282 | | |
284 | 283 | | |
| |||
0 commit comments