Skip to content

Commit fe61b6a

Browse files
authored
[docs] add missing code block in cast_examples.md (#10201)
1 parent 7258b98 commit fe61b6a

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

ydb/docs/en/core/yql/reference/yql-core/_includes/cast_examples.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
2+
```yql
13
SELECT
24
CAST("12345" AS Double), -- 12345.0
35
CAST(1.2345 AS Uint8), -- 1
@@ -11,3 +13,4 @@ SELECT
1113
--The item type is not optional: the failed item has been deleted.
1214
CAST(255 AS Uint8), -- 255
1315
CAST(256 AS Uint8) IS NULL -- true, out of range
16+
```

ydb/docs/en/core/yql/reference/yql-core/syntax/_includes/expressions/cast.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
## CAST {#cast}
22

3+
<!-- markdownlint-disable blanks-around-fences -->
4+
35
Tries to cast the value to the specified type. The attempt may fail and return `NULL`. When used with numbers, it may lose precision or most significant bits.
46
{% if feature_column_container_type %}
57
For lists and dictionaries, it can either delete or replace with `NULL` the elements whose conversion failed.
@@ -12,4 +14,3 @@ For more information about casting rules, see [here](../../../types/cast.md).
1214
### Examples
1315

1416
{% include [cast_examples](../../../_includes/cast_examples.md) %}
15-

0 commit comments

Comments
 (0)