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

Support CSV file with BOM in windows #138

Open
yixinglu opened this issue May 10, 2021 · 0 comments
Open

Support CSV file with BOM in windows #138

yixinglu opened this issue May 10, 2021 · 0 comments
Labels
type/enhancement Type: make the code neat or more efficient

Comments

@yixinglu
Copy link
Contributor

image

{
  "version": "v2",
  "description": "web console import",
  "clientSettings": {
    "concurrency": 10,
    "channelBufferSize": 128,
    "space": "ashare_1",
    "connection": {
      "user": "user",
      "password": "123",
      "address": "192.168.10.217:9669"
    }
  },
  "logPath": "/Users/hetaohua/Documents/Projects/nebula-graph-studio/tmp/upload/tmp/import.log",
  "files": [
    {
      "path": "/Users/hetaohua/Documents/Projects/nebula-graph-studio/tmp/upload/nodes.csv",
      "failDataPath": "/Users/hetaohua/Documents/Projects/nebula-graph-studio/tmp/upload/tmp/err/数据源 1Fail.csv",
      "batchSize": 10,
      "type": "csv",
      "csv": {
        "withHeader": false,
        "withLabel": false
      },
      "schema": {
        "type": "vertex",
        "vertex": {
          "vid": {
            "index": 0,
            "type": "int"
          },
          "tags": [
            {
              "name": "stocks",
              "props": [
                {
                  "name": "stock_id",
                  "type": "string",
                  "index": 1
                },
                {
                  "name": "name",
                  "type": "string",
                  "index": 2
                },
                {
                  "name": "industry",
                  "type": "string",
                  "index": 3
                }
              ]
            }
          ]
        }
      }
    },
    {
      "path": "/Users/hetaohua/Documents/Projects/nebula-graph-studio/tmp/upload/edges.csv",
      "failDataPath": "/Users/hetaohua/Documents/Projects/nebula-graph-studio/tmp/upload/tmp//err/Edge 1Fail.csv",
      "batchSize": 10,
      "type": "csv",
      "csv": {
        "withHeader": false,
        "withLabel": false
      },
      "schema": {
        "type": "edge",
        "edge": {
          "name": "relation",
          "srcVID": {
            "index": 0,
            "type": "int"
          },
          "dstVID": {
            "index": 1,
            "type": "int"
          },
          "withRanking": false,
          "props": [
            {
              "name": "weight",
              "type": "double",
              "index": 2
            }
          ]
        }
      }
    }
  ]
}

edges.csv
nodes.csv

@Sophie-Xie Sophie-Xie added type/enhancement Type: make the code neat or more efficient and removed enhancement labels Nov 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/enhancement Type: make the code neat or more efficient
Projects
None yet
Development

No branches or pull requests

2 participants