Implement Pattern Matching in the RETURN clause [Related: #1577]
- Dominant language
- C
- Stars
- 4.8k
- Forks
- 523
- Avg merge
- 1d 2h
- Merged PRs (30d)
- 9
Description
I discovered a similar grammar that has not yet been implemented in a similar vein to #1577 .
Pattern matching is also valid in return clauses.
For example, the query:
MATCH (a) RETURN (a)-[]-()
matches the variable a and returns the tuple of a and the following edge and node in a single column.
This may require a rework of the logic regarding transformation of patterns and edges and RETURN.
Contributor guide
Research direction
Start by reviewing the related issue #1577 and the existing grammar and transformation logic for RETURN clauses. Use MATCH (a) RETURN (a)-[]-() as the example case, and verify that the query is accepted and returns the matched variable, edge, and node as one tuple column.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c, postgresql
- Domain
- databases
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100