From 79414e680c712ad3541aaf0ebc827d26418753a5 Mon Sep 17 00:00:00 2001 From: jimingquan Date: Tue, 29 Nov 2022 15:48:31 +0800 Subject: [PATCH] fix ic14 driver (#55) --- .../ldbcouncil/snb/impls/workloads/nebula/NebulaDb.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/nebula/src/main/java/org/ldbcouncil/snb/impls/workloads/nebula/NebulaDb.java b/nebula/src/main/java/org/ldbcouncil/snb/impls/workloads/nebula/NebulaDb.java index 89691c0a7..75c7819e1 100644 --- a/nebula/src/main/java/org/ldbcouncil/snb/impls/workloads/nebula/NebulaDb.java +++ b/nebula/src/main/java/org/ldbcouncil/snb/impls/workloads/nebula/NebulaDb.java @@ -422,10 +422,14 @@ public String getQueryString(NebulaDbConnectionState state, LdbcQuery14 operatio } @Override - public LdbcQuery14Result convertSingleResult(ResultSet.Record record) { + public LdbcQuery14Result convertSingleResult(ResultSet.Record record) throws UnsupportedEncodingException { List personIdsInPath = new ArrayList<>(); if (!record.get(0).isNull()) { - // TODO: personIdsInPath = record.get(0).asList((e) -> e.asLong()); + ArrayList values = record.get(0).asList(); + for (ValueWrapper val : values) { + Long pid = Long.parseLong(val.asString().substring(NebulaID.ID_PREFIX_SIZE)); + personIdsInPath.add(pid); + } } double pathWight = record.get(1).asDouble(); return new LdbcQuery14Result(