Skip to content

Commit fe63238

Browse files
ioanatialeemthompo
andauthored
Apply suggestions from code review
Co-authored-by: Liam Thompson <[email protected]>
1 parent 83f1f19 commit fe63238

File tree

1 file changed

+9
-12
lines changed
  • docs/reference/query-languages/esql/_snippets/commands/layout

1 file changed

+9
-12
lines changed

docs/reference/query-languages/esql/_snippets/commands/layout/fork.md

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ serverless: preview
55
stack: preview 9.1.0
66
```
77
8-
The `FORK` processing command runs multiple execution branches and outputs the
9-
results back into a single table.
8+
The `FORK` processing command creates multiple execution branches to operate
9+
on the same input data and combines the results in a single output table.
1010

1111
**Syntax**
1212

@@ -17,17 +17,15 @@ FORK ( <processing_commands> ) ( <processing_commands> ) ... ( <processing_comma
1717
**Description**
1818

1919
The `FORK` processing command feeds the input rows into multiple execution
20-
branches and outputs the results into a single table, enhanced with a
21-
discriminator column called `_fork`.
20+
branches and outputs the results into a single table, with a discriminator column (`_fork`) to identify which branch each row came from.
2221

23-
The values of the discriminator column `_fork` are `fork1`, `fork2`, ... and
24-
they designate which `FORK` branch the current row is coming from.
22+
The values of the discriminator column `_fork` are `fork1`, `fork2`, etc. and
23+
they designate which `FORK` branch the current row comes from.
2524
The values of the `_fork` column always start with `fork1`, which indicates that
26-
the row is coming from the first branch.
25+
the row comes from the first branch.
2726

28-
The `FORK` branches can output different columns as long as there exists no
29-
column with the same name and different data types in two different `FORK`
30-
branches.
27+
`FORK` branches can output different columns, but columns with the
28+
same name must have the same data type across all branches.
3129

3230
When a column does not exist in a `FORK` branch, but it exists in the output of
3331
other branches, `FORK` will add `null` values to the rows that have missing
@@ -56,8 +54,7 @@ Using more than one `FORK` command in a query is not supported.
5654
**Examples**
5755

5856
In the following example, each `FORK` branch returns one row.
59-
Notice how `FORK` adds a `_fork` that indicates from which row the branch is
60-
coming:
57+
Notice how `FORK` adds a `_fork` column that indicates which row the branch originates from:
6158

6259
:::{include} ../examples/fork.csv-spec/simpleFork.md
6360

0 commit comments

Comments
 (0)