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

Improvement of errors when renaming a RT table #2191

Closed
PavelShilin89 opened this issue May 16, 2024 · 1 comment
Closed

Improvement of errors when renaming a RT table #2191

PavelShilin89 opened this issue May 16, 2024 · 1 comment
Assignees
Labels
bug rel::upcoming Upcoming release

Comments

@PavelShilin89
Copy link
Contributor

When we try to rename a table in a mode other than RT, we get no understandable error. It would be nice if the error would indicate that we are using the wrong table type.

MRE

mysql -v -h0 -P9306 -e "CREATE TABLE index1(f text, s string); CREATE TABLE dist_table type='distributed' local='index1'; CREATE TABLE products(title text, meta json) type='pq'; ALTER TABLE dist_table RENAME new_dist_table; ALTER TABLE products RENAME new_products;"
--------------
CREATE TABLE index1(f text, s string)
--------------

--------------
CREATE TABLE dist_table type='distributed' local='index1'
--------------

--------------
CREATE TABLE products(title text, meta json) type='pq'
--------------

--------------
ALTER TABLE dist_table RENAME new_dist_table
--------------
ERROR 1064 (42000) at line 1: Source table dist_table not exists
--------------
ALTER TABLE products RENAME new_products;
--------------
ERROR 1064 (42000) at line 1: Source table products not exists
--------------
@sanikolaev sanikolaev changed the title Improvement of errors when renaming a distributed table different from RT mode Improvement of errors when renaming a distributed table different from RT May 20, 2024
@djklim87 djklim87 changed the title Improvement of errors when renaming a distributed table different from RT Improvement of errors when renaming a RT table May 20, 2024
@djklim87
Copy link
Contributor

@sanikolaev sanikolaev added the rel::upcoming Upcoming release label Jun 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug rel::upcoming Upcoming release
Projects
None yet
Development

No branches or pull requests

3 participants