未验证 提交 72d27196 编写于 作者: O olgarev 提交者: GitHub

Apply suggestions from code review

Co-authored-by: NBayoNet <da-daos@yandex.ru>
上级 a76139bc
......@@ -1901,20 +1901,20 @@ Default value: `120`.
## 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)`.
Possible values:
- 0 — Nullable type converstion disabled.
- 1 — Nullable type converstion enabled.
- 0 — The final type of `CAST` exactly the destination data type specified.
- 1 — The final type of `CAST` becomes `Nullable(DestinationDataType).
Default value: `0`.
**Examples**
Query with nullable type converstion disabled:
The following query exactly results in the destination data type:
```sql
SET cast_keep_nullable = 0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册