apache / age

Graph database optimized for fast analysis and real-time data processing. It is provided as an extension to PostgreSQL.
https://age.apache.org
Apache License 2.0
2.97k stars 403 forks source link

Implement Pattern Matching in the RETURN clause [Related: #1577] #1607

Open dehowef opened 6 months ago

dehowef commented 6 months ago

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.

github-actions[bot] commented 3 months ago

This issue is stale because it has been open 45 days with no activity. Remove "Abondoned" label or comment or this will be closed in 7 days.