Oracle: after the tables grow and shrink, a labelled match with a property and an edge type finds nothing (wrong-results plan?)
I maintainer di solito rispondono entro 1 giorno
Una pull request collegata è già stata integrata.
- #206 di @jasperblues — integrata
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 24/100
Direzione di ricerca
Start by reproducing the issue with the Cypher spec followed by the heavy tests in the same Oracle session, then inspect the generated SQL and compare the executed plan using DISPLAY_CURSOR as a user with V$SESSION access. Try the issue's suggested checks: disable optimizer_adaptive_plans, gather statistics, and drop or rebuild the label index. Done means identifying a reproducible cause and confirming whether the proposed checks resolve the missing match; the issue also suggests checking drivine4j and drivine.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
What happens: on Oracle, after a test session has run the Cypher spec (v0.6.1) and then written a hub of 2,500 and 5,000 relationships in the same tables, a labelled match with a property and a typed edge finds nothing, though the data is there:
MATCH (:Person {name: 'Keanu'})-[:KNOWS]->(p) RETURN p.name -- []
When it fails, the store holds 9 nodes and 8 edges, Keanu KNOWS Carrie among them. These still find the row:
MATCH (a:Person)-[:KNOWS]->(p);MATCH (a {name: 'Keanu'})-[:KNOWS]->(p).
(a:Person {name: 'Keanu'})-[r]->(p) finds nothing.
It's on main: main's compiler with the v0.6.1 spec copy and the heavy tests reproduced it in 2 of 2 runs in one session. Without the heavy tests, or without the spec run before them, it passes.
The SQL is plain and identical on main and on the batch-2 branch: drivine_node n1 CROSS JOIN drivine_node n2 CROSS JOIN drivine_edge e3, with n1's label JSON_EXISTS, JSON_QUERY(n1.props, '$.name') = JSON('"Keanu"'), e3.src = n1.nid, e3.dst = n2.nid and e3.type = 'KNOWS'.
EXPLAIN PLAN shows an adaptive plan with dynamic sampling at level 2: nested loops, a full scan of DRIVINE_EDGE filtered on type, DRIVINE_NODE by unique nid for n1 filtered on labels and name, then n2 by nid. Table statistics are NULL. The executed plan may differ; DISPLAY_CURSOR needs V$SESSION, which the test user lacks.
So this looks like an Oracle wrong-results plan, possibly with the multivalue label index or the adaptive plan, once the tables have grown and shrunk without statistics.
Next steps:
- reproduce with
DISPLAY_CURSORas a user that can read V$SESSION; - try
optimizer_adaptive_plans = FALSE, gathering statistics, and dropping or rebuilding the label index; - if it's an Oracle bug, report it with the minimal SQL;
- check drivine4j and drivine (TypeScript) for the same, since they share the layout and the compiled SQL.
Found while porting Cypher batch 2 (drivine4j #206); that port works around it by writing its heavy tests' hub in a graph of its own.
- Lingua principale
- Python
- Stelle
- 1
- Fork
- 0
- Merge medio
- 1h 19m
- PR unite (30g)
- 122
Preparare l'ambiente
Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.
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 liberation-data/drivine-python
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
liberation-data/drivine-python#252 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
liberation-data/drivine-python#250 ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 88/100
liberation-data/drivine-python#209 ·
I maintainer di solito rispondono entro 1 giorno
-
CI: three Oracle-only tests in test_cypher_compiled.py never run, as -k oracle doesn't select themAperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 88/100
liberation-data/drivine-python#178 ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 4/5 3-5 giorni Idoneità per principianti 58/100
liberation-data/drivine-python#243 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di liberation-data/drivine-python
Issue simili
-
area/profiles comp/cli P3 type/feature
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
NousResearch/hermes-agent#146372 ·
I maintainer di solito rispondono entro 1 giorno
-
[BUG] OpenAI-compatible embedding model alias breaks embedder constructionForse già presa Una pull request collegata a questa issue è aperta o già unita. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
I maintainer di solito rispondono entro 1 giorno
-
[oblt-aw][autodoc] Document obs-aw-automerge contract and fix automerge doc inconsistenciesForse già presa @github-actions l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
I maintainer di solito rispondono entro 1 giorno
-
GeoSeries scale and skew tests fail with pytest 9.2.0Forse già presa @jiayuasu l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
I maintainer di solito rispondono entro 1 giorno
-
admission-deferred priority: medium status: ready work-class: scoped
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
melodic-software/claude-code-plugins#10887 · 4 commenti ·
I maintainer di solito rispondono entro 1 giorno