-
Notifications
You must be signed in to change notification settings - Fork 50
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
inject/where/choose combination causes ClassCastException #415
Comments
Here's a simple test case that currently fails:
|
Some feedback, |
FWIW, for us this case is specifically to address the fact that a "union" step cannot start a traversal. For example:
So at least in that case, the inject is completely unused. I'm not sure how common that is. |
@allenhadden can you please test your more complex query? I added a bunch of |
@pietermartin Awesome - your fix for inject along with the fix for #416 does resolve the more complex query! Thanks! One thing I noticed about the fix is that there are some other places that do the same sort that you fixed. Does it make sense to do something like this? Happy to do a PR if you'd like.
|
Thanks for this but that and the test cases. However that The fix is more in I removed that |
The following query causes a ClassCastException:
Note that while this gremlin is a little nonsensical, it represents a reduction of a much more complicated gremlin which also fails.
The exception trace is:
FWIW, this seems to work around the problem:
The text was updated successfully, but these errors were encountered: