Skip to content

impl index spec #2103

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

Merged
merged 44 commits into from
Jun 6, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
d4485db
impl index spec
shivamka1 May 22, 2025
ce6e2d9
fallback to raphtory apis for properties for which indexes are not cr…
shivamka1 May 23, 2025
425556f
impl index spec for python
shivamka1 May 27, 2025
94b2a61
impl get index spec
shivamka1 May 27, 2025
9243580
fix loading index spec based index
shivamka1 May 27, 2025
8675021
move all index tests in one place
shivamka1 May 28, 2025
16d1ead
add test
shivamka1 May 28, 2025
f88b9cd
impl py get_index_spec
shivamka1 May 28, 2025
aa570c4
rw indexspec
shivamka1 May 28, 2025
054cfde
check if index needs update
shivamka1 May 28, 2025
c07aab4
impl update index
shivamka1 May 28, 2025
5e17d7d
add test
shivamka1 May 28, 2025
d478677
more test
shivamka1 May 28, 2025
72add5a
update only existing prop index, don't add any new prop index via upd…
shivamka1 May 28, 2025
ec8777a
add tests
shivamka1 May 28, 2025
9912a76
Merge branch 'master' into features/index_spec
shivamka1 May 28, 2025
ac08e60
fmt
shivamka1 May 28, 2025
98aa850
fix issues with property indexes, add/fix tests
shivamka1 May 29, 2025
d1e0ac0
ref
shivamka1 May 30, 2025
397afb8
add update index to create_index_in_ram_with_spec, add test
shivamka1 May 30, 2025
290908e
ref py tests
shivamka1 May 30, 2025
ab59db1
impl gql node type filtering for list of node types
shivamka1 May 30, 2025
b0fe461
add test
shivamka1 May 30, 2025
d08d0b1
fix test
shivamka1 May 30, 2025
0953cd4
ref
shivamka1 May 30, 2025
165172c
fix tests
shivamka1 Jun 2, 2025
199a086
rid UnknownProperty
shivamka1 Jun 2, 2025
908650e
add comment
shivamka1 Jun 2, 2025
ecb90ca
rid name and prop type from index spec
shivamka1 Jun 2, 2025
d806701
fix indexspec for python
shivamka1 Jun 2, 2025
5756687
fix race
shivamka1 Jun 2, 2025
e4ab6aa
impl suggestions from review
shivamka1 Jun 2, 2025
4bc1adb
intro index_ops
shivamka1 Jun 4, 2025
a9cdf07
ref, fix warnings
shivamka1 Jun 4, 2025
b167a57
add test
shivamka1 Jun 4, 2025
47143f2
fix build
shivamka1 Jun 4, 2025
29b9b07
Merge branch 'master' into features/index_spec
shivamka1 Jun 4, 2025
780a36c
add test
shivamka1 Jun 5, 2025
b36c4e5
fix bench
shivamka1 Jun 5, 2025
d65b19b
ref
shivamka1 Jun 5, 2025
00bb1fe
ref
shivamka1 Jun 5, 2025
6a6c27f
add props to index_spec
shivamka1 Jun 5, 2025
a1aa852
ref tests
shivamka1 Jun 5, 2025
f11ef8d
fix warnings
shivamka1 Jun 5, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
85 changes: 85 additions & 0 deletions python/test_utils/filters_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -284,3 +284,88 @@ def init_edges_graph2(graph):
graph.edge(src, dst).add_constant_properties(props)

return graph


import tempfile
from raphtory.graphql import GraphServer
import json
import re

PORT = 1737


def create_test_graph(g):
g.add_node(
1,
"a",
{
"prop1": 60,
"prop2": 31.3,
"prop3": "abc123",
"prop4": True,
"prop5": [1, 2, 3],
},
"fire_nation"
)
g.add_node(
1,
"b",
{"prop1": 10, "prop2": 31.3, "prop3": "abc223", "prop4": False},
"fire_nation"
)
g.add_node(
1,
"c",
{
"prop1": 20,
"prop2": 31.3,
"prop3": "abc333",
"prop4": True,
"prop5": [5, 6, 7],
},
"water_tribe"
)
g.add_node(
1,
"d",
{"prop1": 30, "prop2": 31.3, "prop3": "abc444", "prop4": False},
"air_nomads"
)
g.add_edge(
2,
"a",
"d",
{
"eprop1": 60,
"eprop2": 0.4,
"eprop3": "xyz123",
"eprop4": True,
"eprop5": [1, 2, 3],
},
)
g.add_edge(
2,
"b",
"d",
{
"eprop1": 10,
"eprop2": 1.7,
"eprop3": "xyz123",
"eprop4": True,
"eprop5": [3, 4, 5],
},
)
g.add_edge(
2,
"c",
"d",
{
"eprop1": 30,
"eprop2": 6.4,
"eprop3": "xyz123",
"eprop4": False,
"eprop5": [10],
},
)
return g

Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import pytest

from raphtory import Graph, PersistentGraph

from utils import run_graphql_test


Expand Down Expand Up @@ -66,9 +64,7 @@ def create_test_graph(g):
)
return g


EVENT_GRAPH = create_test_graph(Graph())

PERSISTENT_GRAPH = create_test_graph(PersistentGraph())


Expand Down
Loading
Loading