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

IF NOT EXISTS does not work in CLONE GRAPH #5252

Closed
thewkgithub opened this issue Jan 13, 2023 · 3 comments
Closed

IF NOT EXISTS does not work in CLONE GRAPH #5252

thewkgithub opened this issue Jan 13, 2023 · 3 comments
Assignees
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
Milestone

Comments

@thewkgithub
Copy link

(root@nebula) [basketballplayer]> CREATE SPACE IF NOT EXISTS my_space_1 (vid_type=FIXED_STRING(30));
Execution succeeded (time spent 514µs/715.735µs)

(root@nebula) [basketballplayer]> CREATE SPACE IF NOT EXISTS my_space_2 AS my_space_1;
Execution succeeded (time spent 879µs/1.085528ms)

(root@nebula) [basketballplayer]> CREATE SPACE IF NOT EXISTS my_space_2 AS my_space_1;
[ERROR (-1005)]: Existed!

  1. 先创建一个图空间, my_space_1
  2. 使用克隆的方式, 去克隆出来my_space_2, 此时my_space_2不存在, 克隆成功.
  3. 再克隆一次, 也就是当前图空间中存在my_space_2了, 此时再克隆就报-1005了..

说明在克隆图空间的时候, IF NOT EXISTS这个选项是无效的.和预期不一致.

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

Version 3.3.0

@Sophie-Xie Sophie-Xie added this to the v3.5.0 milestone Feb 7, 2023
@Sophie-Xie Sophie-Xie changed the title 克隆图空间语句的IF NOT EXISTS无效. IF NOT EXISTS does not work in CLONE GRAPH Feb 7, 2023
@pengweisong
Copy link
Contributor

@MuYiYong Should we ban the IF NOT EXISTS when clone space? Think about the case:

  1. We have a Space B, which has different SpaceSpec with Space A
  2. Now we execute CREATE SPACE IF NOT EXISTS B AS A; , if we return SUCCESS, it may have some problem: the A and B do not have the same SpaceSpec indeed.

@thewkgithub
Copy link
Author

确实,哈哈。怎么想都不对。

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