dbt-clickhouse
dbt-clickhouse copied to clipboard
Parameter 'Alias' doesn't affect local tables if distributed materialized is used.
Parameter 'Alias' doesn't affect local tables if distributed materialized is used.
Steps to reproduce
- Create model with name 'test'
- Set follow parameters: {{ config( alias='alias_for_test_table', materialized='distributed_incremental', ) }}
- run dbt model. The distributed table will be called 'alias_for_test_table' but local table will be called 'testlocal'
- Change model's name to 'new_test_name'.
- Run dbt model with parameter --full-refresh
get an error: "DB::Exception: Table
new_test_namelocaldoesn't exist."
Expected behaviour
The distributed table is called 'alias_for_test_table' and local table is called 'alias_for_test_tablelocal'
Configuration
Environment
Plugins:
- clickhouse: 1.4.8 - Up to date!
-
dbt version: 1.4.7
-
dbt-clickhouse version:1.4.8
-
Python version:
-
Operating system: MacOS
I will take a look.
commit a fix with PR https://github.com/ClickHouse/dbt-clickhouse/pull/186 waiting for review