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

3.3.0 Create Edge Bug. #5427

Closed
thewkgithub opened this issue Mar 21, 2023 · 3 comments
Closed

3.3.0 Create Edge Bug. #5427

thewkgithub opened this issue Mar 21, 2023 · 3 comments
Labels
affects/none PR/issue: this bug affects none version. process/fixed Process of bug severity/none Severity of bug type/bug Type: something is unexpected

Comments

@thewkgithub
Copy link

Version: 3.3.0
操作: 创建一个名字为2的EDGE, 报重复异常. 但实际该图空间中没有这个EDGE.

CREATE EDGE 2 (META_START_TIME DATETIME NULL COMMENT '元数据:开始时间', META_END_TIME DATETIME NULL COMMENT '元数据:结束时间', META_CREATE_TIME DATETIME NULL COMMENT '元数据:创建时间',META_UPDATE_TIME DATETIME NULL COMMENT '元数据:更新时间') COMMENT = '';
[ERROR (-1005)]: Schema with same name exists

Tue, 21 Mar 2023 02:34:18 CST

]> SHOW EDGES;
+-------------+
| Name |
+-------------+
| "0" |
| "09" |
| "1" |
| "123123" |
| "23" |
| "234" |
| "2344" |
| "3" |
| "45" |
| "4545" |
| "56" |
| "6" |
| "8" |
+-------------+

@thewkgithub thewkgithub added the type/bug Type: something is unexpected label Mar 21, 2023
@github-actions github-actions bot added affects/none PR/issue: this bug affects none version. severity/none Severity of bug labels Mar 21, 2023
@thewkgithub
Copy link
Author

好像是找到原因了...
因为有一个名字为2的Tag.

这算是BUG,还是本身设计就是如此呢???

@thewkgithub
Copy link
Author

文档里面提示说

每个图空间内的 Tag 必须是唯一的。
每个图空间内的 Edge type 必须是唯一的。

没说,TAG和EDGE TYPE的名字不能重复啊。。

@pengweisong
Copy link
Contributor

为了兼容 Cypher 不得不如此,因为 Cypher 是面向 Label 的。如果 Edge 和 Tag 同名,在 Cypher 语法内,有些语句很容易匹配出非期望结果。

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

No branches or pull requests

3 participants