无法对我的 Amazon Spectrum 进行分区 Table

Trouble Partitioning my Amazon Spectrum Table

特别是出现此错误:

ERROR: Error when calling external catalog API: The number of partition keys do not match the number of partition values

之所以发布这个,是因为谷歌搜索该错误没有任何结果。当您 ALTER TABLE ADD PARTITION 在没有 PARTITIONED BY 子句创建的外部 table 上时,可能会发生这种情况。

阅读此内容了解详情:CREATE EXTERNAL TABLE docs。回想起来,你和我一样,在尝试这个命令之前应该读过这篇文章。