> ## Documentation Index
> Fetch the complete documentation index at: https://private-7c7dfe99-mintlify-8a08bda2.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Null 字典源

> 在 ClickHouse 中配置 Null（空）字典源以用于测试。

一种特殊的源，可用于创建占位用的 (空) 字典。
这类空字典可用于测试，或用于数据节点与查询节点分离且使用分布式表的部署场景。

```sql theme={null}
CREATE DICTIONARY null_dict (
    id              UInt64,
    val             UInt8,
    default_val     UInt8 DEFAULT 123,
    nullable_val    Nullable(UInt8)
)
PRIMARY KEY id
SOURCE(NULL())
LAYOUT(FLAT())
LIFETIME(0);
```
