Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add path groups #37

Merged
merged 4 commits into from Feb 15, 2024
Merged

Add path groups #37

merged 4 commits into from Feb 15, 2024

Conversation

davidmezzetti
Copy link
Contributor

@davidmezzetti davidmezzetti commented Feb 13, 2024

Initial implementation of #26 as discussed in #35.

After thinking about how a standard node and relationship are returned, this initial implementation mirrors that for paths.

For example:

MATCH (A)-[R]->(B)
RETURN A, R, B

Returns:

(A node id, R relationship attributes, B node id)

With this change:

MATCH P = (A)-[R]->(B)
RETURN P

Returns:

[node id1, {relationship attributes} node id2]

The plumbing is now in place to return the data in whatever format we think makes sense.

I think I modified the lark spec to make the path_clause optional. The tests pass.

@j6k4m8
Copy link
Member

j6k4m8 commented Feb 15, 2024

This is awesome!! Ready to merge?

@davidmezzetti
Copy link
Contributor Author

Ready from my end.

I was hoping to get this into a new grandcypher release and require that version or greater when using it with txtai.

This feature is going to enable this functionality: neuml/txtai#540

@j6k4m8
Copy link
Member

j6k4m8 commented Feb 15, 2024

Groovy — will merge now!

@j6k4m8
Copy link
Member

j6k4m8 commented Feb 15, 2024

Actually — before I do... Any interest in adding yourself to the changelog to collect your internet points? Otherwise, I can do it after we merge :)

@davidmezzetti
Copy link
Contributor Author

Sure. I can push another commit with a change log update for 0.6.0. I'll also update setup.py.

@davidmezzetti
Copy link
Contributor Author

Just pushed the updated CHANGELOG and bumped version in setup.py

@j6k4m8 j6k4m8 merged commit 31001b7 into aplbrain:master Feb 15, 2024
6 checks passed
@davidmezzetti davidmezzetti deleted the path-groups branch February 15, 2024 19:34
This was referenced Feb 17, 2024
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.

None yet

2 participants