From f2e3253bd945b72c0ccd13f3231e25d75fa2de93 Mon Sep 17 00:00:00 2001 From: lipanpan03 <656461146@qq.com> Date: Thu, 6 Jun 2024 17:11:40 +0800 Subject: [PATCH] fix cypher result --- .../java/com/antgroup/tugraph/TuGraphDbRpcClientUtil.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rpc-client-test/src/main/java/com/antgroup/tugraph/TuGraphDbRpcClientUtil.java b/rpc-client-test/src/main/java/com/antgroup/tugraph/TuGraphDbRpcClientUtil.java index b9b3557..1975de2 100644 --- a/rpc-client-test/src/main/java/com/antgroup/tugraph/TuGraphDbRpcClientUtil.java +++ b/rpc-client-test/src/main/java/com/antgroup/tugraph/TuGraphDbRpcClientUtil.java @@ -126,8 +126,8 @@ static void importDataFromContent(Logger log, TuGraphDbRpcClient client, boolean JSONObject jsonObject = jsonArray.getJSONObject(0); assert (jsonObject.containsKey("COUNT(n)")); assert (jsonObject.getIntValue("COUNT(n)") == 13); - res = client.callCypher("MATCH (n) RETURN n,n.name limit 3", "default", 10, false); - log.info("MATCH (n) RETURN COUNT(n) : " + res); + res = client.callCypher("MATCH (n) RETURN n,n.name LIMIT 3", "default", 10, false); + log.info("MATCH (n) RETURN n,n.name LIMIT 3 : " + res); } static void importSchemaFromFile(Logger log, TuGraphDbRpcClient client, boolean isHa) throws Exception {