From 30842b34a873582eef6fc611e07b23b2bdfe5226 Mon Sep 17 00:00:00 2001 From: VersusFacit <67295367+VersusFacit@users.noreply.github.com> Date: Tue, 24 Sep 2024 01:59:42 -0700 Subject: [PATCH] Improve error message for table formats. --- dbt/include/snowflake/macros/materializations/incremental.sql | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/dbt/include/snowflake/macros/materializations/incremental.sql b/dbt/include/snowflake/macros/materializations/incremental.sql index fd6dc077c..1db4118db 100644 --- a/dbt/include/snowflake/macros/materializations/incremental.sql +++ b/dbt/include/snowflake/macros/materializations/incremental.sql @@ -109,8 +109,7 @@ {% elif target_relation.table_format != existing_relation.table_format %} {% do exceptions.raise_compiler_error( - "Unable to convert a " ~ existing_relation.table_format ~ " format table to " ~ - target_relation.table_format ~ " without specifying --full-refresh." + "Was unable to create incremental model '" ~ target_relation.identifier ~ "' as " ~ target_relation.table_format ~ " table format. Cannot convert a " ~ existing_relation.table_format ~ " format table to " ~ target_relation.table_format ~ " without specifying --full-refresh." ) %}