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
asked 6 months ago617 views
1 Answer
0
Accepted Answer
profile pictureAWS
EXPERT
answered 6 months ago
  • 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

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions