How can I do ALTER TABLE ... DROP COLUMN on an iceberg table struct field in athena?

0

According to https://docs.aws.amazon.com/athena/latest/ug/querying-iceberg-evolving-table-schema.html

Drop – Removes an existing column from a table or nested struct.

However in https://docs.aws.amazon.com/athena/latest/ug/querying-iceberg-evolving-table-schema.html#querying-iceberg-alter-table-drop-column there is no example listed. According to https://iceberg.apache.org/docs/latest/spark-ddl/#alter-table--drop-column

ALTER TABLE db.foo_table DROP COLUMN col.struct_name;

should work, but results in:

Cannot delete missing column: col.struct_name

Is this not possible?

已提問 6 個月前檢視次數 83 次
沒有答案

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南