Skip to content

Commit f51681b

Browse files
committed
Added expected plan comment to optimizer test
1 parent 6255f17 commit f51681b

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

x-pack/plugin/esql/src/test/java/org/elasticsearch/xpack/esql/optimizer/PhysicalPlanOptimizerTests.java

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1132,6 +1132,30 @@ public void testPushMultipleBinaryLogicFilters() {
11321132
assertThat(rq.to(), nullValue());
11331133
}
11341134

1135+
/**
1136+
* Expects
1137+
*
1138+
* LimitExec[1000[INTEGER]]
1139+
* \_ExchangeExec[[_meta_field{f}#11, emp_no{f}#5, first_name{f}#6, gender{f}#7, hire_date{f}#12, job{f}#13, job.raw{f}#14, lang
1140+
* uages{f}#8, last_name{f}#9, long_noidx{f}#15, salary{f}#10],false]
1141+
* \_ProjectExec[[_meta_field{f}#11, emp_no{f}#5, first_name{f}#6, gender{f}#7, hire_date{f}#12, job{f}#13, job.raw{f}#14, lang
1142+
* uages{f}#8, last_name{f}#9, long_noidx{f}#15, salary{f}#10]]
1143+
* \_FieldExtractExec[_meta_field{f}#11, emp_no{f}#5, first_name{f}#6, ge..]<[],[]>
1144+
* \_EsQueryExec[test], indexMode[standard], query[
1145+
* {"bool":{"must":[
1146+
* {"bool":{"should":[
1147+
* {"esql_single_value":{"field":"first_name","next":
1148+
* {"wildcard":{"first_name":{"wildcard":"\\*Firs*","boost":1.0}}}
1149+
* "source":"starts_with(first_name, \"*Firs\")@2:9"}},
1150+
* {"esql_single_value":{"field":"first_name","next":
1151+
* {"wildcard":{"first_name":{"wildcard":"*irst\\*","boost":1.0}}},
1152+
* "source":"ends_with(first_name, \"irst*\")@2:45"}}],"boost":1.0}},
1153+
* {"esql_single_value":{"field":"last_name","next":
1154+
* {"wildcard":{"last_name":{"wildcard":"*ast","boost":1.0}}},
1155+
* "source":"ends_with(last_name, \"ast\")@3:9"}}
1156+
* ],"boost":1.0}}
1157+
* ][_doc{f}#27], limit[1000], sort[] estimatedRowSize[332]
1158+
*/
11351159
public void testPushMultipleFunctions() {
11361160
var plan = physicalPlan("""
11371161
from airports

0 commit comments

Comments
 (0)