SOLR-10485: Fix precommit

This commit is contained in:
Joel Bernstein 2017-04-12 17:26:30 -04:00
parent ee56af22bc
commit 1b81dcdeba
3 changed files with 2 additions and 3 deletions

View File

@ -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)

View File

@ -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;

View File

@ -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");