microsoft / spring-data-gremlin

We are in the process of deprecating Spring Data Gremlin. -- Provide generic annotation oriented programming form based on gremlin for graph database
Other
128 stars 76 forks source link

Unsupported Error: Gremlin op does not support by(traversal) #268

Closed gautamdivgi closed 3 years ago

gautamdivgi commented 4 years ago

I'm trying to run this query g.V().limit(100).dedup().as('node').project('id', 'label', 'properties', 'edges').by(.id()).by(.label()).by(.valueMap().by(.unfold())).by(.outE().project('id', 'from', 'to', 'label', 'properties').by(.id()).by(.select('node').id()).by(.inV().id()).by(.label()).by(.valueMap().by(__.unfold())).fold())

When running it I get this error ActivityId : 36e58a6f-b6d9-49e3-96b7-96a42ce7821e ExceptionType : GraphNotSupportedException ExceptionMessage : Unsupported Error: Gremlin op does not support by(traversal) Source : Microsoft.Azure.Cosmos.Gremlin.Core GremlinRequestId : 36e58a6f-b6d9-49e3-96b7-96a42ce7821e Context : graphcompute Scope : graphcmd-invoke GraphInterOpStatusCode : NotSupported HResult : 0x80131500

I'm using gremlinpython 3.4.6.

The docs seems to indicate that "by" is supported --> https://docs.microsoft.com/en-us/azure/cosmos-db/gremlin-compatibility.

Any guidance would be appreciated as to why this doesn't work.

jacko9et commented 4 years ago

Did this happen when using the spring-data-gremlin project?

gautamdivgi commented 3 years ago

ack - no. apologies. this happened when using the python libraries. I think the bytecode traversal is a limitation for CosmosDB. I'm closing this.