Commit 51b10dc
test+docs(cypher): pin aggregate-failfast interaction with chained-reentry carry (#1256 W1-I1)
Wave-1 review flagged that hidden-column forwarding could in principle silently
mutate grouping when the appended `__cypher_reentry_<S>_<X>__` bare item lands
inside a `WITH a, friend, count(*) AS n` chain — the carry would join the
group key set.
Empirically those queries already fail at the pre-existing
"aggregate would need repeated MATCH rows from a relationship pattern"
failfast, so no silent wrong-result path exists today. Pin that behavior with
a regression-lock test so a future change that lifts the aggregate failfast
must reckon with carry-grouping interaction explicitly.
Also document the DISTINCT/aggregate interaction in `_demote_secondary_whole_row_aliases`
inline so the next reader sees the design tradeoff.
Refs #1256.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 5762270 commit 51b10dc
2 files changed
Lines changed: 37 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7948 | 7948 | | |
7949 | 7949 | | |
7950 | 7950 | | |
| 7951 | + | |
| 7952 | + | |
| 7953 | + | |
| 7954 | + | |
| 7955 | + | |
| 7956 | + | |
| 7957 | + | |
| 7958 | + | |
| 7959 | + | |
| 7960 | + | |
| 7961 | + | |
7951 | 7962 | | |
7952 | 7963 | | |
7953 | 7964 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8081 | 8081 | | |
8082 | 8082 | | |
8083 | 8083 | | |
| 8084 | + | |
| 8085 | + | |
| 8086 | + | |
| 8087 | + | |
| 8088 | + | |
| 8089 | + | |
| 8090 | + | |
| 8091 | + | |
| 8092 | + | |
| 8093 | + | |
| 8094 | + | |
| 8095 | + | |
| 8096 | + | |
| 8097 | + | |
| 8098 | + | |
| 8099 | + | |
| 8100 | + | |
| 8101 | + | |
| 8102 | + | |
| 8103 | + | |
| 8104 | + | |
| 8105 | + | |
| 8106 | + | |
| 8107 | + | |
| 8108 | + | |
| 8109 | + | |
8084 | 8110 | | |
8085 | 8111 | | |
8086 | 8112 | | |
| |||
0 commit comments