Skip to content

Add pairs_cte for early filtering in path-finding (#93)#289

Open
nicolas-geysse wants to merge 1456 commits intocwida:mainfrom
theseedship:fix/issue-93-pairs-cte
Open

Add pairs_cte for early filtering in path-finding (#93)#289
nicolas-geysse wants to merge 1456 commits intocwida:mainfrom
theseedship:fix/issue-93-pairs-cte

Conversation

@nicolas-geysse
Copy link

Summary

  • Adds CreatePathFindingPairsCTE() function to isolate (src, dst) pairs with their WHERE conditions in a dedicated CTE
  • Modifies GenerateShortestPathCTE() to reference pairs_cte instead of doing a direct cross join between source and destination tables
  • Updates AddPathQuantifierCondition() signature to accept unique_ptr<ParsedExpression> for more flexibility
  • Adds test for path-finding with filtered pairs and bounds {1,2} and {2,2}
  • Fixes unique_ptr conversion issues in summarize_property_graph.cpp (unrelated bug fix)

Motivation

This is a preparatory step for issue #93 (PathFindingOperator with two sinks). By isolating pairs in a CTE, we enable:

  • Early filtering of (src, dst) pairs BEFORE path-finding execution
  • Cleaner separation of concerns
  • Future optimization opportunities

Test plan

  • New test pathfinding_pairs_bounds.test passes (23 assertions)
  • Existing path-finding tests pass (9/10, 1 pre-existing failure in complex_matching.test)
  • Build succeeds

🤖 Generated with Claude Code

Dtenwolde and others added 30 commits January 28, 2025 09:52
…on-weakly-connected-component

Rework WCC implementation
…when-match-used-in-subquery

Fix segmentation fault when match was used inside subquery
[still fixing some issues with aliases]
…for-get_csr_v-and-get_csr_e

Fix segmentation faults in csr v and e functions
Improve template bootstraper script
Dtenwolde and others added 29 commits July 22, 2025 10:10
This reverts commit b1edaff.
Fix issues related to v1.4.1 release
- Create CreatePathFindingPairsCTE() to isolate (src, dst) pairs with WHERE conditions
- Modify GenerateShortestPathCTE() to use pairs_cte instead of direct cross join
- Update AddPathQuantifierCondition() signature to accept parsed expressions
- Add test for path-finding with filtered pairs and bounds
- Fix unique_ptr conversion issues in summarize_property_graph.cpp

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
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.