Skip to content

Commit 338a22c

Browse files
committed
Remove fastpath related code
1 parent 8c56580 commit 338a22c

File tree

8 files changed

+3
-914
lines changed

8 files changed

+3
-914
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
@@ -125,23 +124,6 @@ def alpha(self) -> AlphaEndpoints:
125124
def beta(self) -> BetaEndpoints:
126125
return BetaEndpoints(self._query_runner, "gds.beta", self._server_version)
127126

128-
@property
129-
def fastpath(self) -> FastPathRunner:
130-
if not isinstance(self._query_runner, ArrowQueryRunner):
131-
raise ValueError("Running FastPath requires GDS with the Arrow server enabled")
132-
if self._compute_cluster_ip is None:
133-
raise ValueError(
134-
"You must set a valid computer cluster ip with the method `set_compute_cluster_ip` to use this feature"
135-
)
136-
return FastPathRunner(
137-
self._query_runner,
138-
"gds.fastpath",
139-
self._server_version,
140-
self._compute_cluster_ip,
141-
self._encrypted_db_password,
142-
self._query_runner.uri,
143-
)
144-
145127
@property
146128
def kge(self) -> KgeRunner:
147129
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: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -92,12 +92,6 @@ def __init__(
9292
if tls_root_certs:
9393
client_options["tls_root_certs"] = tls_root_certs
9494

95-
print("location:")
96-
print(location)
97-
print("client_options:")
98-
print(client_options)
99-
print("auth:")
100-
print(auth)
10195
self._flight_client = flight.FlightClient(location, **client_options)
10296

10397
def connection_info(self) -> Tuple[str, int]:
@@ -134,10 +128,6 @@ def get_property(
134128
}
135129

136130
ticket = flight.Ticket(json.dumps(payload).encode("utf-8"))
137-
print("ticket:")
138-
print(ticket)
139-
print("_flight_client")
140-
print(self._flight_client)
141131
get = self._flight_client.do_get(ticket)
142132
arrow_table = get.read_all()
143133

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)