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 26
26
import org .elasticsearch .xpack .esql .core .expression .NamedExpression ;
27
27
import org .elasticsearch .xpack .esql .core .tree .Source ;
28
28
import org .elasticsearch .xpack .esql .expression .Foldables ;
29
+ import org .elasticsearch .xpack .esql .inference .InferenceService ;
29
30
import org .elasticsearch .xpack .esql .optimizer .LogicalPlanPreOptimizer ;
30
31
import org .elasticsearch .xpack .esql .optimizer .LogicalPreOptimizerContext ;
31
32
import org .elasticsearch .xpack .esql .parser .EsqlParser ;
48
49
import static org .hamcrest .CoreMatchers .not ;
49
50
import static org .hamcrest .Matchers .equalTo ;
50
51
import static org .hamcrest .Matchers .hasSize ;
52
+ import static org .mockito .Mockito .mock ;
51
53
52
54
public class ApproximateTests extends ESTestCase {
53
55
54
56
private static final EsqlParser parser = new EsqlParser ();
55
57
private static final Analyzer analyzer = AnalyzerTestUtils .defaultAnalyzer ();
56
58
private static final LogicalPlanPreOptimizer preOptimizer = new LogicalPlanPreOptimizer (
57
- new LogicalPreOptimizerContext (FoldContext .small ())
59
+ new LogicalPreOptimizerContext (FoldContext .small (), mock ( InferenceService . class ) )
58
60
);
59
61
private static final CircuitBreaker breaker = newLimitedBreaker (ByteSizeValue .ofGb (1 ));
60
62
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