From 5496f5ea13195bbd6c3fc4437e84a700d1d85027 Mon Sep 17 00:00:00 2001 From: xtyuns Date: Mon, 14 Oct 2024 17:11:26 +0800 Subject: [PATCH] Allow unique_id to take a list https://github.com/dbt-labs/dbt-core/pull/4618 Signed-off-by: xtyuns --- dbt/include/starrocks/macros/adapters/relation_helpers.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dbt/include/starrocks/macros/adapters/relation_helpers.sql b/dbt/include/starrocks/macros/adapters/relation_helpers.sql index 8a52e36..14b2567 100644 --- a/dbt/include/starrocks/macros/adapters/relation_helpers.sql +++ b/dbt/include/starrocks/macros/adapters/relation_helpers.sql @@ -32,7 +32,7 @@ {%- if materialized == 'incremental' and unique_key is not none -%} {%- set table_type = 'PRIMARY' -%} - {%- set keys = [unique_key] -%} + {%- set keys = unique_key if unique_key is sequence and unique_key is not mapping and unique_key is not string else [unique_key] -%} {%- endif -%} {%- if properties is none -%}