Skip to content

Commit 5ef77ef

Browse files
authored
Add/update source block delimeters (#83624)
Asciidoc source blocks are to be delimited with four dashes. This adds missing delimiters, and updates some that contained only three dashes. It matters for parsing purposes.
1 parent 4fbbcda commit 5ef77ef

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

docs/reference/how-to/fix-common-cluster-issues.asciidoc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -692,9 +692,9 @@ see the number of active threads in each thread pool and
692692
how many tasks are queued, how many have been rejected, and how many have completed.
693693

694694
[source,console]
695-
---
695+
----
696696
GET /_cat/thread_pool?v&s=t,n&h=type,name,node_name,active,queue,rejected,completed
697-
---
697+
----
698698

699699
**Inspect the hot threads on each node**
700700

@@ -704,9 +704,9 @@ to determine if the thread has sufficient
704704
resources to progress and gauge how quickly it is progressing.
705705

706706
[source,console]
707-
---
707+
----
708708
GET /_nodes/hot_threads
709-
---
709+
----
710710

711711
**Look for long running tasks**
712712

docs/reference/sql/functions/conditional.asciidoc

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,10 +86,12 @@ E.g.:
8686
for the following query:
8787
8888
[source, sql]
89+
----
8990
CASE WHEN a = 1 THEN null
9091
WHEN a > 2 THEN 10
9192
WHEN a > 5 THEN 'foo'
9293
END
94+
----
9395
9496
an error message would be returned, mentioning that *'foo'* is of data type *keyword*,
9597
which does not match the expected data type *integer* (based on result *10*).
@@ -105,6 +107,7 @@ interesting than every single value, CASE can create custom buckets as in the
105107
following example:
106108

107109
[source, sql]
110+
----
108111
SELECT count(*) AS count,
109112
CASE WHEN NVL(languages, 0) = 0 THEN 'zero'
110113
WHEN languages = 1 THEN 'one'
@@ -115,7 +118,7 @@ SELECT count(*) AS count,
115118
FROM employees
116119
GROUP BY lang_skills
117120
ORDER BY lang_skills;
118-
121+
----
119122
With this query, one can create normal grouping buckets for values _0, 1, 2, 3_ with
120123
descriptive names, and every value _>= 4_ falls into the _multilingual_ bucket.
121124

@@ -282,7 +285,9 @@ include-tagged::{sql-specs}/docs/docs.csv-spec[iifWithoutDefaultValue]
282285
expression. E.g.:
283286
284287
[source, sql]
288+
----
285289
IIF(a = 1, 'one', IIF(a = 2, 'two', IIF(a = 3, 'three', 'many')))
290+
----
286291
=================
287292

288293

0 commit comments

Comments
 (0)