Skip to content

Commit 7916213

Browse files
committed
fixes sql tables in docs and tests
1 parent 935e773 commit 7916213

File tree

6 files changed

+33
-33
lines changed

6 files changed

+33
-33
lines changed

docs/reference/query-languages/sql/sql-index-frozen.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ SHOW TABLES INCLUDE FROZEN;
1818

1919
catalog | name | type | kind
2020
---------------+---------------+----------+---------------
21-
javaRestTest |archive |TABLE |FROZEN INDEX
22-
javaRestTest |emp |TABLE |INDEX
23-
javaRestTest |employees |VIEW |ALIAS
24-
javaRestTest |library |TABLE |INDEX
21+
javaRestTest |archive |TABLE |FROZEN INDEX
22+
javaRestTest |emp |TABLE |INDEX
23+
javaRestTest |employees |VIEW |ALIAS
24+
javaRestTest |library |TABLE |INDEX
2525
```
2626

2727
```sql

docs/reference/query-languages/sql/sql-index-patterns.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ SHOW TABLES "*,-l*";
1919

2020
catalog | name | type | kind
2121
---------------+---------------+----------+---------------
22-
javaRestTest |emp |TABLE |INDEX
23-
javaRestTest |employees |VIEW |ALIAS
22+
javaRestTest |emp |TABLE |INDEX
23+
javaRestTest |employees |VIEW |ALIAS
2424
```
2525

2626
Notice the pattern is surrounded by double quotes `"`. It enumerated `*` meaning all indices however it excludes (due to `-`) all indices that start with `l`. This notation is very convenient and powerful as it allows both inclusion and exclusion, depending on the target naming convention.
@@ -66,8 +66,8 @@ SHOW TABLES LIKE 'emp%';
6666

6767
catalog | name | type | kind
6868
---------------+---------------+----------+---------------
69-
javaRestTest |emp |TABLE |INDEX
70-
javaRestTest |employees |VIEW |ALIAS
69+
javaRestTest |emp |TABLE |INDEX
70+
javaRestTest |employees |VIEW |ALIAS
7171
```
7272

7373
The pattern matches all tables that start with `emp`.

docs/reference/query-languages/sql/sql-syntax-show-tables.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@ SHOW TABLES;
3030

3131
catalog | name | type | kind
3232
---------------+---------------+----------+---------------
33-
javaRestTest |emp |TABLE |INDEX
34-
javaRestTest |employees |VIEW |ALIAS
35-
javaRestTest |library |TABLE |INDEX
33+
javaRestTest |emp |TABLE |INDEX
34+
javaRestTest |employees |VIEW |ALIAS
35+
javaRestTest |library |TABLE |INDEX
3636
```
3737

