mirror of https://github.com/apache/lucene.git
SOLR-10485: Fix precommit
This commit is contained in:
parent
ee56af22bc
commit
1b81dcdeba
|
@ -203,7 +203,7 @@ public class StreamHandler extends RequestHandlerBase implements SolrCoreAware,
|
||||||
.withFunctionName("significantTerms", SignificantTermsStream.class)
|
.withFunctionName("significantTerms", SignificantTermsStream.class)
|
||||||
.withFunctionName("cartesianProduct", CartesianProductStream.class)
|
.withFunctionName("cartesianProduct", CartesianProductStream.class)
|
||||||
.withFunctionName("shuffle", ShuffleStream.class)
|
.withFunctionName("shuffle", ShuffleStream.class)
|
||||||
.withFunctionName("calc", CalculatorStream.class)
|
.withFunctionName("eval", CalculatorStream.class)
|
||||||
|
|
||||||
// metrics
|
// metrics
|
||||||
.withFunctionName("min", MinMetric.class)
|
.withFunctionName("min", MinMetric.class)
|
||||||
|
|
|
@ -20,7 +20,6 @@ import java.io.IOException;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Date;
|
|
||||||
|
|
||||||
import org.apache.solr.client.solrj.io.Tuple;
|
import org.apache.solr.client.solrj.io.Tuple;
|
||||||
import org.apache.solr.client.solrj.io.comp.StreamComparator;
|
import org.apache.solr.client.solrj.io.comp.StreamComparator;
|
||||||
|
|
|
@ -4787,7 +4787,7 @@ public class StreamExpressionTest extends SolrCloudTestCase {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testCalculatorStream() throws Exception {
|
public void testCalculatorStream() throws Exception {
|
||||||
String expr = "select(calc(), add(1, 1) as result)";
|
String expr = "select(eval(), add(1, 1) as result)";
|
||||||
ModifiableSolrParams paramsLoc = new ModifiableSolrParams();
|
ModifiableSolrParams paramsLoc = new ModifiableSolrParams();
|
||||||
paramsLoc.set("expr", expr);
|
paramsLoc.set("expr", expr);
|
||||||
paramsLoc.set("qt", "/stream");
|
paramsLoc.set("qt", "/stream");
|
||||||
|
|
Loading…
Reference in New Issue