Summary
The official benchmark lane for a short query involving MATCH + OPTIONAL MATCH + CASE WHEN kills the process with SIGKILL (returncode 137) on every tested pin and branch through current master. The query now lowers correctly — the remaining problem is in execution/resource territory during the probe itself.
The suspected root cause is that the OPTIONAL MATCH join materializes a large intermediate result before applying the outer-scope binding filter. This is reproducible across multiple upstream pins on the staged sf1 dataset.
Status
Tested across five different pins/branches — all killed during the direct Cypher probe. Fixture load always completes cleanly. The kill happens inside query execution, not setup.
Full artifact table, RSS measurements, and fix direction are in the private benchmark tracker: graphistry/pyg-bench#1.
Fix direction
The OPTIONAL MATCH join should be scoped to the outer-scope binding variable before materialization rather than joining broadly and filtering after. Details in graphistry/pyg-bench#1.
Summary
The official benchmark lane for a short query involving
MATCH + OPTIONAL MATCH + CASE WHENkills the process with SIGKILL (returncode 137) on every tested pin and branch through current master. The query now lowers correctly — the remaining problem is in execution/resource territory during the probe itself.The suspected root cause is that the OPTIONAL MATCH join materializes a large intermediate result before applying the outer-scope binding filter. This is reproducible across multiple upstream pins on the staged sf1 dataset.
Status
Tested across five different pins/branches — all killed during the direct Cypher probe. Fixture load always completes cleanly. The kill happens inside query execution, not setup.
Full artifact table, RSS measurements, and fix direction are in the private benchmark tracker:
graphistry/pyg-bench#1.Fix direction
The OPTIONAL MATCH join should be scoped to the outer-scope binding variable before materialization rather than joining broadly and filtering after. Details in
graphistry/pyg-bench#1.