-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add working directory to handle the data in different directories (#184)
* add working directory to handle the data in different directories * update README; add testing example Co-authored-by: Yichen Wang <18348405+Aiee@users.noreply.github.com>
- Loading branch information
Showing
5 changed files
with
67 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
x101,Math,3,No5 | ||
y102,English,6,No11 | ||
"z103",Chinese,1,No1 | ||
0test,Test,2,No2 | ||
00test,Test2,4,No3 | ||
"000test",中国( ),5,No10 | ||
"0000test",中国( ),7,No10 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
version: v2 | ||
description: example | ||
removeTempFiles: false | ||
clientSettings: | ||
retry: 3 | ||
concurrency: 2 # number of graph clients | ||
channelBufferSize: 1 | ||
space: importer_test_working_dir | ||
connection: | ||
user: root | ||
password: nebula | ||
address: graphd1:9669,graphd2:9669 | ||
postStart: | ||
commands: | | ||
DROP SPACE IF EXISTS importer_test_working_dir; | ||
CREATE SPACE IF NOT EXISTS importer_test_working_dir(partition_num=1, replica_factor=1, vid_type=FIXED_STRING(10)); | ||
USE importer_test_working_dir; | ||
CREATE TAG course(name string, credits int); | ||
afterPeriod: 8s | ||
workingDir: ./data/ | ||
logPath: ./err/test.log | ||
files: | ||
- path: ./course.csv | ||
failDataPath: ./err/course.csv | ||
batchSize: 2 | ||
inOrder: true | ||
type: csv | ||
csv: | ||
withHeader: false | ||
withLabel: false | ||
schema: | ||
type: vertex | ||
vertex: | ||
tags: | ||
- name: course | ||
props: | ||
- name: name | ||
type: string | ||
- name: credits | ||
type: int | ||
- name: building | ||
props: | ||
- name: name | ||
type: string |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters