alibaba / alibaba/GraphScope

[BUG] Wcc failed to compile

Open
#4,609 9 comments 0 reactions 1 assignee Claimed by @zhanglei1949 View on GitHub
stale
Dominant language
C++
Stars
3.6k
Forks
468
Avg merge
29m
Merged PRs (30d)
1

Description

**Describe the bug**

Wcc failed to compile.

```
/home/hrz/mambaforge/envs/gs/lib/python3.11/site-packages/graphscope.runtime/include/grape/analytical_apps/wcc/wcc.h:60:22: error: ‘const grape::WCC, long unsigned int, grape::EmptyType, grape::EmptyType> >::fragment_t’ {aka ‘const class gs::ArrowFlattenedFragment, long unsigned int, grape::EmptyType, grape::EmptyType>’} has no member named ‘GetOutgoingInnerVertexAdjList’
60 | auto es = frag.GetOutgoingInnerVertexAdjList(v);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1plus: note: unrecognized command-line option ‘-Wno-unused-lambda-capture’ may have been intended to silence earlier diagnostics
cc1plus: note: unrecognized command-line option ‘-Wno-undef-prefix’ may have been intended to silence earlier diagnostics
```

**To Reproduce**
1. Start a local server session:
```python
import graphscope
graphscope.session(cluster_type="hosts")
```

2. Start another session and connect to the server:
```python
import graphscope
from graphscope.framework.loader import Loader
sess = graphscope.session(cluster_type="hosts", addr="127.0.0.1:38159", dangling_timeout_seconds=30000)
```

3. Import the graph from a csv:
```python
graph = sess.g(oid_type="string")
graph = graph.add_edges( Loader(
"/fast/hrz/osscout/redis_dump_blob.csv",
delimiter=",",
),
src_label="old_blob",
dst_label="new_blob")
```

4. Run wcc:
```
wcc_result = graphscope.wcc(graph)
```

**Expected behavior**
No compile error should occur.

**Screenshots**
Please refer to the [logs](https://github.com/user-attachments/files/20361362/gs.log).

**Environment (please complete the following information):**
- GraphScope version: v0.2.9
- OS: Ubuntu
- Version 24.04 LTS
- Kubernetes Version N/A

**Additional context**

Input: [input_head_20.csv](https://github.com/user-attachments/files/20361429/input_head_20.csv)
Conda environment: [environment.yml.txt](https://github.com/user-attachments/files/20361435/environment.yml.txt)

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.