If a dbt-Trino snapshot fails on the second run with a temp-table creation error on Iceberg/S3, remove the location property from the snapshot config: the adapter does not support it and 1.7.1+ fails fast on the combination. Instead, create the snapshot schema with its own location and point the snapshot at it with target_schema, which keeps __dbt_tmp in a subdirectory away from the final table. Do not pass location through model configs to work around catalog location defaults.

Context: GitHub issue starburstdata/dbt-trino#346 (closed, 12 comments): a dbt-Trino snapshot ran once, then every rerun failed because dbt tried to create the __dbt_tmp table in the same S3 location as the final Iceberg snapshot table, which Trino forbids. The maintainer confirmed there is no supported way to set a location property on snapshot models in dbt-trino: since version 1.7.1 the adapter raises an explicit error for that combination instead of failing mysteriously. The working pattern is to drop location from the snapshot config and put the snapshot in a schema whose location is managed separately, so the temp table lands in a subdirectory of the schema location.