Skip to content

Commit 1d670f4

Browse files
committed
Document LU JOIN/MV_EXPAND not respecting SORT
1 parent f90b015 commit 1d670f4

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,12 @@ results, the output will contain one row for each matching combination.
4545
In case of name collisions, the newly created columns will override existing columns.
4646
::::
4747

48+
::::{warning}
49+
The output rows produced by `LOOKUP JOIN` can be in any order and may not
50+
respect preceding `SORT`s. To guarantee a certain ordering, place a `SORT` after
51+
any `LOOKUP JOIN`s.
52+
::::
53+
4854
**Examples**
4955

5056
**IP Threat correlation**: This query would allow you to see if any source

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,12 @@ MV_EXPAND column
2222
`column`
2323
: The multivalued column to expand.
2424

25+
::::{warning}
26+
The output rows produced by `MV_EXPAND` can be in any order and may not respect
27+
preceding `SORT`s. To guarantee a certain ordering, place a `SORT` after any
28+
`MV_EXPAND`s.
29+
::::
30+
2531
**Example**
2632

2733
:::{include} ../examples/mv_expand.csv-spec/simple.md

0 commit comments

Comments
 (0)