Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
shnikd committed Sep 23, 2024
1 parent 350eccc commit 9ac2f9f
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 26 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,30 +66,30 @@ WITH (

- Создание строковой таблицы

{% if feature_column_container_type %}
{% if feature_column_container_type %}

```yql
CREATE TABLE <table_name> (
a Uint64,
b Uint64,
c Float,
d "List<List<Int32>>"
PRIMARY KEY (a, b)
);
```
```yql
CREATE TABLE <table_name> (
a Uint64,
b Uint64,
c Float,
d "List<List<Int32>>"
PRIMARY KEY (a, b)
);
```

{% else %}
{% else %}

```yql
CREATE TABLE <table_name> (
a Uint64,
b Uint64,
c Float,
PRIMARY KEY (a, b)
);
```
```yql
CREATE TABLE <table_name> (
a Uint64,
b Uint64,
c Float,
PRIMARY KEY (a, b)
);
```

{% endif %}
{% endif %}


{% if feature_column_container_type == true %}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,12 @@ UPSERT INTO users (user_id, name, email) VALUES (4, 'Peter', '[email protected]'

Тип | Максимальное значение | Тип значения
----- | ----- | -----
`SmallSerial` | $2^15–1$ | `Int16`
`Serial2` | $2^15–1$ | `Int16`
`Serial` | $2^31–1$ | `Int32`
`Serial4` | $2^31–1$ | `Int32`
`Serial8` | $2^63–1$ | `Int64`
`BigSerial` | $2^63–1$ | `Int64`
`SmallSerial` | $2^{15}–1$ | `Int16`
`Serial2` | $2^{15}–1$ | `Int16`
`Serial` | $2^{31}–1$ | `Int32`
`Serial4` | $2^{31}–1$ | `Int32`
`Serial8` | $2^{63}–1$ | `Int64`
`BigSerial` | $2^{63}–1$ | `Int64`

При переполнении `Sequence` на вставке будет возвращаться ошибка:

Expand Down

0 comments on commit 9ac2f9f

Please sign in to comment.