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

importing failed #129

Closed
cooper-lzy opened this issue Apr 22, 2021 · 1 comment
Closed

importing failed #129

cooper-lzy opened this issue Apr 22, 2021 · 1 comment
Labels
affects/none PR/issue: this bug affects none version. process/done Process of bug severity/minor Severity of bug type/bug Type: something is unexpected

Comments

@cooper-lzy
Copy link

If the: label column is missing from the CSV file, the import cannot succeed, for example:

:VID(string) player.age:int player.name:string
player100 22 lzy
player101 24 zy
player102 25 gc
player103 26 jh

report errors:

vid is not niljie: %!(EXTRA string=:VID, *config.VID=&{0xc00001b040 <nil> <nil>})panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x536e27]

Before adding a column: label to import successfully.

The configuration file is as follows:

version: v2
description: example
removeTempFiles: false
clientSettings:
  retry: 3
  concurrency: 2 # number of graph clients
  channelBufferSize: 1
  space: basketballplayer
  connection:
    user: root
    password: nebula
    address: 192.168.153.10:9669
  postStart:
    commands: |
      UPDATE CONFIGS storage:wal_ttl=3600;
      UPDATE CONFIGS storage:rocksdb_column_family_options = { disable_auto_compactions = true };
      DROP SPACE IF EXISTS basketballplayer;
      CREATE SPACE IF NOT EXISTS basketballplayer(partition_num=5, replica_factor=1, vid_type=FIXED_STRING(20));
      USE basketballplayer;
      CREATE TAG player(name string, age int);
      CREATE TAG team(name string);
      CREATE EDGE follow(degree int);
      CREATE EDGE serve(start_year int, end_year int);
    afterPeriod: 8s
  preStop:
    commands: |
      UPDATE CONFIGS storage:rocksdb_column_family_options = { disable_auto_compactions = false };
      UPDATE CONFIGS storage:wal_ttl=86400;
logPath: ./err/test.log
files:
  - path: ./basketball.csv
    failDataPath: ./err/course.csv
    batchSize: 2
    inOrder: true
    type: csv
    csv:
      withHeader: true
      withLabel: false
    schema:
      type: vertex
@Sophie-Xie Sophie-Xie added the type/bug Type: something is unexpected label Nov 29, 2022
@HarrisChu HarrisChu added affects/none PR/issue: this bug affects none version. severity/none Severity of bug severity/minor Severity of bug labels Dec 1, 2022
@github-actions github-actions bot removed the severity/none Severity of bug label Dec 7, 2022
@veezhang
Copy link
Contributor

veezhang commented Dec 7, 2022

@cooper-lzy Thanks. It is not panic now.

@veezhang veezhang closed this as completed Dec 7, 2022
@github-actions github-actions bot added the process/fixed Process of bug label Dec 7, 2022
@HarrisChu HarrisChu added the process/done Process of bug label Jan 5, 2023
@github-actions github-actions bot removed the process/fixed Process of bug label Jan 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
affects/none PR/issue: this bug affects none version. process/done Process of bug severity/minor Severity of bug type/bug Type: something is unexpected
Projects
None yet
Development

No branches or pull requests

4 participants