Skip to content

Commit 8ae5d05

Browse files
committed
fixes
1 parent 1632577 commit 8ae5d05

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

docs/reference/query-languages/esql/esql-commands.md

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ An {{esql}} source command produces a table, typically with data from {{es}}. An
3838
* [`GROK`](#esql-grok)
3939
* [`KEEP`](#esql-keep)
4040
* [`LIMIT`](#esql-limit)
41-
* [`LOOKUP JOIN`](#esql-lookup-join)
41+
* [preview] [`LOOKUP JOIN`](#esql-lookup-join)
4242
* [preview] [`MV_EXPAND`](#esql-mv_expand)
4343
* [`RENAME`](#esql-rename)
4444
* [`SORT`](#esql-sort)
@@ -672,6 +672,7 @@ FROM employees
672672
```esql
673673
FROM firewall_logs
674674
| LOOKUP JOIN threat_list ON source.IP
675+
| WHERE threat_level IS NOT NULL
675676
```
676677

677678
**Parameters**
@@ -706,9 +707,20 @@ FROM app_logs
706707
| LOOKUP JOIN service_owners ON service_id
707708
```
708709

709-
710710
In case of name collisions, the newly created columns will override existing columns.
711711

712+
```eqsl
713+
FROM Left
714+
| WHERE Language IS NOT NULL // works and filter TLD UK
715+
| LOOKUP JOIN Right ON Key
716+
717+
// same semantics and result when moving the WHERE clause after the filter
718+
// in fact the optimizer will move the filter before the lookup
719+
FROM Left
720+
| LOOKUP JOIN Right ON Key
721+
| WHERE Language IS NOT NULL
722+
```
723+
712724
## `MV_EXPAND` [esql-mv_expand]
713725

714726
::::{warning}

0 commit comments

Comments
 (0)