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

cannot create table with a name which is occupied before #892

Closed
waynexia opened this issue Jan 17, 2023 · 2 comments · Fixed by #894
Closed

cannot create table with a name which is occupied before #892

waynexia opened this issue Jan 17, 2023 · 2 comments · Fixed by #894
Labels
C-bug Category Bugs

Comments

@waynexia
Copy link
Member

What type of bug is this?

Incorrect result

What subsystems are affected?

Standalone mode

What happened?

For the following queries

CREATE TABLE t(i INTEGER, j BIGINT TIME INDEX);

ALTER TABLE t RENAME new_table;

SELECT * FROM t;

CREATE TABLE t(i INTEGER, j BIGINT TIME INDEX);

the third SELECT clause will report the table doesn't exist, but the fourth CREATE clause will fill due to table already exist

What operating system did you use?

M1 Mac

Relevant log output and stack trace

No response

How can we reproduce the bug?

By running the provided queries
@waynexia waynexia added the C-bug Category Bugs label Jan 17, 2023
@waynexia
Copy link
Member Author

cc @e1ijah1 who has made a great contribution to RENAME TABLE feature

@e1ijah1
Copy link
Contributor

e1ijah1 commented Jan 17, 2023

cc @e1ijah1 who has made a great contribution to RENAME TABLE feature

I have already submitted my PR and PTAL

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

Successfully merging a pull request may close this issue.

2 participants