Skip to content
Snippets Groups Projects
Commit 78e37274 authored by Artur Sabirov's avatar Artur Sabirov Committed by Yaroslav Dynnikov
Browse files

system_tables.md: update _pico_table

picodata 24.3.0-74-g153b595b

Format changes:
— `distribution`: change type and edit description
— `format`: edit description
parent 9f2a7a8f
No related branches found
No related tags found
1 merge request!409system_tables.md: update _pico_table
......@@ -6,7 +6,7 @@ Picodata, используемые для служебных нужд. Пере
<!--
Описание соответствует версии
Picodata 24.3.0-66-g6ea360f7
Picodata 24.3.0-74-g153b595b
-->
## Описание схемы данных {: #schema }
......@@ -28,7 +28,7 @@ Picodata 24.3.0-66-g6ea360f7
* `id`: (_unsigned_)
* `name`: (_string_) название таблицы
* `distribution`: (_array_) определяет распределение данных в кластере.
* `distribution`: (_map_) определяет распределение данных в кластере.
Возможны следующие варианты:
- `["global"]` — глобальная таблица
- `["sharded_implicitly", sharding_key, sharding_fn]`
......@@ -40,9 +40,9 @@ Picodata 24.3.0-66-g6ea360f7
`[field,...]`, по которым вычисляется `bucket_id`
- `["sharded_by_field", field]` — шардированная таблица, в качестве
`bucket_id` используется значение поля `field`
* `format`: (_array_, `[[field_name, field_type, is_nullable]]`) массив с описанием
формата полей таблицы:
- `field_name`: (_string_) название поля
* `format`: (_array_, `[{"name": VALUE, "field_type": VALUE, "is_nullable": VALUE}]`)
массив словарей с описанием формата полей таблицы:
- `name`: (_string_) название поля
- `field_type`: (_string_, `"any" | "unsigned" | "string" | "number" |
"double" | "integer" | "boolean" | "varbinary" | "scalar" |
"decimal" | "uuid" | "datetime" | "interval" | "array" |
......
......@@ -5,7 +5,7 @@
* `id`: (_unsigned_)
* `name`: (_string_)
* `distribution`: (_array_)
* `distribution`: (_map_)
* `format`: (_array_)
* `schema_version`: (_unsigned_)
* `operable`: (_boolean_)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment