You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor(gfql/polars): de-dup eager+lazy hop setup into shared helpers
The eager hop (hop_eager.py) and the lazy single-hop (hop.py) carried verbatim
copies of the column-name + edge-id + node-dtype setup and the directed-pairs
builder (hop.py even commented 'stay textually identical ... don't drift').
Extracted _hop_setup_columns() + _build_hop_pairs() — identical on pl.DataFrame
(eager) and pl.LazyFrame (lazy), so both call sites share one implementation.
Pure refactor, behavior-preserving. Validated on dgx: polars chain fuzz +
hop suites 1133 pass, mypy clean. (The bigger pandas/polars node-output policy
unification stays an issue — risky production-hop.py surgery + label-dtype
contract from #1664/#1663 is a prerequisite.)
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
0 commit comments