Closed rjoelnorgren closed 6 months ago
A few way this could be resolved, but the underlying issues is related to correctly preserving the nesting of types (https://github.com/ClickHouse/dbt-clickhouse/blob/main/dbt/adapters/clickhouse/column.py#L123-L127). This is also important for #3 which would need to support cases such as AggregateFunction(uniq, Nullable(Int32))
.
Describe the bug
Specifying a LowCardinality or Nullable type for a column results in a compilation error due to model contract failure.
Steps to reproduce
Expected behaviour
We can specify columns as Nullable or LowCardinality.
Code examples, such as models or profile settings
schema.yml
low_card_model.sql
dbt and/or ClickHouse server logs