AGE lets a later `MERGE` feed a node into an earlier unrestricted `MATCH` scan
Los mantenedores suelen responder en 3 días
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 45/100
Línea de trabajo
Start by tracing how AGE plans and executes MATCH scans when later clauses such as DETACH DELETE and MERGE write to the same graph; the reproduction compares a direct query with one that materializes the earlier rows through collect and UNWIND. Find the relevant planner or executor code and tests for clause composition, then add coverage for both queries. Done means both return 2 rows on the reported environment.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Environment
- Apache AGE
1.8.0, PostgreSQL18.6 - Docker image:
apache/age:release_PG18_1.8.0
Reproduction
Create two initially unlabeled nodes in each of two clean graphs:
LOAD 'age';
SET search_path = ag_catalog, public;
SELECT ag_catalog.create_graph('age_repro24_left');
SELECT *
FROM ag_catalog.cypher('age_repro24_left', $$
CREATE (), ()
$$) AS (v agtype);
SELECT ag_catalog.create_graph('age_repro24_right');
SELECT *
FROM ag_catalog.cypher('age_repro24_right', $$
CREATE (), ()
$$) AS (v agtype);
Baseline — age_repro24_left
SELECT *
FROM ag_catalog.cypher('age_repro24_left', $$
MATCH (n)
DETACH DELETE n
MERGE (:New)
RETURN count(*) AS rows
$$) AS (rows agtype);
Row-materialized variant — age_repro24_right
SELECT *
FROM ag_catalog.cypher('age_repro24_right', $$
MATCH (n)
WITH {n: n} AS row
WITH collect(row) AS rows
UNWIND rows AS row
WITH row.n AS n
DETACH DELETE n
MERGE (:New)
RETURN count(*) AS rows
$$) AS (rows agtype);
The collect/UNWIND block preserves the two input rows and their bindings;
it materializes the earlier MATCH result before the later writes.
Expected and actual
The initial MATCH should bind the two nodes that exist when that clause is
evaluated. The later MERGE must not add another row to that already-completed
scan. Both queries should therefore return 2.
On AGE 1.8.0 / PostgreSQL 18.6:
baseline: 3 rows
barrier: 2 rows
The official Cypher clause-composition documentation states that a clause
cannot observe writes made by a later clause and notes that a MATCH before
CREATE does not find the node created later in the query: Neo4j Cypher
clause composition.
- Lenguaje dominante
- C
- Estrellas
- 4.9k
- Forks
- 535
- Merge medio
- 10 d 13 h
- PR fusionados (30 d)
- 7
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de apache/age
-
Integer division by -1 on INT64_MIN raises a misclassified floating-point exception (22P01) instead of bigint out of rangePosiblemente ocupada @sean0407 la tomó hace 11 días. Abiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
Los mantenedores suelen responder en 3 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
Los mantenedores suelen responder en 3 días
-
bug
Dificultad 4/5 3-5 días Aptitud para principiantes 53/100
Los mantenedores suelen responder en 3 días
-
bug
Dificultad 4/5 3-5 días Aptitud para principiantes 45/100
Los mantenedores suelen responder en 3 días
-
bug
Dificultad 4/5 3-5 días Aptitud para principiantes 48/100
Los mantenedores suelen responder en 3 días
Todos los issues de apache/age
Issues similares
-
enhancement good first issue
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
linux-test-project/ltp#1343 · 1 comentario ·
-
test_audio_host: out-of-bounds read in test_audio_host_uses_exponential_full_speed_iso_intervalAbiertofollowup Prio 📌
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
Los mantenedores suelen responder en 1 día
-
docs
Dificultad 2/5 1-3 horas Aptitud para principiantes 69/100
micropython/micropython#19798 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
valkey-io/valkey#4979 · 1 reacción ·
Los mantenedores suelen responder en 2 días