首页 > 解决方案 > 错误 - 不匹配的输入 'SWAP' 期望在 CrateDB 中用于 Alter Cluster 查询的 'REROUTE'

问题描述

当我尝试使用文档升级在版本 2.x 中创建的表时,我正在根据建议将 CRATE DB 从版本 2.x 升级到 3.1.6,

https://crate.io/docs/crate/reference/en/latest/admin/system-information.html#tables-need-to-be-upgraded

在第 5 步中,

询问 -

alter CLUSTER SWAP table transactions2 to transactions;

我收到错误SQLActionException[SQLParseException: line 1:15: mismatched input 'SWAP' expecting 'REROUTE'] 我不确定解决此问题的正确查询是什么。

标签: cratedb

解决方案



推荐阅读