diff options
author | Ivan Blinkov <ivan@ydb.tech> | 2024-01-16 23:53:20 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-17 08:53:20 +0100 |
commit | b8912cbe80b4095a9335b8597a2cebf37551624c (patch) | |
tree | 29f5214a7bb378bb6251bff63fdd8d4549eaa29c | |
parent | 75567837f5f77a468b397b47f34c08df43b107d1 (diff) | |
download | ydb-b8912cbe80b4095a9335b8597a2cebf37551624c.tar.gz |
[docs] YDBDOCS-230: update primitive types restrictions (#435)
* [docs] YDBDOCS-230: update primitive types restrictions
* Update datatypes_primitive_number.md
-rw-r--r-- | ydb/docs/en/core/yql/reference/yql-core/types/_includes/datatypes_primitive_number.md | 8 | ||||
-rw-r--r-- | ydb/docs/ru/core/yql/reference/yql-core/types/_includes/datatypes_primitive_number.md | 6 |
2 files changed, 7 insertions, 7 deletions
diff --git a/ydb/docs/en/core/yql/reference/yql-core/types/_includes/datatypes_primitive_number.md b/ydb/docs/en/core/yql/reference/yql-core/types/_includes/datatypes_primitive_number.md index 29652eb737..c4f210fd49 100644 --- a/ydb/docs/en/core/yql/reference/yql-core/types/_includes/datatypes_primitive_number.md +++ b/ydb/docs/en/core/yql/reference/yql-core/types/_includes/datatypes_primitive_number.md @@ -1,17 +1,17 @@ | Type | Description | Notes | | ----- | ----- | ----- | | `Bool ` | Boolean value. | -| `Int8` | A signed integer.<br/>Acceptable values: from -2<sup>7</sup> to 2<sup>7</sup>–1. | Not supported for table columns | -| `Int16` | A signed integer.<br/>Acceptable values: from –2<sup>15</sup> to 2<sup>15</sup>–1. | Not supported for table columns | +| `Int8` | A signed integer.<br/>Acceptable values: from -2<sup>7</sup> to 2<sup>7</sup>–1. | +| `Int16` | A signed integer.<br/>Acceptable values: from –2<sup>15</sup> to 2<sup>15</sup>–1. | | `Int32` | A signed integer.<br/>Acceptable values: from –2<sup>31</sup> to 2<sup>31</sup>–1. | | `Int64` | A signed integer.<br/>Acceptable values: from –2<sup>63</sup> to 2<sup>63</sup>–1. | | `Uint8` | An unsigned integer.<br/>Acceptable values: from 0 to 2<sup>8</sup>–1. | -| `Uint16` | An unsigned integer.<br/>Acceptable values: from 0 to 2<sup>16</sup>–1. | Not supported for table columns | +| `Uint16` | An unsigned integer.<br/>Acceptable values: from 0 to 2<sup>16</sup>–1. | | `Uint32` | An unsigned integer.<br/>Acceptable values: from 0 to 2<sup>32</sup>–1. | | `Uint64` | An unsigned integer.<br/>Acceptable values: from 0 to 2<sup>64</sup>–1. | | `Float` | A real number with variable precision, 4 bytes in size. | {% if feature_map_tables %}Can't be used in the primary key{% endif %} | | `Double` | A real number with variable precision, 8 bytes in size. | {% if feature_map_tables %}Can't be used in the primary key{% endif %} | -| `Decimal` | A real number with the specified precision, up to 35 decimal digits | {% if feature_map_tables %}When used in table columns, precision is fixed: Decimal (22,9).{% endif %} | +| `Decimal` | A real number with the specified precision, up to 35 decimal digits | {% if feature_map_tables %}When used in table columns, the precision is fixed: Decimal(22,9){% endif %} | {% if feature_map_tables %} |`DyNumber` | A binary representation of a real number with an accuracy of up to 38 digits.<br/>Acceptable values: positive numbers from 1×10<sup>-130</sup> up to 1×10<sup>126</sup>–1, negative numbers from -1×10<sup>126</sup>–1 to -1×10<sup>-130</sup>, and 0.<br/>Compatible with the `Number` type in AWS DynamoDB. It's not recommended for {{ backend_name_lower }}-native applications. | | {% endif %} diff --git a/ydb/docs/ru/core/yql/reference/yql-core/types/_includes/datatypes_primitive_number.md b/ydb/docs/ru/core/yql/reference/yql-core/types/_includes/datatypes_primitive_number.md index 0594c7bdcf..7add172c0d 100644 --- a/ydb/docs/ru/core/yql/reference/yql-core/types/_includes/datatypes_primitive_number.md +++ b/ydb/docs/ru/core/yql/reference/yql-core/types/_includes/datatypes_primitive_number.md @@ -1,12 +1,12 @@ Тип | Описание | Примечания ----- | ----- | ----- `Bool` | Логическое значение. | -`Int8` | Целое число со знаком.<br/>Допустимые значения: от –2<sup>7</sup> до 2<sup>7</sup>–1. | Не поддержан для столбцов таблиц -`Int16` | Целое число со знаком.<br/>Допустимые значения: от –2<sup>15</sup> до 2<sup>15</sup>–1. | Не поддержан для столбцов таблиц +`Int8` | Целое число со знаком.<br/>Допустимые значения: от –2<sup>7</sup> до 2<sup>7</sup>–1. | +`Int16` | Целое число со знаком.<br/>Допустимые значения: от –2<sup>15</sup> до 2<sup>15</sup>–1. | `Int32` | Целое число со знаком.<br/>Допустимые значения: от –2<sup>31</sup> до 2<sup>31</sup>–1. | `Int64` | Целое число со знаком.<br/>Допустимые значения: от –2<sup>63</sup> до 2<sup>63</sup>–1. | `Uint8` | Беззнаковое целое число.<br/>Допустимые значения: от 0 до 2<sup>8</sup>–1. | -`Uint16` | Беззнаковое целое число.<br/>Допустимые значения: от 0 до 2<sup>16</sup>–1. | Не поддержан для столбцов таблиц +`Uint16` | Беззнаковое целое число.<br/>Допустимые значения: от 0 до 2<sup>16</sup>–1. | `Uint32` | Беззнаковое целое число.<br/>Допустимые значения: от 0 до 2<sup>32</sup>–1. | `Uint64` | Беззнаковое целое число.<br/>Допустимые значения: от 0 до 2<sup>64</sup>–1. | `Float` | Вещественное число с переменной точностью размером 4 байта. | {% if feature_map_tables %}Не может быть использован в первичном ключе{% endif %} |