mirror of https://github.com/apache/druid.git
fix cut-n-paste mistake in error message (issue #81)
This commit is contained in:
parent
8b100248a8
commit
c9d541364e
|
@ -32,7 +32,6 @@ import com.metamx.druid.query.ChainedExecutionQueryRunner;
|
||||||
import com.metamx.druid.query.QueryRunner;
|
import com.metamx.druid.query.QueryRunner;
|
||||||
import com.metamx.druid.query.QueryRunnerFactory;
|
import com.metamx.druid.query.QueryRunnerFactory;
|
||||||
import com.metamx.druid.query.QueryToolChest;
|
import com.metamx.druid.query.QueryToolChest;
|
||||||
import com.metamx.druid.query.group.GroupByQuery;
|
|
||||||
import com.metamx.druid.result.Result;
|
import com.metamx.druid.result.Result;
|
||||||
import com.metamx.druid.result.SearchResultValue;
|
import com.metamx.druid.result.SearchResultValue;
|
||||||
|
|
||||||
|
@ -80,7 +79,7 @@ public class SearchQueryRunnerFactory implements QueryRunnerFactory<Result<Searc
|
||||||
public Sequence<Result<SearchResultValue>> run(final Query<Result<SearchResultValue>> input)
|
public Sequence<Result<SearchResultValue>> run(final Query<Result<SearchResultValue>> input)
|
||||||
{
|
{
|
||||||
if (!(input instanceof SearchQuery)) {
|
if (!(input instanceof SearchQuery)) {
|
||||||
throw new ISE("Got a [%s] which isn't a %s", input.getClass(), GroupByQuery.class);
|
throw new ISE("Got a [%s] which isn't a %s", input.getClass(), SearchQuery.class);
|
||||||
}
|
}
|
||||||
|
|
||||||
final SearchQuery query = (SearchQuery) input;
|
final SearchQuery query = (SearchQuery) input;
|
||||||
|
|
|
@ -28,7 +28,6 @@ import com.metamx.druid.query.ChainedExecutionQueryRunner;
|
||||||
import com.metamx.druid.query.QueryRunner;
|
import com.metamx.druid.query.QueryRunner;
|
||||||
import com.metamx.druid.query.QueryRunnerFactory;
|
import com.metamx.druid.query.QueryRunnerFactory;
|
||||||
import com.metamx.druid.query.QueryToolChest;
|
import com.metamx.druid.query.QueryToolChest;
|
||||||
import com.metamx.druid.query.group.GroupByQuery;
|
|
||||||
import com.metamx.druid.result.Result;
|
import com.metamx.druid.result.Result;
|
||||||
import com.metamx.druid.result.TimeseriesResultValue;
|
import com.metamx.druid.result.TimeseriesResultValue;
|
||||||
|
|
||||||
|
@ -77,7 +76,7 @@ public class TimeseriesQueryRunnerFactory
|
||||||
public Sequence<Result<TimeseriesResultValue>> run(Query<Result<TimeseriesResultValue>> input)
|
public Sequence<Result<TimeseriesResultValue>> run(Query<Result<TimeseriesResultValue>> input)
|
||||||
{
|
{
|
||||||
if (!(input instanceof TimeseriesQuery)) {
|
if (!(input instanceof TimeseriesQuery)) {
|
||||||
throw new ISE("Got a [%s] which isn't a %s", input.getClass(), GroupByQuery.class);
|
throw new ISE("Got a [%s] which isn't a %s", input.getClass(), TimeseriesQuery.class);
|
||||||
}
|
}
|
||||||
|
|
||||||
return engine.process((TimeseriesQuery) input, adapter);
|
return engine.process((TimeseriesQuery) input, adapter);
|
||||||
|
|
Loading…
Reference in New Issue