无法将列添加到 Crate table

Can't add column to Crate table

我有一个现有的 table 是前一段时间创建的。 table 在一个有 3 个节点的 Crate 集群上。所有注释均为 运行ning 版本 0.54.9。当我运行以下命令时:

ALTER TABLE my_table ADD COLUMN size integer

我收到以下涉及现有列名称的错误:

SQLActionException[Merge failed with failures {[mapper [location] of different type, current_type [ip], merged_type [ArrayMapper]]}]

table 有一个名为 "locations" 的 ARRAY(ip) 列,但我不明白这有什么关系。

当我 运行 在具有相同架构的本地实例上执行相同的命令时,它 运行 很好。网上搜索显示,其他人遇到的与上述最接近的错误与 Elasticsearch 索引有关。这向我暗示 table (或其在 ES 中的映射)可能已损坏,但我不确定如何修复它,因为集群目前正在生产中。

有没有人知道如何检查/修复这个?

这是 Crate 0.54 版本中的一个已知错误。它已经修复但尚未发布,请参阅:https://github.com/crate/crate/commit/6d01cb8a45bb904f45ab1270975ef81e88bf776c

请耐心等待,升级到 0.55.0(测试)或自己从源代码构建 Crate。