mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-01 20:12:02 +00:00
Apply suggestions from code review
Co-authored-by: BayoNet <da-daos@yandex.ru>
This commit is contained in:
parent
a76139bc22
commit
72d27196a0
@ -1901,20 +1901,20 @@ Default value: `120`.
|
|||||||
|
|
||||||
## cast_keep_nullable {#cast_keep_nullable}
|
## cast_keep_nullable {#cast_keep_nullable}
|
||||||
|
|
||||||
Enables or disables converstion to nullable types for [CAST](../../sql-reference/functions/type-conversion-functions.md#type_conversion_function-cast) operator.
|
Enables or disables keeping of the `Nullable` data type in [CAST](../../sql-reference/functions/type-conversion-functions.md#type_conversion_function-cast) operations.
|
||||||
|
|
||||||
If set, `CAST(something_nullable AS Type)` returns `Nullable(Type)`.
|
If set, `CAST(something_nullable AS Type)` returns `Nullable(Type)`.
|
||||||
|
|
||||||
Possible values:
|
Possible values:
|
||||||
|
|
||||||
- 0 — Nullable type converstion disabled.
|
- 0 — The final type of `CAST` exactly the destination data type specified.
|
||||||
- 1 — Nullable type converstion enabled.
|
- 1 — The final type of `CAST` becomes `Nullable(DestinationDataType).
|
||||||
|
|
||||||
Default value: `0`.
|
Default value: `0`.
|
||||||
|
|
||||||
**Examples**
|
**Examples**
|
||||||
|
|
||||||
Query with nullable type converstion disabled:
|
The following query exactly results in the destination data type:
|
||||||
|
|
||||||
```sql
|
```sql
|
||||||
SET cast_keep_nullable = 0;
|
SET cast_keep_nullable = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user