Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions docs/changelog/122011.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
pr: 122011
summary: Fix JOIN command validation (not supported)
area: EQL
type: bug
issues: []
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,9 @@ Collection<Failure> verify(LogicalPlan plan) {

// start bottom-up
plan.forEachUp(p -> {
if (p.getClass().equals(Join.class)) {
failures.add(fail(p, "JOIN command is not supported"));
}
if (p.analyzed()) {
return;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -368,6 +368,13 @@ public void testJoin() {
accept(idxr, "foo where serial_event_id == 0");
}

public void testJoinCommand() {
final IndexResolution idxr = loadIndexResolution("mapping-ip.json");

assertEquals("1:1: JOIN command is not supported", error(idxr, "join [any where true] [any where true]"));
assertEquals("1:1: JOIN command is not supported", error(idxr, "join [any where true] [any where true] | tail 3"));
}

public void testMultiField() {
final IndexResolution idxr = loadIndexResolution("mapping-multi-field.json");
accept(idxr, "foo where multi_field.raw == \"bar\"");
Expand Down