0

当我尝试使用文档升级在版本 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'] 我不确定解决此问题的正确查询是什么。

4

1 回答 1

2

您正在关注latest文档而不是例如2.3https://crate.io/docs/crate/reference/en/2.3/admin/system-information.html#tables-need-to-be-recreated)文档版本。

版本中添加了SWAPSQL 命令支持3.2,请参阅https://crate.io/docs/crate/reference/en/latest/appendices/release-notes/3.2.0.html#database-administration

于 2020-02-05T07:55:11.653 回答