Add experimental openCypher graph query frontend#17938
Open
xiangfu0 wants to merge 1 commit intoapache:masterfrom
Open
Add experimental openCypher graph query frontend#17938xiangfu0 wants to merge 1 commit intoapache:masterfrom
xiangfu0 wants to merge 1 commit intoapache:masterfrom
Conversation
c8d0f7a to
7902d0f
Compare
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## master #17938 +/- ##
============================================
+ Coverage 63.25% 63.43% +0.17%
- Complexity 1490 1543 +53
============================================
Files 3191 3208 +17
Lines 192609 195484 +2875
Branches 29542 30111 +569
============================================
+ Hits 121844 124002 +2158
- Misses 61224 61761 +537
- Partials 9541 9721 +180
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Implements an experimental graph query feature that translates a subset of openCypher into SQL JOINs and executes via Pinot's multi-stage engine (MSE). This enables graph-style traversal queries over existing Pinot tables without introducing native graph runtime operators. Supported Cypher syntax: - MATCH with 1-hop and 2-hop traversals (outgoing, incoming, undirected) - WHERE with comparison operators, AND/OR/NOT, string predicates (STARTS WITH, ENDS WITH, CONTAINS), IN lists - RETURN with DISTINCT, column aliases (AS), aggregations (COUNT, SUM, AVG, MIN, MAX) with auto GROUP BY - ORDER BY (ASC/DESC), SKIP, LIMIT Architecture: - New pinot-graph module (pinot-graph-spi + pinot-graph-planner) - Hand-written recursive descent Cypher parser → IR → SQL generator - POST /query/graph broker endpoint (behind pinot.graph.enabled flag) - Graph schema passed inline in request JSON (vertex/edge → table mapping) Tests: 233 total (211 unit + 12 handler + 10 E2E integration with 2 servers) Closes: apache#17935 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
7902d0f to
0263674
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds an experimental graph query feature that translates a subset of openCypher into SQL JOINs and executes via Pinot's multi-stage engine. This enables graph-style traversal queries over existing Pinot tables without native graph runtime operators.
pinot-graphmodule (SPI + planner) with hand-written Cypher parser → IR → SQL transpilerPOST /query/graphbroker endpoint behindpinot.graph.enabledfeature flag (default: false)Design doc posted on #17935: #17935 (comment)
Closes #17935
Test plan
🤖 Generated with Claude Code