[BUG] Can not load vertices from parquet

オープン
#4,647 コメント 3 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
45/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
静か
技術スタック
kubernetes, python

調査の方向性

提供されている Kubernetes および Python のログから始め、続いて Parquet、hostPath、S3 入力に対する session()、add_vertices()、add_edges()、Loader のエントリポイントを追跡します。ドキュメントに記載された GraphScope、vineyard、Kubernetes のバージョンで失敗を再現します。マウントされた Parquet ファイルと S3 の例から、vineyard またはスキーマのエラーなしに頂点とエッジが正常に読み込まれれば完了です。

索引モデルが issue の本文から書いたものです。

説明

stale

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")

k8s.logs.txt
python.logs.txt

主要言語
C++
スター
3.6k
フォーク
470
PR マージ指標
30日以内にマージされた PR はありません

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

alibaba/GraphScope のほかの issue

alibaba/GraphScope の issue をすべて見る

似ている issue

C++ の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。