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

datetime类型导入与更新报错 #426

Open
liukaifei opened this issue Mar 5, 2024 · 0 comments
Open

datetime类型导入与更新报错 #426

liukaifei opened this issue Mar 5, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@liukaifei
Copy link

liukaifei commented Mar 5, 2024

导入或更新日期型数据都会报错,日期数据来自Pg数据库timestamp with time zone:

  • 软件版本
    docker centeros7 latest
    image

  • 我的模型:

{
"schema": [
{
"label": "person",
"type": "VERTEX",
"primary": "objid",
"properties": [
{
"name": "resignation_date",
"type": "DATETIME",
"optional": true
},
{
"name": "is_admin",
"type": "BOOL",
"optional": true
},
{
"name": "is_quit",
"type": "BOOL",
"optional": true
},
{
"name": "lastmodify_date",
"type": "DATETIME",
"optional": true
},
{
"name": "creation_date",
"type": "DATETIME",
"optional": true
},
{
"name": "staff_no",
"type": "STRING",
"optional": true
},
{
"name": "name",
"type": "STRING",
"optional": true
},
{
"name": "creator_id",
"type": "STRING",
"optional": true
},
{
"name": "mobile",
"type": "STRING",
"optional": true
},
{
"name": "lastmodifier_id",
"type": "STRING",
"optional": true
},
{
"name": "objid",
"type": "STRING"
},
{
"name": "description",
"type": "STRING",
"optional": true
},
{
"name": "email",
"type": "STRING",
"optional": true
},
{
"name": "password",
"type": "STRING",
"optional": true
}
]
}
],
"files": [
{
"path": "raw_data/person.csv",
"format": "CSV",
"label": "person",
"header": 2,
"columns": [
"resignation_date",
"is_admin",
"is_quit",
"lastmodify_date",
"creation_date",
"staff_no",
"name",
"creator_id",
"mobile",
"lastmodifier_id",
"objid",
"description",
"email",
"password"
]
}
]
}

  • 在web可视化界面更新日期,直接回到登录界面,报错信息都没有。

image
image

  • 另外通过lgraph_import导入,报如下错误,我猜测是一个问题。
    image

  • dgraph 文档可以借鉴
    image

@gtahoo gtahoo added the bug Something isn't working label Mar 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants