mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-10-19 23:10:50 +00:00
23 lines
658 B
Markdown
23 lines
658 B
Markdown
<a name="special_data_type-nothing"></a>
|
|
|
|
# Nothing
|
|
|
|
The only purpose of this data type is to represent cases where value is not expected. So you can't create a `Nothing` type value.
|
|
|
|
For example, literal [NULL](../../query_language/syntax.md#null-literal) has type of `Nullable(Nothing)`. See more about [Nullable](../../data_types/nullable.md#data_type-nullable).
|
|
|
|
The `Nothing` type can also used to denote empty arrays:
|
|
|
|
```bash
|
|
:) SELECT toTypeName(array())
|
|
|
|
SELECT toTypeName([])
|
|
|
|
┌─toTypeName(array())─┐
|
|
│ Array(Nothing) │
|
|
└─────────────────────┘
|
|
|
|
1 rows in set. Elapsed: 0.062 sec.
|
|
```
|
|
|