【发布时间】:2020-06-25 10:07:13
【问题描述】:
如何在 ClickHouse 中重命名数学视图?
:) ALTER MATERIALIZED VIEW db.table_1 RENAME TO db.table_2;
Syntax error: failed at position 7
:) RENAME MATERIALIZED VIEW db.table_1 TO db.table_2;
Syntax error: failed at position 8
:) RENAME TABLE db.table_1 TO db.table_2;
RENAME TABLE table_1 TO table_2
Received exception from server (version 19.4.4):
Code: 48. DB::Exception: Received from 127.0.0.1:9000. DB::Exception: Method rename is not supported by storage MaterializedView
请帮帮我!
【问题讨论】:
-
我刚刚测试了这个 RENAME TABLE table_1 TO table_2。它奏效了。
-
指定客户端和服务器版本。它可能会有所帮助。我可以看到服务器是 19.4.4。
标签: clickhouse