File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
x-pack/plugin/esql/src/test/java/org/elasticsearch/xpack/esql/approximate Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 2626import org .elasticsearch .xpack .esql .core .expression .NamedExpression ;
2727import org .elasticsearch .xpack .esql .core .tree .Source ;
2828import org .elasticsearch .xpack .esql .expression .Foldables ;
29+ import org .elasticsearch .xpack .esql .inference .InferenceService ;
2930import org .elasticsearch .xpack .esql .optimizer .LogicalPlanPreOptimizer ;
3031import org .elasticsearch .xpack .esql .optimizer .LogicalPreOptimizerContext ;
3132import org .elasticsearch .xpack .esql .parser .EsqlParser ;
4849import static org .hamcrest .CoreMatchers .not ;
4950import static org .hamcrest .Matchers .equalTo ;
5051import static org .hamcrest .Matchers .hasSize ;
52+ import static org .mockito .Mockito .mock ;
5153
5254public class ApproximateTests extends ESTestCase {
5355
5456 private static final EsqlParser parser = new EsqlParser ();
5557 private static final Analyzer analyzer = AnalyzerTestUtils .defaultAnalyzer ();
5658 private static final LogicalPlanPreOptimizer preOptimizer = new LogicalPlanPreOptimizer (
57- new LogicalPreOptimizerContext (FoldContext .small ())
59+ new LogicalPreOptimizerContext (FoldContext .small (), mock ( InferenceService . class ) )
5860 );
5961 private static final CircuitBreaker breaker = newLimitedBreaker (ByteSizeValue .ofGb (1 ));
6062 private static final BigArrays bigArrays = new MockBigArrays (PageCacheRecycler .NON_RECYCLING_INSTANCE , ByteSizeValue .ofGb (1 ));
You can’t perform that action at this time.
0 commit comments