Skip to content

Commit 2161915

Browse files
committed
Add a comment with an example of filter push down
1 parent 52c6acb commit 2161915

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

x-pack/plugin/esql/src/test/java/org/elasticsearch/xpack/esql/optimizer/rules/logical/PushDownAndCombineFiltersTests.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,9 @@ public void testSelectivelyPushDownFilterPastFunctionAgg() {
245245
assertEquals(expected, new PushDownAndCombineFilters().apply(fb));
246246
}
247247

248+
249+
// from ... | where a > 1 | COMPLETION "some prompt" WITH reranker AS completion | where b < 2 and match(completion, some text)
250+
// => ... | where a > 1 AND b < 2| COMPLETION "some prompt" WITH reranker AS completion | match(completion, some text)
248251
public void testPushDownFilterPastCompletion() {
249252
FieldAttribute a = getFieldAttribute("a");
250253
FieldAttribute b = getFieldAttribute("b");

0 commit comments

Comments
 (0)