AGE lets a later `MERGE` feed a node into an earlier unrestricted `MATCH` scan
Maintainer thường phản hồi trong vòng 3 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 45/100
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.
- Ngôn ngữ chính
- C
- Star
- 4.9k
- Fork
- 535
- Merge trung bình
- 10 ngày 13 giờ
- Pull request đã merge (30 ngày)
- 7
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của apache/age
-
Integer division by -1 on INT64_MIN raises a misclassified floating-point exception (22P01) instead of bigint out of rangeCó thể đã có người làm @sean0407 đã nhận 11 ngày trước. Đang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
Maintainer thường phản hồi trong vòng 3 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
Maintainer thường phản hồi trong vòng 3 ngày
-
bug
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 53/100
Maintainer thường phản hồi trong vòng 3 ngày
-
bug
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
Maintainer thường phản hồi trong vòng 3 ngày
-
bug
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
Maintainer thường phản hồi trong vòng 3 ngày
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
colbymchenry/codegraph#2770 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area/ysql kind/enhancement priority/medium status/awaiting-triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 73/100
yugabyte/yugabyte-db#35578 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Bug Status: Needs Triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Remove unused FVS_* macrosĐang mởinterpreter-core type-feature
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày