sqlmesh icon indicating copy to clipboard operation
sqlmesh copied to clipboard

Enable MERGE strategy for Athena

Open jyry-ookla opened this issue 1 year ago • 2 comments

As of Athena version 3 it supports MERGE INTO statements for Iceberg tables.

For performance reasons in INCREMENTAL_BY_UNIQUE_KEY it would be good to support using this method to update tables.

I expect this to be a somewhat similar effort to #4985 with the exception that there isn't a partial merge strategy for Athena yet. Probably requires support in SQLGlot.

jyry-ookla avatar Oct 28 '25 13:10 jyry-ookla

Same, I was a bit confused with athena not being mentioned in the docs for INCREMENTAL_BY_UNIQUE_KEY

matotias avatar Jan 23 '26 13:01 matotias

This is already a feature, you have to declare it at the model properties using table_format iceberg -- See: https://sqlmesh.readthedocs.io/en/stable/integrations/engines/athena/#limitations

cmgoffena13 avatar Sep 04 '26 03:09 cmgoffena13