Skip to content

Commit 365ec4d

Browse files
committed
Remove fastpath related code
1 parent b532f83 commit 365ec4d

File tree

8 files changed

+9
-904
lines changed

8 files changed

+9
-904
lines changed

examples/FastPathExamples.ipynb

Lines changed: 0 additions & 760 deletions
This file was deleted.

graphdatascience/graph_data_science.py

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
from .call_builder import IndirectCallBuilder
1212
from .endpoints import AlphaEndpoints, BetaEndpoints, DirectEndpoints
1313
from .error.uncallable_namespace import UncallableNamespace
14-
from .model.fastpath_runner import FastPathRunner
1514
from .model.kge_runner import KgeRunner
1615
from .query_runner.arrow_query_runner import ArrowQueryRunner
1716
from .query_runner.neo4j_query_runner import Neo4jQueryRunner
@@ -124,23 +123,6 @@ def alpha(self) -> AlphaEndpoints:
124123
def beta(self) -> BetaEndpoints:
125124
return BetaEndpoints(self._query_runner, "gds.beta", self._server_version)
126125

127-
@property
128-
def fastpath(self) -> FastPathRunner:
129-
if not isinstance(self._query_runner, ArrowQueryRunner):
130-
raise ValueError("Running FastPath requires GDS with the Arrow server enabled")
131-
if self._compute_cluster_ip is None:
132-
raise ValueError(
133-
"You must set a valid computer cluster ip with the method `set_compute_cluster_ip` to use this feature"
134-
)
135-
return FastPathRunner(
136-
self._query_runner,
137-
"gds.fastpath",
138-
self._server_version,
139-
self._compute_cluster_ip,
140-
self._encrypted_db_password,
141-
self._query_runner.uri,
142-
)
143-
144126
@property
145127
def kge(self) -> KgeRunner:
146128
if not isinstance(self._query_runner, ArrowQueryRunner):

graphdatascience/model/fastpath_runner.py

Lines changed: 0 additions & 115 deletions
This file was deleted.

graphdatascience/model/kge_runner.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ def _stream_results(self, user_name: str, model_name: str, job_id: str) -> DataF
137137
)
138138
res.raise_for_status()
139139

140-
res_file_name = f'res_{job_id}.json'
140+
res_file_name = f"res_{job_id}.json"
141141
with open(res_file_name, mode="wb+") as f:
142142
f.write(res.content)
143143

graphdatascience/query_runner/gds_arrow_client.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,12 @@ def __init__(
9494
if tls_root_certs:
9595
client_options["tls_root_certs"] = tls_root_certs
9696

97+
print("location:")
98+
print(location)
99+
print("client_options:")
100+
print(client_options)
101+
print("auth:")
102+
print(auth)
97103
self._flight_client = flight.FlightClient(location, **client_options)
98104

99105
def connection_info(self) -> Tuple[str, int]:
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
-----BEGIN RSA PUBLIC KEY-----
2-
MEgCQQDNfbk2/PGneqZO6Vx9VbPe6ZnQJ/F5kOOW07jGDU34NFfUI06Nw0HmwT2h
3-
c9s3nZTUUlAVi/aUCl3b4NcB8vThAgMBAAE=
2+
WRONGKEY
43
-----END RSA PUBLIC KEY-----

graphdatascience/tests/integration/test_graph_construct.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -558,10 +558,3 @@ def test_graph_alpha_construct_backward_compat_with_arrow(gds: GraphDataScience)
558558

559559
with pytest.warns(DeprecationWarning):
560560
gds.alpha.graph.construct("hello", nodes, relationships)
561-
562-
563-
@pytest.mark.compatible_with(min_inclusive=ServerVersion(2, 2, 0))
564-
def test_drop_list_warning_reproduction(gds: GraphDataScience) -> None:
565-
G, _ = gds.graph.project(GRAPH_NAME, {"Node": {"properties": ["x", "y"]}}, {"REL": {"properties": "relX"}})
566-
res = gds.graph.list()
567-
assert res["graphName"].tolist() == ["g"]

graphdatascience/tests/integration/test_graph_ops.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -854,7 +854,7 @@ def test_graph_relationships_stream_without_arrow(gds_without_arrow: GraphDataSc
854854

855855
@pytest.mark.compatible_with(min_inclusive=ServerVersion(2, 2, 0))
856856
def test_graph_relationships_stream_with_arrow(gds: GraphDataScience) -> None:
857-
G, _ = gds.graph.project(GRAPH_NAME, "*", ["REL_0", "REL2"])
857+
G, _ = gds.graph.project(GRAPH_NAME, "*", ["REL", "REL2"])
858858

859859
if gds.server_version() >= ServerVersion(2, 5, 0):
860860
result = gds.graph.relationships.stream(G, ["REL", "REL2"])

0 commit comments

Comments
 (0)