Skip to content

Commit e5ad72b

Browse files
authored
Extract common optimizer tests (#52169)
1 parent fb7498e commit e5ad72b

File tree

3 files changed

+1301
-1215
lines changed

3 files changed

+1301
-1215
lines changed

x-pack/plugin/ql/src/test/java/org/elasticsearch/xpack/ql/TestUtils.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,10 @@ public static Configuration randomConfiguration(ZoneId zoneId) {
3636
randomAlphaOfLength(10));
3737
}
3838

39+
public static Literal of(Object value) {
40+
return of(Source.EMPTY, value);
41+
}
42+
3943
/**
4044
* Utility method for creating 'in-line' Literals (out of values instead of expressions).
4145
*/

0 commit comments

Comments
 (0)