当我尝试使用文档升级在2.x版本中创建的表时,我正在根据建议将CRATE DB从2.x版本升级到3.1.6。
在步骤5中,
查询-
alter CLUSTER SWAP table transactions2 to transactions;
我收到错误SQLActionException[SQLParseException: line 1:15: mismatched input 'SWAP' expecting 'REROUTE']我不确定什么是正确的查询来解决这个问题。
发布于 2020-02-05 15:55:12
您遵循的是latest文档,而不是2.3 (https://crate.io/docs/crate/reference/en/2.3/admin/system-information.html#tables-need-to-be-recreated)文档版本。
3.2版本中添加了对SWAP SQL命令的支持,请参阅https://crate.io/docs/crate/reference/en/latest/appendices/release-notes/3.2.0.html#database-administration。
https://stackoverflow.com/questions/60070784
复制相似问题