Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unsupported SetIncludingPropertiesFromMapItem #168

Closed
mad opened this issue Sep 5, 2018 · 1 comment
Closed

Unsupported SetIncludingPropertiesFromMapItem #168

mad opened this issue Sep 5, 2018 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@mad
Copy link
Contributor

mad commented Sep 5, 2018

Hello

I am catch exception:

java.lang.UnsupportedOperationException: Unsupported set clause: SetIncludingPropertiesFromMapItem(Variable(n),Parameter(properties,Any))
	at org.opencypher.gremlin.translation.context.WalkerContext.unsupported(WalkerContext.scala:72)
	at org.opencypher.gremlin.translation.walker.SetWalker$$anonfun$walkSetClause$1.apply(SetWalker.scala:66)
	at org.opencypher.gremlin.translation.walker.SetWalker$$anonfun$walkSetClause$1.apply(SetWalker.scala:53)
	at scala.collection.immutable.List.foreach(List.scala:381)
	at org.opencypher.gremlin.translation.walker.SetWalker.walkSetClause(SetWalker.scala:53)
	at org.opencypher.gremlin.translation.walker.SetWalker.walkClause(SetWalker.scala:42)
	at org.opencypher.gremlin.translation.walker.SetWalker$.walkClause(SetWalker.scala:33)

Query like that

MATCH (n) WHERE id(n) = {id}
SET n += {properties} 
RETURN n

And parameters like that

id=40964288, 
properties={key=value, ...}
@dwitry
Copy link
Contributor

dwitry commented Sep 6, 2018

Hello,

can confirm, when using a map to set multiple properties on element, currently it only works with inlined values and not parameters.

Will fix, thanks for reporting.

@dwitry dwitry added the bug Something isn't working label Sep 6, 2018
@dwitry dwitry self-assigned this Sep 6, 2018
dwitry added a commit to dwitry/cypher-for-gremlin that referenced this issue Sep 10, 2018
Resolves: opencypher#168

Signed-off-by: Dwitry dwitry@users.noreply.github.com
dwitry added a commit that referenced this issue Sep 10, 2018
Resolves: #168

Signed-off-by: Dwitry dwitry@users.noreply.github.com
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants