question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Question: translation result cannot run on Janus Graph

See original GitHub issue

First thanks for your contributions for this useful tool.

I translated cypher with parameters to gremlin script using this tool.

Cypher: MATCH (arch:Architecture{_id: {archId}}) RETURN arch AS arch

Translated gremlin script: g.V().as('arch').hasLabel('Architecture').where(__.choose(__.constant(archId), __.constant(archId), __.constant(' cypher.null')).is(neq(' cypher.null')).as(' GENERATED1').select('arch').values('_id').where(eq(' GENERATED1'))).select('arch').project('arch').by(__.choose(neq(' cypher.null'), __.valueMap(true)))

This gremlin script can run successfully on Neo4j. But after I switched db to JanusGraph, I cannot get result and got this error. image

I commit the gremlin script using following code in JavaScript. client.submit(gremlinScript, params)

And I also created index for _id property. image

Could anyone help with this issue? And what is the best practice for this kind of requirements?

Issue Analytics

  • State:open
  • Created 4 years ago
  • Comments:15 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
sbespalovcommented, Nov 19, 2019

@dwitry regarding this comment is it possible to disable parameter validation in current v1.0.4 release? Could the Translator.ParametrizedFlavorBuilder.inlineParameters() be useful here?

0reactions
sbespalovcommented, Nov 19, 2019

Also, regarding the inlining parameters workaround, this make possible SQL injection vulnerability

Read more comments on GitHub >

github_iconTop Results From Across the Web

janusgraph/janusgraph - Gitter
We are using "storage.hostname" configuration to specify the cassandra hostname. It looks like janus graph is trying to connect to all 12 nodes...
Read more >
Janusgraph 0.3.2 + HBase 1.4.9 - Can't set graph.timestamps
I am running Janusgraph 0.3.2 in a docker container and trying to use an AWS EMR cluster running HBase 1.4.9 as the storage...
Read more >
Common Questions - JanusGraph Docs
In most cases it is sufficient to simply re-run the transaction. If locking exceptions are very frequent, try to analyze and remove the...
Read more >
JanusGraph Nuts and Bolts Part 1: Write Performance - Expero
Explore your tuning options for increasing JanusGraph write throughput ... but one immediate question comes to mind, should users run Janus ...
Read more >
Database Deep Dives: JanusGraph - IBM
I've been active in graph communities like JanusGraph and Apache TinkerPop to help grow those open source communities and to enable our ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found