Commit 013cba9
authored
Refactor resolvePartition method for clarity
Adjust the order of checks in resolvePartition().
The current PR checks properties before the getPartitionKey() method, which could break existing code where users override getPartitionKey() in their jobs.
This way:
* onPartition() has highest priority (explicit)
* Custom getPartitionKey() in job classes still works
* Global resolver finally works as a fallback
* Auto-detection from properties is the last resort1 parent 491d79a commit 013cba9
1 file changed
+14
-20
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
263 | 263 | | |
264 | 264 | | |
265 | 265 | | |
| 266 | + | |
266 | 267 | | |
267 | | - | |
| 268 | + | |
268 | 269 | | |
269 | | - | |
270 | | - | |
271 | | - | |
272 | | - | |
273 | | - | |
274 | | - | |
275 | | - | |
276 | | - | |
277 | | - | |
278 | | - | |
279 | | - | |
280 | | - | |
281 | | - | |
282 | | - | |
283 | | - | |
284 | | - | |
285 | | - | |
| 270 | + | |
| 271 | + | |
286 | 272 | | |
287 | 273 | | |
288 | 274 | | |
289 | | - | |
| 275 | + | |
| 276 | + | |
290 | 277 | | |
291 | 278 | | |
292 | 279 | | |
293 | | - | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
294 | 288 | | |
295 | 289 | | |
296 | 290 | | |
| |||
0 commit comments