alibaba / alibaba/GraphScope

[BUG] GIE gremlin subgraph with edge property filter error

Open
#2,503 2 comments 0 reactions 1 assignee Claimed by @shirly121 View on GitHub
bug
Dominant language
C++
Stars
3.6k
Forks
468
Avg merge
29m
Merged PRs (30d)
1

Description

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

**To Reproduce**
Steps to reproduce the behavior:
```
g.V().has('name',within('zhangsan')).as('a').in('0..3','link').has('ratio', gte('0.4')).has('ratio',lte('0.9')).with('RESULT_OPT', 'ALL_V').with('PATH_OPT', 'SIMPLE').dedup()

```
it's running successful

```
g.V().has('name',within('zhangsan')).as('a').in('0..3','link').or(__.has('ratio', gte('0.4')),__.has('ratio',lte('0.9'))).with('RESULT_OPT', 'ALL_V').with('PATH_OPT', 'SIMPLE').dedup()

```
error log
```
querySubgraph: g.V().has('name',within('zhangsan')).as('a').in('0..3','link').or(__.has('ratio', gte('0.4')),__.has('ratio',lte('0.9'))).with('RESULT_OPT', 'ALL_V').with('PATH_OPT', 'SIMPLE').dedup()
2023-03-10 09:14:34,007 [INFO][op_executor:455]: execute gremlin query
2023-03-10 09:14:34,016 [INFO][op_executor:465]: put 5ed7dc48915c4919bf989b36caea6aab, client
2023-03-10 09:14:34,327 [ERROR][rpc:188]: Runstep failed with code: INTERACTIVE_ENGINE_INTERNAL_ERROR, message: Error occurred during RunStep, The traceback is: Traceback (most recent call last):
File "/root/anaconda3/lib/python3.9/site-packages/gscoordinator/coordinator.py", line 315, in _RunStep
head, bodies = self._operation_executor.run_on_interactive_engine(
File "/root/anaconda3/lib/python3.9/site-packages/gscoordinator/monitor.py", line 210, in runOnInteractiveEngineWarp
res = func(instance, dag_def)
File "/root/anaconda3/lib/python3.9/site-packages/gscoordinator/op_executor.py", line 444, in run_on_interactive_engine
op_result = self._fetch_gremlin_result(op)
File "/root/anaconda3/lib/python3.9/site-packages/gscoordinator/op_executor.py", line 476, in _fetch_gremlin_result
rlt = result_set.all().result()
File "/root/anaconda3/lib/python3.9/concurrent/futures/_base.py", line 439, in result
return self.__get_result()
File "/root/anaconda3/lib/python3.9/concurrent/futures/_base.py", line 391, in __get_result
raise self._exception
File "/root/anaconda3/lib/python3.9/site-packages/gremlin_python/driver/resultset.py", line 90, in cb
f.result()
File "/root/anaconda3/lib/python3.9/concurrent/futures/_base.py", line 439, in result
return self.__get_result()
File "/root/anaconda3/lib/python3.9/concurrent/futures/_base.py", line 391, in __get_result
raise self._exception
File "/root/anaconda3/lib/python3.9/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
File "/root/anaconda3/lib/python3.9/site-packages/gremlin_python/driver/connection.py", line 83, in _receive
status_code = self._protocol.data_received(data, self._results)
File "/root/anaconda3/lib/python3.9/site-packages/gremlin_python/driver/protocol.py", line 138, in data_received
raise GremlinServerError(message['status'])
gremlin_python.driver.protocol.GremlinServerError: 597: query [g.V().has('name',within('zhangsan')).as('a').in('0..3','link').or(__.has('ratio', gte('0.4')),__.has('ratio',lte('0.9'))).with('RESULT_OPT', 'ALL_V').with('PATH_OPT', 'SIMPLE').dedup()] is invalid, check the grammar in GremlinGS.g4, token: [@28,63:64='or',<49>,1:63].
```

**Environment (please complete the following information):**
- GraphScope version: 0.19.0
- OS: linux
- Version [e.g. 10.15]
- Kubernetes Version [e.g., 1.19]

**Additional context**
Add any other context about the problem here.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.