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
preguntada hace 6 meses668 visualizaciones
1 Respuesta
0
Respuesta aceptada
profile pictureAWS
EXPERTO
respondido hace 6 meses
  • 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

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas