Commit 422b545
fix: Track metrics in hash joins with empty build sides (#20810)
## Which issue does this PR close?
- Closes #20809.
## Rationale for this change
Show the correct metrics when executing hash joins.
## What changes are included in this PR?
- The fast path in `process_probe_batch` now stores the output batch in
`output_buffer` instead of returning it, since the metrics are only
updated with batches stored there.
- Added unit test.
## Are these changes tested?
Yes.
## Are there any user-facing changes?
No.
---------
Co-authored-by: Yongting You <2010youy01@gmail.com>1 parent fcb1c93 commit 422b545
2 files changed
Lines changed: 45 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
655 | 655 | | |
656 | 656 | | |
657 | 657 | | |
658 | | - | |
| 658 | + | |
659 | 659 | | |
660 | 660 | | |
661 | | - | |
| 661 | + | |
662 | 662 | | |
663 | 663 | | |
664 | 664 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5056 | 5056 | | |
5057 | 5057 | | |
5058 | 5058 | | |
| 5059 | + | |
| 5060 | + | |
| 5061 | + | |
| 5062 | + | |
| 5063 | + | |
| 5064 | + | |
| 5065 | + | |
| 5066 | + | |
| 5067 | + | |
| 5068 | + | |
| 5069 | + | |
| 5070 | + | |
| 5071 | + | |
| 5072 | + | |
| 5073 | + | |
| 5074 | + | |
| 5075 | + | |
| 5076 | + | |
| 5077 | + | |
| 5078 | + | |
| 5079 | + | |
| 5080 | + | |
| 5081 | + | |
| 5082 | + | |
| 5083 | + | |
| 5084 | + | |
| 5085 | + | |
| 5086 | + | |
| 5087 | + | |
| 5088 | + | |
| 5089 | + | |
| 5090 | + | |
| 5091 | + | |
| 5092 | + | |
| 5093 | + | |
| 5094 | + | |
| 5095 | + | |
| 5096 | + | |
| 5097 | + | |
| 5098 | + | |
| 5099 | + | |
| 5100 | + | |
| 5101 | + | |
5059 | 5102 | | |
5060 | 5103 | | |
5061 | 5104 | | |
| |||
0 commit comments