aplbrain
grand-cypher
BlogDocsChangelog

Support scope function in where clause (#58)

#80
Comparing
khoale88:issue-58
(
8d9074d
) with
master
(
ff38a9f
)
CodSpeed Performance Gauge
-1%
Untouched
81

Benchmarks

Passed

test_order_by_with_distinct[DiGraph]
grandcypher/test_queries.py::TestOrderBy
CodSpeed Performance Gauge
0%
15.5 ms15.5 ms
test_match_with_single_or_operator[DiGraph]
grandcypher/test_queries.py::TestMatchWithOrOperatorInRelationships
CodSpeed Performance Gauge
0%
16.2 ms16.2 ms
test_match_with_single_or_operator[MultiDiGraph]
grandcypher/test_queries.py::TestMatchWithOrOperatorInRelationships
CodSpeed Performance Gauge
0%
16.2 ms16.2 ms
test_complex_variable_length_relationship[DiGraph]
grandcypher/test_queries.py::TestVariableLengthRelationship
CodSpeed Performance Gauge
0%
18.1 ms18.1 ms
test_query_with_multiple_relations
grandcypher/test_queries.py::TestMultigraphRelations
CodSpeed Performance Gauge
0%
15.9 ms15.9 ms
test_distinct_with_relationships[MultiDiGraph]
grandcypher/test_queries.py::TestDistinct
CodSpeed Performance Gauge
0%
13.3 ms13.3 ms
test_distinct_on_complex_graph[DiGraph]
grandcypher/test_queries.py::TestDistinct
CodSpeed Performance Gauge
0%
15.9 ms15.9 ms
test_multigraph_aggregation_function_sum
grandcypher/test_queries.py::TestMultigraphRelations
CodSpeed Performance Gauge
0%
18.7 ms18.7 ms
test_order_by_with_non_returned_field[DiGraph]
grandcypher/test_queries.py::TestOrderBy
CodSpeed Performance Gauge
0%
11.6 ms11.6 ms
test_node_dict[MultiDiGraph]
grandcypher/test_queries.py::TestDictAttributes
CodSpeed Performance Gauge
0%
11.9 ms11.9 ms
test_complex_variable_length_relationship[MultiDiGraph]
grandcypher/test_queries.py::TestVariableLengthRelationship
CodSpeed Performance Gauge
0%
18.1 ms18.1 ms
test_order_by_edge_attribute1
grandcypher/test_queries.py::TestOrderBy
CodSpeed Performance Gauge
0%
37.9 ms37.9 ms
test_path[MultiDiGraph]
grandcypher/test_queries.py::TestPath
CodSpeed Performance Gauge
0%
12.9 ms12.9 ms
test_distinct_on_complex_graph[MultiDiGraph]
grandcypher/test_queries.py::TestDistinct
CodSpeed Performance Gauge
0%
15.9 ms15.9 ms
test_single_variable_length_relationship[DiGraph]
grandcypher/test_queries.py::TestVariableLengthRelationship
CodSpeed Performance Gauge
0%
47.9 ms47.9 ms
test_order_by_aggregation_function
grandcypher/test_queries.py::TestOrderBy
CodSpeed Performance Gauge
0%
67 ms67 ms
test_path[DiGraph]
grandcypher/test_queries.py::TestPath
CodSpeed Performance Gauge
0%
12.9 ms12.9 ms
test_single_variable_length_relationship[MultiDiGraph]
grandcypher/test_queries.py::TestVariableLengthRelationship
CodSpeed Performance Gauge
0%
48 ms48 ms
test_order_by_with_limit[DiGraph]
grandcypher/test_queries.py::TestOrderBy
CodSpeed Performance Gauge
0%
12.4 ms12.4 ms
test_alias_with_order_by
grandcypher/test_queries.py::TestAlias
CodSpeed Performance Gauge
0%
48.2 ms48.1 ms
test_order_by_with_skip[DiGraph]
grandcypher/test_queries.py::TestOrderBy
CodSpeed Performance Gauge
0%
12.4 ms12.4 ms
test_multiple_nodes_hinted[DiGraph]
grandcypher/test_hints.py::TestHints
CodSpeed Performance Gauge
0%
14.3 ms14.3 ms
test_order_by_with_skip[MultiDiGraph]
grandcypher/test_queries.py::TestOrderBy
CodSpeed Performance Gauge
0%
12.4 ms12.4 ms
test_alias_with_single_variable_length_relationship[DiGraph]
grandcypher/test_queries.py::TestAlias
CodSpeed Performance Gauge
0%
34.3 ms34.3 ms
test_order_by_single_field_ascending[MultiDiGraph]
grandcypher/test_queries.py::TestOrderBy
CodSpeed Performance Gauge
0%
11.7 ms11.7 ms
test_order_by_single_field_ascending[DiGraph]
grandcypher/test_queries.py::TestOrderBy
CodSpeed Performance Gauge
0%
11.7 ms11.7 ms
test_alias_with_single_variable_length_relationship[MultiDiGraph]
grandcypher/test_queries.py::TestAlias
CodSpeed Performance Gauge
0%
34.4 ms34.4 ms
test_basic_distinct1[MultiDiGraph]
grandcypher/test_queries.py::TestDistinct
CodSpeed Performance Gauge
0%
9.9 ms9.9 ms
test_order_by_with_distinct[MultiDiGraph]
grandcypher/test_queries.py::TestOrderBy
CodSpeed Performance Gauge
0%
15.5 ms15.5 ms
test_order_by_with_non_returned_field[MultiDiGraph]
grandcypher/test_queries.py::TestOrderBy
CodSpeed Performance Gauge
0%
11.6 ms11.6 ms
test_node_dict[DiGraph]
grandcypher/test_queries.py::TestDictAttributes
CodSpeed Performance Gauge
0%
11.9 ms11.9 ms
test_order_by_multiple_fields[MultiDiGraph]
grandcypher/test_queries.py::TestOrderBy
CodSpeed Performance Gauge
0%
14.2 ms14.2 ms
test_multiple_nodes_hinted[MultiDiGraph]
grandcypher/test_hints.py::TestHints
CodSpeed Performance Gauge
0%
14.3 ms14.3 ms
test_distinct_with_relationships[DiGraph]
grandcypher/test_queries.py::TestDistinct
CodSpeed Performance Gauge
0%
13.3 ms13.3 ms
test_order_by_multiple_fields[DiGraph]
grandcypher/test_queries.py::TestOrderBy
CodSpeed Performance Gauge
0%
14.2 ms14.3 ms
test_order_by_with_limit[MultiDiGraph]
grandcypher/test_queries.py::TestOrderBy
CodSpeed Performance Gauge
0%
12.4 ms12.4 ms
test_multigraph_aggregation_function_count
grandcypher/test_queries.py::TestMultigraphRelations
CodSpeed Performance Gauge
0%
18.9 ms18.9 ms
test_basic_distinct2[DiGraph]
grandcypher/test_queries.py::TestDistinct
CodSpeed Performance Gauge
0%
10 ms10 ms
test_basic_distinct2[MultiDiGraph]
grandcypher/test_queries.py::TestDistinct
CodSpeed Performance Gauge
0%
10 ms10 ms
test_order_by_edge_attribute2
grandcypher/test_queries.py::TestOrderBy
CodSpeed Performance Gauge
0%
20.5 ms20.6 ms
test_simple_multi_edge
grandcypher/test_queries.py::TestKarate
CodSpeed Performance Gauge
0%
107.9 ms108.1 ms
test_limit_only
grandcypher/test_queries.py::TestLimitSkip
CodSpeed Performance Gauge
0%
107.9 ms108.1 ms
test_skip_only
grandcypher/test_queries.py::TestLimitSkip
CodSpeed Performance Gauge
0%
108.7 ms108.9 ms
test_basic_distinct1[DiGraph]
grandcypher/test_queries.py::TestDistinct
CodSpeed Performance Gauge
0%
9.9 ms9.9 ms
test_skip_and_limit
grandcypher/test_queries.py::TestLimitSkip
CodSpeed Performance Gauge
0%
215.7 ms216.2 ms
test_two_edge_hop_with_edge_node_type[MultiDiGraph]
grandcypher/test_queries.py::TestSpecialCases
CodSpeed Performance Gauge
-1%
50.8 ms51.2 ms
test_undirected[DiGraph]
grandcypher/test_queries.py::TestLimitSkip
CodSpeed Performance Gauge
-1%
45 ms45.4 ms
test_undirected[MultiDiGraph]
grandcypher/test_queries.py::TestLimitSkip
CodSpeed Performance Gauge
-1%
45.1 ms45.5 ms
test_two_edge_hop_with_edge_node_type[DiGraph]
grandcypher/test_queries.py::TestSpecialCases
CodSpeed Performance Gauge
-1%
50.1 ms50.5 ms
test_left_or_right_direction_with_where[MultiDiGraph]
grandcypher/test_queries.py::TestLimitSkip
CodSpeed Performance Gauge
-1%
43.2 ms43.5 ms
test_left_or_right_direction_with_where[DiGraph]
grandcypher/test_queries.py::TestLimitSkip
CodSpeed Performance Gauge
-1%
43.1 ms43.5 ms
test_node_type_edge_hop[DiGraph]
grandcypher/test_queries.py::TestType
CodSpeed Performance Gauge
-1%
54.5 ms55.3 ms
test_node_type_edge_hop[MultiDiGraph]
grandcypher/test_queries.py::TestType
CodSpeed Performance Gauge
-1%
54.6 ms55.4 ms
test_in[DiGraph]
grandcypher/test_queries.py::TestList
CodSpeed Performance Gauge
-2%
12.5 ms12.8 ms
test_in[MultiDiGraph]
grandcypher/test_queries.py::TestList
CodSpeed Performance Gauge
-2%
12.5 ms12.8 ms
test_no_hints[MultiDiGraph]
grandcypher/test_hints.py::TestHints
CodSpeed Performance Gauge
-2%
16 ms16.3 ms
test_no_hints[DiGraph]
grandcypher/test_hints.py::TestHints
CodSpeed Performance Gauge
-2%
15.9 ms16.2 ms
test_simple_hint_same_as_full_results[MultiDiGraph]
grandcypher/test_hints.py::TestHints
CodSpeed Performance Gauge
-2%
15.6 ms16 ms
test_simple_hint_same_as_full_results[DiGraph]
grandcypher/test_hints.py::TestHints
CodSpeed Performance Gauge
-2%
15.5 ms15.9 ms
test_simple_api_single_node_where[DiGraph]
grandcypher/test_queries.py::TestSimpleAPI
CodSpeed Performance Gauge
-2%
14.6 ms15 ms
test_simple_api_single_node_where[MultiDiGraph]
grandcypher/test_queries.py::TestSimpleAPI
CodSpeed Performance Gauge
-2%
14.7 ms15 ms
test_distinct_with_attributes[DiGraph]
grandcypher/test_queries.py::TestDistinct
CodSpeed Performance Gauge
-2%
12.9 ms13.2 ms
test_distinct_with_attributes[MultiDiGraph]
grandcypher/test_queries.py::TestDistinct
CodSpeed Performance Gauge
-3%
12.9 ms13.2 ms
test_simple_api_two_edge_where_clauses_diff_edge[MultiDiGraph]
grandcypher/test_queries.py::TestSimpleAPI
CodSpeed Performance Gauge
-3%
25.6 ms26.3 ms
test_simple_api_two_edge_where_clauses_diff_edge[DiGraph]
grandcypher/test_queries.py::TestSimpleAPI
CodSpeed Performance Gauge
-3%
25.5 ms26.3 ms
test_starts_with[MultiDiGraph]
grandcypher/test_queries.py::TestStringOperators
CodSpeed Performance Gauge
-3%
10.6 ms10.9 ms
test_ends_with[MultiDiGraph]
grandcypher/test_queries.py::TestStringOperators
CodSpeed Performance Gauge
-3%
20.6 ms21.3 ms
test_starts_with[DiGraph]
grandcypher/test_queries.py::TestStringOperators
CodSpeed Performance Gauge
-3%
10.6 ms10.9 ms
test_ends_with[DiGraph]
grandcypher/test_queries.py::TestStringOperators
CodSpeed Performance Gauge
-3%
20.6 ms21.3 ms
test_contains[DiGraph]
grandcypher/test_queries.py::TestStringOperators
CodSpeed Performance Gauge
-4%
21.2 ms22 ms
test_contains[MultiDiGraph]
grandcypher/test_queries.py::TestStringOperators
CodSpeed Performance Gauge
-4%
21.2 ms22 ms
test_not[DiGraph]
grandcypher/test_queries.py::TestNot
CodSpeed Performance Gauge
-4%
11.2 ms11.7 ms
test_not[MultiDiGraph]
grandcypher/test_queries.py::TestNot
CodSpeed Performance Gauge
-4%
11.2 ms11.7 ms
test_simple_api_single_node_multi_where[MultiDiGraph]
grandcypher/test_queries.py::TestSimpleAPI
CodSpeed Performance Gauge
-4%
18.1 ms18.8 ms
test_simple_api_single_node_multi_where[DiGraph]
grandcypher/test_queries.py::TestSimpleAPI
CodSpeed Performance Gauge
-4%
18 ms18.8 ms
test_simple_api_multi_node_multi_where[MultiDiGraph]
grandcypher/test_queries.py::TestSimpleAPI
CodSpeed Performance Gauge
-4%
18 ms18.7 ms
test_simple_api_multi_node_multi_where[DiGraph]
grandcypher/test_queries.py::TestSimpleAPI
CodSpeed Performance Gauge
-4%
17.9 ms18.7 ms
test_doublenot[MultiDiGraph]
grandcypher/test_queries.py::TestNot
CodSpeed Performance Gauge
-5%
11.8 ms12.4 ms
test_doublenot[DiGraph]
grandcypher/test_queries.py::TestNot
CodSpeed Performance Gauge
-5%
11.8 ms12.4 ms
test_nested_nots_in_statements[DiGraph]
grandcypher/test_queries.py::TestNot
CodSpeed Performance Gauge
-6%
32.2 ms34.3 ms
test_nested_nots_in_statements[MultiDiGraph]
grandcypher/test_queries.py::TestNot
CodSpeed Performance Gauge
-6%
32.2 ms34.4 ms

Commits

Click on a commit to change the comparison range
Base
master
ff38a9f
-1.29%
Support scope function in where clause qry = """ MATCH (A) WHERE A.d < date(int("2025"), add(5, 7), 1) RETURN ID(A) """ res = GrandCypher(host, scope_functions={"date": date, "int": int, "add": lambda a, b: a + b}).run(qry) fix lint
8d9074d
8 days ago
by khoale88
© 2025 CodSpeed Technology
Home Terms Privacy Docs