Skip to content

Commit 5bda540

Browse files
authored
Merge pull request #394 from DarthMax/add_arrow_debug_proc_endpoint
Add arrow debug endpoint
2 parents b3a2b20 + 5a75ea0 commit 5bda540

File tree

3 files changed

+16
-0
lines changed

3 files changed

+16
-0
lines changed

doc/sphinx/source/misc.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,10 @@ These all assume that an object of :class:`.GraphDataScience` is available as `g
3737
3838
Returns details about the status of the system
3939

40+
.. py:function:: gds.debug.arrow() -> Series[Any]
41+
42+
Returns details about the status of the GDS Arrow Flight server
43+
4044
.. py:function:: gds.util.asNode(node_id: int) -> Any
4145
4246
Return a node object for the given node id or null if none exists.

graphdatascience/system/system_endpoints.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,12 @@ def sysInfo(self) -> "Series[Any]":
1515

1616
return self._query_runner.run_query(query).squeeze() # type: ignore
1717

18+
def arrow(self) -> "Series[Any]":
19+
self._namespace += ".arrow"
20+
query = f"CALL {self._namespace}()"
21+
22+
return self._query_runner.run_query(query).squeeze() # type: ignore
23+
1824

1925
class DirectSystemEndpoints(CallerBase):
2026
@client_only_endpoint("gds")

graphdatascience/tests/integration/test_system_ops.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,12 @@ def test_sysInfo(gds: GraphDataScience) -> None:
3030
assert "gdsVersion" in (list(result["key"]))
3131

3232

33+
def test_debug_arrow(gds: GraphDataScience) -> None:
34+
result = gds.debug.arrow()
35+
36+
assert "listenAddress" in (result.keys())
37+
38+
3339
@pytest.mark.enterprise
3440
def test_is_licensed(gds: GraphDataScience) -> None:
3541
assert gds.is_licensed()

0 commit comments

Comments
 (0)