Skip to content

Commit 4024e11

Browse files
Return actual boolean value
1 parent 54f37ab commit 4024e11

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

graphdatascience/query_runner/gds_arrow_client.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,10 @@
1818
class GdsArrowClient:
1919
@staticmethod
2020
def is_arrow_enabled(query_runner: QueryRunner) -> bool:
21-
arrow_server_running = (
22-
query_runner.call_procedure(endpoint="gds.debug.arrow", custom_error=False, yields=["running"])
23-
.squeeze()
24-
)
25-
return not not arrow_server_running
21+
arrow_server_running = query_runner.call_procedure(
22+
endpoint="gds.debug.arrow", custom_error=False, yields=["running", "listenAddress"]
23+
).squeeze()
24+
return not not arrow_server_running["running"]
2625

2726
@staticmethod
2827
def create(

0 commit comments

Comments
 (0)