nebula-importer icon indicating copy to clipboard operation
nebula-importer copied to clipboard

sequence number of the column in the CSV file doesn't work

Open porscheme opened this issue 2 years ago • 3 comments

We are trying to create two edge between two vertices using importer; see the data file at the end. Can the CSV file column be reversed to create two edges?

  - path: ./studentToclassTcode/test.csv
    batchSize: 1000
    inOrder: False
    type: csv
    csv:
      withHeader: false
      withLabel: false
    schema:
      type: edge
      edge:
        name: STUDENT_HAS_CLASS_TCODE
        withRanking: False
      srcVID:
        type: string
        index: 0
      dstVID:
        type: string
        index: 1
  - path: ./studentToclassTcode/test.csv
    batchSize: 1000
    inOrder: False
    type: csv
    csv:
      withHeader: false
      withLabel: false
    schema:
      type: edge
      edge:
        name: CLASS_TCODE_HAS_STUDENT
        withRanking: False
      srcVID:
        type: string
        index: 1
      dstVID:
        type: string
        index: 0

TEST.CSV contents

009aec0b-0068-16bb-e914-379de14d4e9a,546330
009aec0b-0068-16bb-e914-379de14d4e9a,56139

porscheme avatar Mar 20 '22 03:03 porscheme

It generally looks good to me, what's the question/concern here, please?

wey-gu avatar Mar 23 '22 02:03 wey-gu

Same CSV files was used to add undirect edge(s) with column index is reversed; studio does not show two edges.

porscheme avatar Mar 23 '22 03:03 porscheme

Did you also insert vertices for both peer of the edges?

BTW, this is the WIP commit for v3 k8s operator

https://github.com/vesoft-inc/nebula-operator/pull/121

wey-gu avatar Mar 29 '22 02:03 wey-gu