Skip to content

GFQL: scope-aware predicate pushdown barriers (#1190)#1192

Merged
lmeyerov merged 1 commit intomasterfrom
m4-1190-scope-aware-pushdown-barriers
Apr 23, 2026
Merged

GFQL: scope-aware predicate pushdown barriers (#1190)#1192
lmeyerov merged 1 commit intomasterfrom
m4-1190-scope-aware-pushdown-barriers

Conversation

@lmeyerov
Copy link
Copy Markdown
Contributor

Summary

Implementation details

  • PlanContext now carries scope_stack
  • CompiledCypherExecutionExtras/CompiledCypherQuery now carry scope_stack
  • compile_cypher_query() captures bound scope frames and attaches them to compiled query extras
  • gfql_unified logical pass pipeline now builds PlanContext(scope_stack=compiled_query.scope_stack)
  • PredicatePushdownPass now checks WITH barriers before pushdown

Tests

  • PYTHONPATH=. uv run --no-project --with pytest python -m pytest graphistry/tests/compute/gfql/test_predicate_pushdown_pass.py graphistry/tests/compute/gfql/cypher/test_lowering.py -q
  • PYTHONPATH=. uv run --no-project --with pytest python -m pytest graphistry/tests/compute/gfql/test_pushdown_safety.py graphistry/tests/compute/gfql/test_pass_manager.py graphistry/tests/compute/gfql/test_ir_compilation.py graphistry/tests/compute/gfql/test_ir_m0b_conformance.py graphistry/tests/compute/gfql/test_unnest_apply.py -q
  • ./bin/ruff.sh
  • uvx mypy --cache-dir /tmp/mypy_cache_1190 graphistry/compute/gfql/ir/compilation.py graphistry/compute/gfql/ir/pushdown_safety.py graphistry/compute/gfql/passes/predicate_pushdown.py graphistry/compute/gfql/cypher/lowering.py graphistry/compute/gfql_unified.py

Closes #1190.

@lmeyerov lmeyerov merged commit d52b310 into master Apr 23, 2026
121 checks passed
@lmeyerov lmeyerov deleted the m4-1190-scope-aware-pushdown-barriers branch April 23, 2026 03:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

M4-PR5: scope-aware predicate pushdown barriers (WITH/ScopeFrame metadata plumbing)

1 participant