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

[BUG] Unexpected Results from Union Query in GIE #4385

Open
BingqingLyu opened this issue Dec 25, 2024 · 0 comments
Open

[BUG] Unexpected Results from Union Query in GIE #4385

BingqingLyu opened this issue Dec 25, 2024 · 0 comments
Assignees

Comments

@BingqingLyu
Copy link
Collaborator

BingqingLyu commented Dec 25, 2024

Describe the bug
A clear and concise description of what the bug is.

Run the following Gremlin queries on the LDBC graph:

gremlin>  g.V().hasLabel("PERSON").has("id", 1816).union(outE("LIKES").limit(10).as('a').inV().as('b').select('a','b').by(elementMap()), outE("KNOWS").limit(10).as('c').inV().as('d').select('c','d').by(elementMap()))
java.lang.NullPointerException
Type ':help' or ':h' for help.
Display stack trace? [yN]

and the error in compiler is as follows:

java.lang.NullPointerException: null
        at com.alibaba.graphscope.common.exception.FrontendException.getMessage(FrontendException.java:68)
        at com.alibaba.graphscope.gremlin.resultx.GremlinResultProcessor.request(GremlinResultProcessor.java:112)
        at com.alibaba.graphscope.gremlin.plugin.processor.LifeCycleSupplier.lambda$get$2(LifeCycleSupplier.java:125)
        at org.apache.tinkerpop.gremlin.groovy.engine.GremlinExecutor.lambda$eval$0(GremlinExecutor.java:283)
        at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
        at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
        at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
        at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
        at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
        at java.base/java.lang.Thread.run(Thread.java:829)
gremlin>  g.V().hasLabel("PERSON").has("id", 1816).union(outE("LIKES").limit(10).as('a').inV().as('b').select('a','b').by(valueMap("creationDate")), outE("KNOWS").limit(10).as('c').inV().as('d').select('c','d').by(valueMap("creationDate")))
==>{}
==>{}
==>{}
==>{}
==>{}
==>{}
==>{}
==>{}
==>{}
==>{}

There appears to be a bug in the compiler's result parsing phase, as the backend returns the expected results but they are not being processed correctly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants