[ https://issues.apache.org/jira/browse/TINKERPOP-3165?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17956649#comment-17956649 ]
Stephen Mallette commented on TINKERPOP-3165: --------------------------------------------- at DataStax we had "g" for OLTP and "a" for OLAP which was like "analytics". from the user perspective with drivers they can technically use aliases to retain "g" on their side and hide the "a" a little bit. as i mentioned earlier, If you'd like to propose changing the grammar though i think it's fine but it's not exactly straightforward to do with anything other than just referencing a {{GraphComputer}} class name or maybe just {{withComputer()}} with no args which would default to the configured computer for the graph. if you just need that, then that might be fine, but it's still not quite the experience you were originally looking for. > `withComputer()` is not defined in grammar > ------------------------------------------ > > Key: TINKERPOP-3165 > URL: https://issues.apache.org/jira/browse/TINKERPOP-3165 > Project: TinkerPop > Issue Type: Bug > Components: process > Affects Versions: 3.7.3 > Reporter: Valentyn Kahamlyk > Priority: Major > > > it is impossible to use olap with string requests because `withComputer` is > not supported > {code:java} > final Client.ClusteredClient client = > Cluster.build(<IP>).port(8182).create().connect(); > final ResultSet result = client.submit( > "g.withComputer().V().hasLabel(\"Person\").count().next()", > "g"); > System.out.println("Result: " + result.one()); > {code} > result error > {code:java} > Failed to interpret Gremlin query: Query parsing failed at line 1, character > position at 2, error message : no viable alternative at input > 'g.withComputer'{code} > -- This message was sent by Atlassian Jira (v8.20.10#820010)