cratedb - 错误 - 不匹配的输入 'SWAP' 期望在 CrateDB 中用于 Alter Cluster 查询的 'REROUTE'
问题描述
当我尝试使用文档升级在版本 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']
我不确定解决此问题的正确查询是什么。
解决方案
您正在关注latest
文档而不是例如2.3
(https://crate.io/docs/crate/reference/en/2.3/admin/system-information.html#tables-need-to-be-recreated)文档版本。
版本中添加了SWAP
SQL 命令支持3.2
,请参阅https://crate.io/docs/crate/reference/en/latest/appendices/release-notes/3.2.0.html#database-administration。
推荐阅读
- javascript - 我收到一个错误:对象作为 React 子项无效(找到:[object Promise])
- python - Python:如何检查列表是否包含数值并返回布尔值?
- react-native - 如何自动化 Expo web index.html 样式
- flutter - 当参数不是 String Flutter 时,Uri 声明失败
- php - 使标头静音并访问日志输出,但仍显示来自 php 内置服务器的 error_log()/syslog() 输出
- javascript - 如何在innerHTML中使用onClick函数
- angular - 从多个容器中获取价值 - Mat Table
- c++ - 如何从世界空间渲染到相机空间?
- javascript - 如何在 html 音频标签中自动播放 saavan 链接?
- azure-data-factory - 如何在 Azure 数据工厂映射数据流中将 UST 转换为 EST?