[BUG] Can not load vertices from parquet
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 45/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Quiet
- Tech stack
- kubernetes, python
- Domain
- cloud, data-engineering, distributed-systems
Research direction
Start with the provided Kubernetes and Python logs, then trace the session(), add_vertices(), add_edges(), and Loader entry points for Parquet, hostPath, and S3 inputs. Reproduce the failure with the documented GraphScope, vineyard, and Kubernetes versions. Done means vertices and edges load successfully from the mounted Parquet files and the S3 example without the vineyard or schema errors.
Written by the indexing model from the issue text.
Description
Describe the bug
When loading a graph from local Parquet files mounted via hostPath volume into a K8s session, GraphScope fails with Object not exists in vineyard followed by Empty table list cannot be used for normalizing schema. The same setup works correctly with CSV files.
To Reproduce
- Set up a K8s cluster (tested with K3s on single node Ubuntu)
- Mount a local directory containing Parquet files as a hostPath volume
- Create a GraphScope session with k8s_volumes pointing to the mount
- Call add_vertices with a file:/// path to a .parquet file
import graphscope as gs
with gs.session(k8s_volumes={
"data": {
"type": "hostPath",
"field": {
"path": "/path/to/host/dataset",
"type": "Directory"
},
"mounts": {
"mountPath": "/dataset"
}
}
}, k8s_image_tag='0.30.0', k8s_namespace='gs') as session:
graph = session.g()
graph = graph.add_vertices(
'file:///dataset/vertices.parquet',
label='person',
properties=['firstName', 'lastName', 'gender'],
vid_field='id'
)
graph = graph.add_edges(
'file:///dataset/edges.parquet',
src_label='person',
dst_label='person'
)
Expected behavior
Graph should load from Parquet files the same way it loads from CSV files.
Environment
- GraphScope version: v0.30.0
- vineyard version: v0.24.2
- OS: Ubuntu 24.04
- Kubernetes: K3s v1.24.9+k3s1(single node)
- Python 3.10.20
- Graphscope python library: v0.29.0
Additional context
I faced the the same issue if load dataset from S3:
import graphscope as gs
from graphscope.framework.loader import Loader
import argparse
parser = argparse.ArgumentParser(description="Process command-line arguments.")
parser.add_argument("--s3-key", type=str)
parser.add_argument("--s3-secret", type=str)
args = parser.parse_args()
# Doesn't work
with gs.session(k8s_namespace='gs', k8s_image_tag='0.31.0') as session:
print(session.info)
graph = session.g()
print("Graph loaded")
graph = graph.add_vertices(Loader('s3://bucket-name/csv/vertices.csv', delimiter='|', key=args.s3_key, secret=args.s3_secret, endpoint_url='https://custom-endpoint.ru'), label='person')
print("Vertices loaded")
graph = graph.add_edges(Loader('s3://bucket-name/csv/edges.csv', delimiter='|', key=args.s3_key, secret=args.s3_secret, endpoint_url='https://custom-endpoint.ru'), src_label='person', dst_label='person')
print("Edges loaded")
- Dominant language
- C++
- Stars
- 3.6k
- Forks
- 470
- PR merge metrics
- No merged PRs in 30d
Getting set up
Starts the project's dev container in your browser, under your own GitHub account.
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from alibaba/GraphScope
-
[BUG] Failed archive extraction deletes the dataset cachePossibly taken @dajiaohuang claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
alibaba/GraphScope#4674 ·
-
stale
Difficulty 5/5 Over a week Newbie friendliness 25/100
alibaba/GraphScope#4655 · 2 comments ·
-
stale
Difficulty 5/5 Over a week Newbie friendliness 38/100
alibaba/GraphScope#4654 · 2 comments ·
-
stale
Difficulty 4/5 3-5 days Newbie friendliness 30/100
alibaba/GraphScope#4639 · 2 comments ·
-
stale
Difficulty 2/5 1-3 hours Newbie friendliness 45/100
alibaba/GraphScope#4637 · 1 comment ·
All issues in alibaba/GraphScope
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
macOS: a double-click on a notarized altairsim is refused, and the docs give only the offline casePossibly taken @anhaoXie claimed this today. Opendocumentation
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
mutationpp/Mutationpp#337 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
bulletphysics/bullet3#4819 ·
-
[YSQL] Local-node initdb reads postgres.bki, but YB clusters bootstrap only from yb_postgres.bkiOpenarea/ysql kind/enhancement priority/low status/awaiting-triage
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
yugabyte/yugabyte-db#35763 ·
Maintainers usually reply within 1 day