Skip to content

Commit 75ddd8b

Browse files
ES|QL: Tests for column pruning after JOIN (#127059)
1 parent 02493f3 commit 75ddd8b

File tree

2 files changed

+22
-1
lines changed

2 files changed

+22
-1
lines changed

x-pack/plugin/esql/qa/server/src/main/java/org/elasticsearch/xpack/esql/qa/rest/generative/GenerativeRestTest.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ public abstract class GenerativeRestTest extends ESRestTestCase {
5050
// Awaiting fixes
5151
"Unknown column \\[<all-fields-projected>\\]", // https://github.com/elastic/elasticsearch/issues/121741,
5252
"Plan \\[ProjectExec\\[\\[<no-fields>.* optimized incorrectly due to missing references", // https://github.com/elastic/elasticsearch/issues/125866
53-
"only supports KEYWORD or TEXT values, found expression", // https://github.com/elastic/elasticsearch/issues/126017
5453
"token recognition error at: '``", // https://github.com/elastic/elasticsearch/issues/125870
5554
"Unknown column \\[.*\\]", // https://github.com/elastic/elasticsearch/issues/126026
5655
"optimized incorrectly due to missing references", // https://github.com/elastic/elasticsearch/issues/116781

x-pack/plugin/esql/qa/testFixtures/src/main/resources/lookup-join.csv-spec

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1628,3 +1628,25 @@ French
16281628
Spanish
16291629
German
16301630
;
1631+
1632+
1633+
pruningJoinResult
1634+
required_capability: join_lookup_v12
1635+
required_capability: fix_join_masking_eval
1636+
from sample_data
1637+
| eval type = 1000
1638+
| lookup join message_types_lookup on message
1639+
| grok type "%{WORD:foo}"
1640+
| keep event_duration
1641+
;
1642+
1643+
ignoreOrder: true
1644+
event_duration:long
1645+
1756467
1646+
5033755
1647+
8268153
1648+
725448
1649+
1232382
1650+
2764889
1651+
3450233
1652+
;

0 commit comments

Comments
 (0)