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

update the format of the config yaml of the nba dataset to the latest… #4404

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
180 changes: 180 additions & 0 deletions tests/data/nba/config_for_importer.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,180 @@
version: v3
description: nba_example
removeTempFiles: false
logPath: ./err/test.log
clientSettings:
retry: 3
concurrency: 1
channelBufferSize: 128
space: nba
connection:
user: root
password: nebula
address: 127.0.0.1:9669
files:
- path: ./null.csv
failDataPath: ./err/nullerr.csv
batchSize: 128
inOrder: false
type: csv
csv:
withHeader: true
withLabel: false
delimiter: ","
schema:
type: vertex
vertex:
vid:
index: 0
type: string
tags:
- name: player
props:
- name: name
type: string
index: 1
- name: age
type: int
index: 2
- path: ./player.csv
failDataPath: ./err/playererr.csv
batchSize: 128
inOrder: false
type: csv
csv:
withHeader: true
withLabel: false
delimiter: ","
schema:
type: vertex
vertex:
vid:
index: 0
type: string
tags:
- name: player
props:
- name: name
type: string
index: 1
- name: age
type: int
index: 2
- path: ./bachelor.csv
failDataPath: ./err/bachelorerr.csv
batchSize: 128
inOrder: false
type: csv
csv:
withHeader: true
withLabel: false
delimiter: ","
schema:
type: vertex
vertex:
vid:
index: 0
type: string
tags:
- name: bachelor
props:
- name: name
type: string
index: 1
- name: speciality
type: string
index: 2
- path: ./team.csv
failDataPath: ./err/teamerr.csv
batchSize: 128
inOder: false
type: csv
csv:
withHeader: true
withLabel: false
schema:
type: vertex
vertex:
vid:
index: 0
type: string
tags:
- name: team
props:
- name: name
type: string
index: 1
- path: ./like.csv
failDataPath: ./err/likeerr.csv
batchSize: 128
inOrder: false
type: csv
csv:
withHeader: true
withLabel: false
schema:
type: edge
edge:
name: like
srcVID:
type: string
index: 0
dstVID:
type: string
index: 1
props:
- name: likeness
type: int
index: 2
- path: ./serve.csv
failDataPath: ./err/serveerr.csv
batchSize: 128
inOrder: false
type: csv
csv:
withHeader: true
withLabel: false
schema:
type: edge
edge:
name: serve
srcVID:
type: string
index: 0
dstVID:
type: string
index: 1
rank:
index: 2
props:
- name: start_year
type: int
index: 3
- name: end_year
type: int
index: 4
- path: ./teammate.csv
failDataPath: ./err/teammateerr.csv
batchSize: 128
inOrder: false
type: csv
csv:
withHeader: true
withLabel: false
schema:
type: edge
edge:
name: teammate
srcVID:
type: string
index: 0
dstVID:
type: string
index: 1
props:
- name: start_year
type: int
index: 2
- name: end_year
type: int
index: 3
2 changes: 2 additions & 0 deletions tests/data/nba/like.csv
Original file line number Diff line number Diff line change
Expand Up @@ -81,3 +81,5 @@ Paul George,Russell Westbrook,95
Grant Hill,Tracy McGrady,90
Shaquille O'Neal,JaVale McGee,100
Shaquille O'Neal,Tim Duncan,80
Ming Xiao,Hong Xiao,90
Hong Xiao,Ming Xiao,80
2 changes: 2 additions & 0 deletions tests/data/nba/player.csv
Original file line number Diff line number Diff line change
Expand Up @@ -51,3 +51,5 @@ Grant Hill,Grant Hill,46
Shaquille O'Neal,Shaquille O'Neal,47
JaVale McGee,JaVale McGee,31
Dwight Howard,Dwight Howard,33
Ming Xiao,Ming Xiao,99
Hong Xiao,Hong Xiao,99
2 changes: 2 additions & 0 deletions tests/data/nba/serve.csv
Original file line number Diff line number Diff line change
Expand Up @@ -151,3 +151,5 @@ Dwight Howard,Rockets,0,2013,2016
Dwight Howard,Hawks,0,2016,2017
Dwight Howard,Hornets,0,2017,2018
Dwight Howard,Wizards,0,2018,2019
Ming Xiao,Ming,0,2002,2016
Hong Xiao,Ming,0,2002,2016
1 change: 1 addition & 0 deletions tests/data/nba/team.csv
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,4 @@ Celtics,Celtics
76ers,76ers
Trail Blazers,Trail Blazers
Bulls,Bulls
Ming,Ming
2 changes: 2 additions & 0 deletions tests/data/nba/teammate.csv
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,5 @@ Tim Duncan,LaMarcus Aldridge,2015,2016
Tim Duncan,Danny Green,2010,2016
Manu Ginobili,Tim Duncan,2002,2016
Manu Ginobili,Tony Parker,2002,2016
Ming Xiao,Hong Xiao,2002,2016
Hong Xiao,Ming Xiao,2002,2016
2 changes: 1 addition & 1 deletion tests/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ pytest-metadata==1.8.0
pytest-drop-dup-tests==0.3.0
pytest-bdd==4.0.2
pytest-yapf3==0.5.1
filelock==3.0.12
filelock==3.4.1
ply==3.10
pyyaml==5.4
fastcov==1.13
Expand Down