Skip to content

Commit 9e1ad8c

Browse files
committed
feat: add edge label filtering to edge_search and Cypher clause
- Implement edge label filtering in edge_search by accepting a label id argument and filtering edges by label OID during scan. - Update Cypher clause parser to resolve label names to label ids using the label cache and pass them as gtype integer to edge_search. - Support label filtering in add_edge_to_query and add_edge_to_query_with_prev_edge. - Update regression tests to include edge label filter queries.
1 parent 9ca2b38 commit 9e1ad8c

File tree

5 files changed

+148
-83
lines changed

5 files changed

+148
-83
lines changed

postgraph--0.1.0.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6892,7 +6892,7 @@ CREATE OPERATOR @> (
68926892
--JOIN = neqjoinsel
68936893
);
68946894

6895-
CREATE FUNCTION variable_edge_search(graph_oid gtype, id graphid, min gtype, max gtype)
6895+
CREATE FUNCTION variable_edge_search(graph_oid gtype, id graphid, min gtype, max gtype, label_filter text[] DEFAULT NULL)
68966896
RETURNS TABLE (edges variable_edge, endid graphid, hset hashset)
68976897
CALLED ON NULL INPUT
68986898
STABLE

0 commit comments

Comments
 (0)