Skip to content

Commit ea4dc0f

Browse files
committed
Remove/move down "Only for row-oriented tables" warnings
1 parent afd8d5d commit ea4dc0f

19 files changed

+23
-79
lines changed

ydb/docs/en/core/_includes/codec_zstd_allow_for_olap_note.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{% note alert %}
1+
{% note warning %}
22

33
{% include [codec_zstd_allow_for_olap_text](codec_zstd_allow_for_olap_text.md) %}
44

ydb/docs/en/core/_includes/only_allow_for_olap_note.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{% if oss == true and backend_name == "YDB" %}
22

3-
{% note alert %}
3+
{% note warning %}
44

55
{% include [only_allow_for_olap_text](only_allow_for_olap_text.md) %}
66

ydb/docs/en/core/_includes/only_allow_for_oltp_note.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{% if oss == true and backend_name == "YDB" %}
22

3-
{% note alert %}
3+
{% note warning %}
44

55
{% include [only_allow_for_oltp_text](only_allow_for_oltp_text.md) %}
66

ydb/docs/en/core/yql/reference/syntax/alter_table/indexes.md

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,5 @@
11
# Adding, removing, and renaming a index
22

3-
{% if oss == true and backend_name == "YDB" %}
4-
5-
{% include [OLAP_not_allow_note](../../../../_includes/not_allow_for_olap_note.md) %}
6-
7-
{% endif %}
8-
93
## Adding an index {#add-index}
104

115
`ADD INDEX` — adds an index with the specified name and type for a given set of columns. Grammar:
@@ -35,6 +29,8 @@ You can also add a secondary index using the {{ ydb-short-name }} CLI [table ind
3529

3630
{% endif %}
3731

32+
{% include [not_allow_for_olap](../../../../_includes/not_allow_for_olap_note.md) %}
33+
3834
### Examples
3935

4036
A regular secondary index:
@@ -89,7 +85,6 @@ ALTER TABLE <table_name> ALTER INDEX <index_name> SET (<setting_name_1> = <value
8985

9086
{% note info %}
9187

92-
9388
These settings cannot be reset.
9489

9590
{% endnote %}
@@ -140,7 +135,6 @@ Replacement of atomic indexes under load is supported by the command [{{ ydb-cli
140135

141136
Example of index renaming:
142137

143-
144138
```yql
145139
ALTER TABLE `series` RENAME INDEX `title_index` TO `title_index_new`;
146140
```

ydb/docs/en/core/yql/reference/syntax/create_table/secondary_index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
# INDEX
22

3-
{% include [not_allow_for_olap](../../../../_includes/not_allow_for_olap_note.md) %}
4-
53
The INDEX construct is used to define a {% if concept_secondary_index %}[secondary index]({{ concept_secondary_index }}){% else %}secondary index{% endif %} in a [row-oriented](../../../../concepts/datamodel/table.md#row-oriented-tables) table:
64

75
```yql
@@ -23,6 +21,8 @@ where:
2321

2422
{% include [index_grammar_explanation.md](../_includes/index_grammar_explanation.md) %}
2523

24+
{% include [not_allow_for_olap](../../../../_includes/not_allow_for_olap_note.md) %}
25+
2626
## Example
2727

2828
```yql

ydb/docs/en/core/yql/reference/syntax/create_table/vector_index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
# Vector index
22

3-
{% include [not_allow_for_olap](../../../../_includes/not_allow_for_olap_note.md) %}
4-
53
[Vector index](../../../../concepts/glossary.md#vector-index) in [row-oriented](../../../../concepts/datamodel/table.md#row-oriented-tables) tables is created using the same syntax as [secondary indexes](secondary_index.md), by specifying `vector_kmeans_tree` as the index type. Subset of syntax available for vector indexes:
64

75
```yql
@@ -34,6 +32,8 @@ Where:
3432

3533
{% endnote %}
3634

35+
{% include [not_allow_for_olap](../../../../_includes/not_allow_for_olap_note.md) %}
36+
3737
## Example
3838

3939
```yql

ydb/docs/en/core/yql/reference/syntax/select/secondary_index.md

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,5 @@
11
# VIEW (INDEX)
22

3-
{% if oss == true and backend_name == "YDB" %}
4-
5-
{% if oss == true and backend_name == "YDB" %}
6-
7-
{% note warning %}
8-
9-
{% include [OLAP_not_allow_text](../../../../_includes/not_allow_for_olap_text.md) %}
10-
11-
{% endnote %}
12-
13-
{% endif %}
14-
15-
{% endif %}
16-
173
To make a `SELECT` by secondary index of row-oriented table statement, use the following:
184

195
```yql
@@ -22,6 +8,8 @@ SELECT *
228
WHERE …
239
```
2410

11+
{% include [not_allow_for_olap](../../../../_includes/not_allow_for_olap_note.md) %}
12+
2513
## Examples
2614

2715
* Select all the fields from the `series` row-oriented table using the `views_index` index with the `views >=someValue` criteria:

ydb/docs/en/core/yql/reference/syntax/select/vector_index.md

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,5 @@
11
# VIEW (Vector index)
22

3-
{% if oss == true and backend_name == "YDB" %}
4-
5-
{% note warning %}
6-
7-
{% include [OLAP_not_allow_text](../../../../_includes/not_allow_for_olap_text.md) %}
8-
9-
{% endnote %}
10-
11-
{% endif %}
12-
133
To select data from a row-oriented table using a [vector index](../../../../concepts/glossary.md#vector-index), use the following statements:
144

155
```yql

ydb/docs/ru/core/_includes/codec_zstd_allow_for_olap_note.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{% note alert %}
1+
{% note warning %}
22

33
{% include [codec_zstd_allow_for_olap_text](codec_zstd_allow_for_olap_text.md) %}
44

ydb/docs/ru/core/_includes/not_allow_for_olap_note.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{% if oss == true and backend_name == "YDB" %}
22

3-
{% note alert %}
3+
{% note warning %}
44

55
{% include [not_allow_for_olap_text](not_allow_for_olap_text.md) %}
66

0 commit comments

Comments
 (0)