Commit 6e225bb
[fix](fe) Fix NLJ build-side source_deps crash when serial NLJ gets PASSTHROUGH
### What problem does this PR solve?
Issue Number: close #xxx
Problem Summary: When NLJ is serial (RIGHT_OUTER/ANTI/SEMI/FULL_OUTER),
shouldResetSerialFlagForChild(1) was unconditionally true, clearing the
serial ancestor flag for the build side. This caused Exchange(UNPARTITIONED)
on the build side to insert a PASSTHROUGH local exchange, restoring the
build pipeline's num_tasks to _num_instances while the probe pipeline stays
at 1. The extra build tasks had NLJ shared states with empty source_deps,
crashing in Dependency::set_ready_to_read().
Fix: shouldResetSerialFlagForChild(1) now returns false when NLJ is serial,
preserving the serial ancestor flag on the build side so Exchange returns
NOOP instead of inserting PASSTHROUGH.
### Release note
None
### Check List (For Author)
- Test: Regression test added (Bug 19 in test_local_shuffle_rqg_bugs.groovy)
- Behavior changed: No
- Does this need documentation: No
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent b047529 commit 6e225bb
2 files changed
Lines changed: 59 additions & 1 deletion
File tree
- fe/fe-core/src/main/java/org/apache/doris/planner
- regression-test/suites/nereids_p0/local_shuffle
Lines changed: 9 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
231 | 231 | | |
232 | 232 | | |
233 | 233 | | |
234 | | - | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
235 | 243 | | |
236 | 244 | | |
Lines changed: 50 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1041 | 1041 | | |
1042 | 1042 | | |
1043 | 1043 | | |
| 1044 | + | |
| 1045 | + | |
| 1046 | + | |
| 1047 | + | |
| 1048 | + | |
| 1049 | + | |
| 1050 | + | |
| 1051 | + | |
| 1052 | + | |
| 1053 | + | |
| 1054 | + | |
| 1055 | + | |
| 1056 | + | |
| 1057 | + | |
| 1058 | + | |
| 1059 | + | |
| 1060 | + | |
| 1061 | + | |
| 1062 | + | |
| 1063 | + | |
| 1064 | + | |
| 1065 | + | |
| 1066 | + | |
| 1067 | + | |
| 1068 | + | |
| 1069 | + | |
| 1070 | + | |
| 1071 | + | |
| 1072 | + | |
| 1073 | + | |
| 1074 | + | |
| 1075 | + | |
| 1076 | + | |
| 1077 | + | |
| 1078 | + | |
| 1079 | + | |
| 1080 | + | |
| 1081 | + | |
| 1082 | + | |
| 1083 | + | |
| 1084 | + | |
| 1085 | + | |
| 1086 | + | |
| 1087 | + | |
| 1088 | + | |
| 1089 | + | |
| 1090 | + | |
| 1091 | + | |
| 1092 | + | |
| 1093 | + | |
1044 | 1094 | | |
1045 | 1095 | | |
0 commit comments