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.

Drop() serializing into project step, causing GraphCompileException

See original GitHub issue

The following code await _g.V().Drop().ToArrayAsync(); throws a GraphCompileException for me.

Env: CosmosDB Emulator (v2.7.2.0). ExRam.Gremlinq.Providers.CosmosDb 8.0.0-preview-0109

The error message is Gremlin Query Compilation Error: Column reference R_0["id"] cannot be located in the raw records in the current execution pipeline. From a console logger, Gremlinq printet the following: Error executing Gremlin query V().drop().project('id', 'label', 'type', 'properties').by(id).by(label).by(__.constant('vertex')).by(__.properties().group().by(__.label()).by(__.project('id', 'label', 'value', 'properties').by(id).by(__.label()).by(__.value()).by(__.valueMap()).fold())):

I noticed that after the drop() step, a project() step is generated. I think this goes against the intentions of the gremlin spec, since drop() always returns an empty set (drop step) so there would be nothing to project.

I think this is the cause of the Column reference R_0["id"] cannot be located error, as id is the first column in the project() step and it is unable to find data to fit into that column.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
danielcwebercommented, Jan 22, 2020

Temporary workaround: Use _g.V().Local(__ => __.Drop()).ToArrayAsync() for the moment, even if it’s maybe a bit slower.

0reactions
mouaxiongcommented, Jan 28, 2020

Thank you. I just updated to that and seems to have fixed it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

No results found

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