ClickHouse Schema
dictionary
The dictionary block describes a dictionary in a database schema.
dictionary "name" {
schema = schema.public
source = sql("CLICKHOUSE(TABLE)")
layout = sql("HASH()")
key "id" {
type = UInt64
}
attribute "name" {
type = String
}
lifetime {
min = 0
max = 0
}
...
}
dictionary attributes
| Name | Required | Value |
|---|---|---|
comment | false | string |
layout | true | Raw expression defined with |
schema | true | Object reference to |
settings | false | map |
source | true | Raw expression defined with |
dictionary blocks
dictionary.attribute
dictionary.attribute attributes
| Name | Required | Value |
|---|---|---|
default | false | Column default expression can be one of:
|
null | false | bool |
type | true | Attribute type can be one of:
|
dictionary.attribute constraints
| Constraint | Value |
|---|---|
| Required | false |
Require Name (e.g., dictionary.attribute "name" ) | true |