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

import result error #159

Closed
hetao92 opened this issue Aug 27, 2021 · 1 comment · Fixed by #164
Closed

import result error #159

hetao92 opened this issue Aug 27, 2021 · 1 comment · Fixed by #164

Comments

@hetao92
Copy link

hetao92 commented Aug 27, 2021

schema:

CREATE SPACE IF NOT EXISTS sf1(PARTITION_NUM = 24, REPLICA_FACTOR = 3, vid_type = int64);
USE sf1;
CREATE TAG IF NOT EXISTS `Comment`(`creationDate` string,`locationIP` string,`browserUsed` string,`content` string,`length` int);

comment.csv

import a file with wrong format
config

{
    "config": {
        "version": "v2",
        "description": "web console import",
        "clientSettings": {
            "concurrency": 10,
            "channelBufferSize": 128,
            "space": "sf1",
            "connection": {
                "user": "1",
                "password": "2",
                "address": "192.168.8.157:9669"
            }
        },
        "logPath": "/Users/xxx/Documents/Work/nebula-studio/tmp/upload/tmp/import.log",
        "files": [{
            "path": "/Users/xxx/Documents/Work/nebula-studio/tmp/upload/comment.csv",
            "failDataPath": "/Users/xxx/Documents/Work/nebula-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": "Comment",
                        "props": [{
                            "name": "creationDate",
                            "type": "string",
                            "index": 1
                        }, {
                            "name": "locationIP",
                            "type": "string",
                            "index": 2
                        }, {
                            "name": "browserUsed",
                            "type": "string",
                            "index": 3
                        }, {
                            "name": "content",
                            "type": "string",
                            "index": 4
                        }, {
                            "name": "length",
                            "type": "int",
                            "index": 5
                        }]
                    }]
                }
            }
        }]
    },
    "mountPath": "/Users/xxx/Documents/Work/nebula-studio/tmp/upload"
}

image

read file line error, but log shows Failed(0)
comment.csv

IanSmith123 added a commit to IanSmith123/nebula-importer that referenced this issue Sep 22, 2021
@Aiee Aiee closed this as completed in #164 Sep 23, 2021
Aiee added a commit that referenced this issue Sep 23, 2021
Co-authored-by: Yichen Wang <[email protected]>
@IanSmith123
Copy link
Contributor

The cause of this issue is that the final output line only contains Insert Success and Insert Failed counting, without reading CSV failed counting.
PR #164 add a new counting to save CSV failed counting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants