Skip to content

Commit

Permalink
fix ic14 driver (#55)
Browse files Browse the repository at this point in the history
  • Loading branch information
nevermore3 authored Nov 29, 2022
1 parent 2720d09 commit 79414e6
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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<Long> personIdsInPath = new ArrayList<>();
if (!record.get(0).isNull()) {
// TODO: personIdsInPath = record.get(0).asList((e) -> e.asLong());
ArrayList<ValueWrapper> 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(
Expand Down

0 comments on commit 79414e6

Please sign in to comment.