Athena fails adding table properties to an iceberg table

0

I am trying to add a table property to an iceberg table from Athena.

ALTER TABLE silver.table_name SET TBLPROPERTIES (
    'write.merge.mode'='merge-on-read'
)

The query fails with error : Unsupported table property key: write.merge.mode

I have tried several other props and the command fails in the same way. I suspect Athena does not recognize that my table is an Iceberg one.

Enter image description here

profile picture
已提问 6 个月前668 查看次数
1 回答
0
已接受的回答
profile pictureAWS
专家
已回答 6 个月前
  • The table IS NOT created from Athena but from iceberg library in spark. Actually you can change the write mode of an iceberg table after it has been created.

  • Either way, the properties Athena uses in the table are not the ones in the Iceberg table, you cannot change then that way

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则