3838
Match multiple indices by using {{es}} [multi-target syntax](/reference/elasticsearch/rest-apis/api-conventions.md#api-multi-index) notation:
@@ -42,8 +42,8 @@ SHOW TABLES "*,-l*";
4242

4343
catalog | name | type | kind
4444
---------------+---------------+----------+---------------
45-
javaRestTest |emp |TABLE |INDEX
46-
javaRestTest |employees |VIEW |ALIAS
45+
javaRestTest |emp |TABLE |INDEX
46+
javaRestTest |employees |VIEW |ALIAS
4747
```
4848

4949
One can also use the `LIKE` clause to restrict the list of names to the given pattern.
@@ -55,7 +55,7 @@ SHOW TABLES LIKE 'emp';
5555

5656
catalog | name | type | kind
5757
---------------+---------------+----------+---------------
58-
javaRestTest |emp |TABLE |INDEX
58+
javaRestTest |emp |TABLE |INDEX
5959
```
6060

6161
Multiple chars:
@@ -65,8 +65,8 @@ SHOW TABLES LIKE 'emp%';
6565

6666
catalog | name | type | kind
6767
---------------+---------------+----------+---------------
68-
javaRestTest |emp |TABLE |INDEX
69-
javaRestTest |employees |VIEW |ALIAS
68+
javaRestTest |emp |TABLE |INDEX
69+
javaRestTest |employees |VIEW |ALIAS
7070
```
7171

7272
A single char:
@@ -76,7 +76,7 @@ SHOW TABLES LIKE 'em_';
7676

7777
catalog | name | type | kind
7878
---------------+---------------+----------+---------------
79-
javaRestTest |emp |TABLE |INDEX
79+
javaRestTest |emp |TABLE |INDEX
8080
```
8181

8282
Or a mixture of single and multiple chars:
@@ -86,7 +86,7 @@ SHOW TABLES LIKE '%em_';
8686

8787
catalog | name | type | kind
8888
---------------+---------------+----------+---------------
89-
javaRestTest |emp |TABLE |INDEX
89+
javaRestTest |emp |TABLE |INDEX
9090
```
9191

9292
List tables within remote clusters whose names are matched by a wildcard:

x-pack/plugin/sql/qa/server/src/main/resources/command.csv-spec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ SHOW CATALOGS;
226226

227227
name | type
228228
---------------+---------------
229-
javaRestTest |local
229+
javaRestTest |local
230230
;
231231

232232
showTables

x-pack/plugin/sql/qa/server/src/main/resources/docs/docs-frozen.csv-spec

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ SHOW TABLES INCLUDE FROZEN;
1919

2020
catalog | name | type | kind
2121
---------------+---------------+----------+---------------
22-
javaRestTest |archive |TABLE |FROZEN INDEX
23-
javaRestTest |emp |TABLE |INDEX
24-
javaRestTest |employees |VIEW |ALIAS
25-
javaRestTest |library |TABLE |INDEX
22+
javaRestTest |archive |TABLE |FROZEN INDEX
23+
javaRestTest |emp |TABLE |INDEX
24+
javaRestTest |employees |VIEW |ALIAS
25+
javaRestTest |library |TABLE |INDEX
2626

2727
// end::showTablesIncludeFrozen
2828
;

x-pack/plugin/sql/qa/server/src/main/resources/docs/docs.csv-spec

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -99,9 +99,9 @@ SHOW TABLES;
9999

100100
catalog | name | type | kind
101101
---------------+---------------+----------+---------------
102-
javaRestTest |emp |TABLE |INDEX
103-
javaRestTest |employees |VIEW |ALIAS
104-
javaRestTest |library |TABLE |INDEX
102+
javaRestTest |emp |TABLE |INDEX
103+
javaRestTest |employees |VIEW |ALIAS
104+
javaRestTest |library |TABLE |INDEX
105105

106106
// end::showTables
107107
;
@@ -112,7 +112,7 @@ SHOW TABLES LIKE 'emp';
112112

113113
catalog | name | type | kind
114114
---------------+---------------+----------+---------------
115-
javaRestTest |emp |TABLE |INDEX
115+
javaRestTest |emp |TABLE |INDEX
116116

117117
// end::showTablesLikeExact
118118
;
@@ -123,8 +123,8 @@ SHOW TABLES LIKE 'emp%';
123123

124124
catalog | name | type | kind
125125
---------------+---------------+----------+---------------
126-
javaRestTest |emp |TABLE |INDEX
127-
javaRestTest |employees |VIEW |ALIAS
126+
javaRestTest |emp |TABLE |INDEX
127+
javaRestTest |employees |VIEW |ALIAS
128128

129129
// end::showTablesLikeWildcard
130130
;
@@ -136,7 +136,7 @@ SHOW TABLES LIKE 'em_';
136136

137137
catalog | name | type | kind
138138
---------------+---------------+----------+---------------
139-
javaRestTest |emp |TABLE |INDEX
139+
javaRestTest |emp |TABLE |INDEX
140140

141141
// end::showTablesLikeOneChar
142142
;
@@ -147,7 +147,7 @@ SHOW TABLES LIKE '%em_';
147147

148148
catalog | name | type | kind
149149
---------------+---------------+----------+---------------
150-
javaRestTest |emp |TABLE |INDEX
150+
javaRestTest |emp |TABLE |INDEX
151151

152152
// end::showTablesLikeMixed
153153
;
@@ -170,8 +170,8 @@ SHOW TABLES "*,-l*";
170170

171171
catalog | name | type | kind
172172
---------------+---------------+----------+---------------
173-
javaRestTest |emp |TABLE |INDEX
174-
javaRestTest |employees |VIEW |ALIAS
173+
javaRestTest |emp |TABLE |INDEX
174+
javaRestTest |employees |VIEW |ALIAS
175175

176176
// end::showTablesEsMultiIndex
177177
;

0 commit comments

Comments
 (0)