Commit 0187d5b
fix(cudf): Guard hash join build debug logging against empty inputs (#17221)
Summary:
When the build side of a hash join has no data (e.g. anti-join with
empty result), inputs_ is empty. With a debug build, the logging at
`noMoreInput()` accesses `inputs_[0]` without bound checking,
which could result in a `SIGSEGV`.
This fixes Q16 (TPC-H) which uses NOT IN (anti-join) where the build
side can be empty for some partitions.
Pull Request resolved: #17221
Reviewed By: kagamiori
Differential Revision: D101671299
Pulled By: peterenescu
fbshipit-source-id: 0971d85671e67810789d8148ce3891e757faf4f71 parent dc9e9f3 commit 0187d5b
2 files changed
Lines changed: 24 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
204 | 204 | | |
205 | 205 | | |
206 | 206 | | |
207 | | - | |
208 | | - | |
209 | | - | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
210 | 212 | | |
211 | 213 | | |
212 | 214 | | |
| |||
224 | 226 | | |
225 | 227 | | |
226 | 228 | | |
227 | | - | |
| 229 | + | |
228 | 230 | | |
229 | 231 | | |
230 | 232 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8493 | 8493 | | |
8494 | 8494 | | |
8495 | 8495 | | |
| 8496 | + | |
| 8497 | + | |
| 8498 | + | |
| 8499 | + | |
| 8500 | + | |
| 8501 | + | |
| 8502 | + | |
| 8503 | + | |
| 8504 | + | |
| 8505 | + | |
| 8506 | + | |
| 8507 | + | |
| 8508 | + | |
| 8509 | + | |
| 8510 | + | |
| 8511 | + | |
| 8512 | + | |
| 8513 | + | |
8496 | 8514 | | |
0 commit comments