-
Notifications
You must be signed in to change notification settings - Fork 25.6k
ESQL: Document LU JOIN/MV_EXPAND not respecting SORT #127718
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 3 commits
1d670f4
c1cc777
e5643da
87ef558
4a30c20
cd68742
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -156,9 +156,23 @@ To obtain a join key with a compatible type, use a [conversion function](/refere | |
|
|
||
| For a complete list of supported data types and their internal representations, see the [Supported Field Types documentation](/reference/query-languages/esql/limitations.md#_supported_types). | ||
|
|
||
| ## Implementation details | ||
|
|
||
| This section covers key implementation aspects of `LOOKUP JOIN` that affect query behavior and results. Review these details to ensure your queries work as expected and to troubleshoot unexpected results. | ||
|
|
||
| ### Handling name collisions | ||
|
|
||
| In case of name collisions, the newly created columns will override existing columns. | ||
|
||
|
|
||
| ### Sorting behavior | ||
|
|
||
| The output rows produced by `LOOKUP JOIN` can be in any order and may not | ||
| respect preceding `SORT`s. To guarantee a certain ordering, place a `SORT` after | ||
| any `LOOKUP JOIN`s. | ||
|
|
||
| ## Limitations | ||
|
|
||
| The following are the current limitations with `LOOKUP JOIN` | ||
| The following are the current limitations with `LOOKUP JOIN`: | ||
|
|
||
| * Indices in [`lookup` mode](/reference/elasticsearch/index-settings/index-modules.md#index-mode-setting) are always single-sharded. | ||
| * Cross cluster search is unsupported initially. Both source and lookup indices must be local. | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hm, that's not really an implementation detail, that's more the semantics that the command provides.
Maybe "behavior details" or "semantic details" or "results" or something along these lines?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yup agreed that was rough placeholder— we'll go with Usage notes for future-proofery :)