From 6e155e8d52c1c37f7b0d82dcadf51406b3d4f757 Mon Sep 17 00:00:00 2001 From: Robin Norgren <68205730+rjoelnorgren@users.noreply.github.com> Date: Tue, 24 Sep 2024 14:01:03 -0700 Subject: [PATCH] feat: support range_hashed and complex_key_range_hashed dictionary materialization layout --- dbt/include/clickhouse/macros/materializations/dictionary.sql | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dbt/include/clickhouse/macros/materializations/dictionary.sql b/dbt/include/clickhouse/macros/materializations/dictionary.sql index 486ff0b0..80fd7982 100644 --- a/dbt/include/clickhouse/macros/materializations/dictionary.sql +++ b/dbt/include/clickhouse/macros/materializations/dictionary.sql @@ -71,6 +71,9 @@ ) LAYOUT({{ config.get('layout') }}) LIFETIME({{ config.get('lifetime') }}) + {%- if config.get('range') %} + RANGE({{ config.get('range') }}) + {%- endif %} {% endmacro %}