From 50db1810336567610ace3d1d18567b44d5e8b22b Mon Sep 17 00:00:00 2001 From: lipanpan03 <41904587+lipanpan03@users.noreply.github.com> Date: Mon, 8 Apr 2024 18:05:11 +0800 Subject: [PATCH] fix "MATCH (n) RETURN COUNT(n)" with 0 (#15) --- .../java/com/antgroup/tugraph/TuGraphDbHaRpcClientTestCase.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rpc-client-test/src/main/java/com/antgroup/tugraph/TuGraphDbHaRpcClientTestCase.java b/rpc-client-test/src/main/java/com/antgroup/tugraph/TuGraphDbHaRpcClientTestCase.java index 5175606..8bef0ad 100644 --- a/rpc-client-test/src/main/java/com/antgroup/tugraph/TuGraphDbHaRpcClientTestCase.java +++ b/rpc-client-test/src/main/java/com/antgroup/tugraph/TuGraphDbHaRpcClientTestCase.java @@ -256,7 +256,7 @@ public static void haClientTest() throws Exception { log.info(getRestPortByKey("MASTER", client)); - String res1 = client.callCypher("MATCH (n) RETURN count(n)", "default", 10); + String res1 = client.callCypher("MATCH (n) RETURN COUNT(n)", "default", 10); JSONArray jsonArray = JSONArray.parseArray(res1); assert (jsonArray.size() == 1); JSONObject jsonObject = jsonArray.getJSONObject(0);