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

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

Closed
porscheme opened this issue Mar 20, 2022 · 6 comments
Closed

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

porscheme opened this issue Mar 20, 2022 · 6 comments
Labels
affects/none PR/issue: this bug affects none version. process/fixed Process of bug severity/minor Severity of bug type/bug Type: something is unexpected

Comments

@porscheme
Copy link

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
@wey-gu
Copy link
Contributor

wey-gu commented Mar 23, 2022

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

@porscheme
Copy link
Author

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

@wey-gu
Copy link
Contributor

wey-gu commented Mar 29, 2022

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

BTW, this is the WIP commit for v3 k8s operator

vesoft-inc/nebula-operator#121

@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

@porscheme So, what is your problem?

@veezhang
Copy link
Contributor

veezhang commented Dec 7, 2022

@porscheme There looks to be something wrong with the indentation of srcVID and dstVID in your config file.
So you just find the edge 0->1.

The correct reduction is as follows:

    schema:
      type: edge
      edge:
        name: STUDENT_HAS_CLASS_TCODE
        withRanking: False
        srcVID:
           type: string
          index: 0
        dstVID:
          type: string
          index: 1

@QingZ11
Copy link
Contributor

QingZ11 commented Jan 29, 2023

We have noticed that the issue you created hasn’t been updated for nearly a month, so we have to close it for now. If you have any new updates, you are welcome to reopen this issue anytime.

Thanks a lot for your contribution anyway 😊

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/fixed Process of bug severity/minor Severity of bug type/bug Type: something is unexpected
Projects
None yet
Development

No branches or pull requests

6 participants