[Bug]: Broadcast hash join fails on wide key-only builds and retains pending matches after reset
I maintainer di solito rispondono entro 1 giorno
Valutazione
Questa issue non è ancora stata valutata.
Descrizione
Affected revisions
Confirmed on main at d58476485f and on the 4.2-dev backport candidate #33242 at 5ad4415c94. Related to #32143 and #32917.
A wide equality key fails when the query only counts probe rows
On one CN with max DOP 1, the default MPool allocation limit and an 8 GiB query budget, we inserted 8,192 build rows with IDs 1–8,192. The join key was MEDIUMTEXT, 262,150 bytes per row, drawn from 20 distinct values. The probe had one matching row for each of the 20 values and 16,364 unmatched rows. We inserted the long and short probe keys separately and checked source IDs, lengths and digests before the join.
| SQL | Expected | Observed |
|---|---|---|
SELECT SUM(b.id) FROM p LEFT JOIN b ON p.k=b.k |
33,558,528 | 33,558,528 |
SELECT COUNT(p.id) FROM p LEFT JOIN b ON p.k=b.k |
24,556 | Allocation failure, main 1105 / 4.2 candidate 20101 |
The build key requires 2,147,532,800 bytes if all 8,192 rows are packed together, above the 2,147,483,631-byte single-allocation limit. HashBuild still needs these input vectors while constructing the hash map, even when the probe consumes only the map. Its batching decision currently depends on whether the consumer retains build payload.
An early-finished probe retains part of its match group after reset
A normal MySQL LEFT JOIN with LIMIT 1 returned the expected row. Read-only observation on each branch showed 852 unconsumed selections immediately before and after HashJoin.Reset. Focused operator checks with a smaller byte limit left two selections after reset when the first output contained 11 of 13 wide matches. The fully emitted control left zero. These checks exercised the cleanup boundary; we did not observe a subsequent client query returning incorrect rows.
Expected behavior
Build temporary key batches within the single-allocation limit and preserve the query budget. Only consumers retaining payload need the physical row directory. Releasing a JoinMap should also discard pending selections owned by that map, so the next probe starts with an empty group.
- Lingua principale
- Go
- Stelle
- 1.9k
- Fork
- 312
- Merge medio
- 22h 59m
- PR unite (30g)
- 736
Preparare l'ambiente
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di matrixorigin/matrixone
-
kind/bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
matrixorigin/matrixone#33363 ·
I maintainer di solito rispondono entro 1 giorno
-
kind/bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
matrixorigin/matrixone#33362 ·
I maintainer di solito rispondono entro 1 giorno
-
SLEEP rejects NULL and negative durations that MySQL acceptsForse già presa @XuPeng-SH l’ha presa 7 giorni fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
matrixorigin/matrixone#32653 ·
I maintainer di solito rispondono entro 1 giorno
-
[Bug]: TestChangeWatchProxy loses its first tenant connection during PingContext in Ubuntu CIForse già presa @XuPeng-SH l’ha presa oggi. Apertakind/bug needs-triage
matrixorigin/matrixone#33371 · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
[Bug]: TestDaemonClaimSQLRoundTrip exhausts its shared deadline during the stale claim update in Ubuntu CIForse già presa @XuPeng-SH l’ha presa oggi. Apertakind/bug needs-triage
matrixorigin/matrixone#33370 · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di matrixorigin/matrixone
Issue simili
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
pg-sharding/spqr#3314 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 80/100
slavakurilyak/awesome-ai-agents#1051 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 73/100
google-gemini/gemini-api-cli#247 ·
I maintainer di solito rispondono entro 1 giorno