Commit d22bdc7
misc: Refactor ShuffleTest (prestodb#26643)
Summary:
1. Refactored test infrastructure - Removed TestShuffleWriter/TestShuffleReader and migrated tests to use LocalShuffle exclusively
2. Reorganized test code - Consolidated helper functions and restructured test cases (move the PartitionAndSerlized tests above the shuffleEndToEnd)
3. Added serialize() methods - Added serialization methods to complement localShuffleInfo
4. Added test injection points - Added TestValue::adjust calls in LocalShuffleWriter::collect and LocalShuffleReader::next
Differential Revision: D871607911 parent c07cdb5 commit d22bdc7
File tree
3 files changed
+883
-1056
lines changed- presto-native-execution/presto_cpp/main/operators
- tests
3 files changed
+883
-1056
lines changedLines changed: 23 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
212 | 212 | | |
213 | 213 | | |
214 | 214 | | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
215 | 225 | | |
216 | 226 | | |
217 | 227 | | |
| |||
224 | 234 | | |
225 | 235 | | |
226 | 236 | | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
227 | 246 | | |
228 | 247 | | |
229 | 248 | | |
| |||
351 | 370 | | |
352 | 371 | | |
353 | 372 | | |
| 373 | + | |
| 374 | + | |
354 | 375 | | |
355 | 376 | | |
356 | 377 | | |
| |||
517 | 538 | | |
518 | 539 | | |
519 | 540 | | |
| 541 | + | |
| 542 | + | |
520 | 543 | | |
521 | 544 | | |
522 | 545 | | |
| |||
593 | 616 | | |
594 | 617 | | |
595 | 618 | | |
596 | | - | |
597 | | - | |
598 | | - | |
599 | | - | |
600 | | - | |
601 | | - | |
602 | | - | |
603 | | - | |
604 | | - | |
605 | 619 | | |
Lines changed: 6 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | 51 | | |
58 | 52 | | |
59 | 53 | | |
| |||
67 | 61 | | |
68 | 62 | | |
69 | 63 | | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
70 | 67 | | |
71 | 68 | | |
72 | 69 | | |
73 | 70 | | |
74 | | - | |
75 | 71 | | |
76 | 72 | | |
77 | 73 | | |
| |||
84 | 80 | | |
85 | 81 | | |
86 | 82 | | |
87 | | - | |
88 | | - | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
89 | 86 | | |
90 | 87 | | |
91 | 88 | | |
| |||
0 commit comments