Hi Team,
We have a DSE Graph DB 5.1.9. Currently using Java driver 1.7.0. Right now we trying to upgrade our applications to the latest driver and found that the OSS driver supports graph queries. I tried using OSS 4.8.0 version and getting
Do you have any examples using ?
com.datastax.oss.driver.api.core.servererrors.InvalidQueryException: No such property: g for class: Script518 at com.datastax.oss.driver.api.core.servererrors.InvalidQueryException.copy(InvalidQueryException.java:48) ~[java-driver-core-4.8.0.jar:na] at com.datastax.oss.driver.internal.core.util.concurrent.CompletableFutures.getUninterruptibly(CompletableFutures.java:149) ~[java-driver-core-4.8.0.jar:na] at com.datastax.dse.driver.internal.core.graph.GraphRequestSyncProcessor.process(GraphRequestSyncProcessor.java:60) ~[java-driver-core-4.8.0.jar:na] at com.datastax.dse.driver.internal.core.graph.GraphRequestSyncProcessor.process(GraphRequestSyncProcessor.java:33) ~[java-driver-core-4.8.0.jar:na]
Here is my config
driver.contactPoints=hostname driver.port=9042 driver.localdc=dc1 driver.username=test driver.password=test driver.keyspace=graphname
Driver config class
Query class
public String getMacc() { CqlSession session =dseConfiguration.getSession(); ScriptGraphStatement statement = ScriptGraphStatement.builder("g.V('{macAddressCKEY=00:00:00:38:d8:cd:8cd, ~label=MAC, PKEY=8cd}')").build(); GraphResultSet result = session.execute(statement); for (GraphNode node : result) { System.out.println(node.asVertex()); } return null; }