fix cut-n-paste mistake in error message (issue #81)

This commit is contained in:
René Scheibe 2013-04-02 18:40:25 +02:00
parent 8b100248a8
commit c9d541364e
2 changed files with 2 additions and 4 deletions

View File

@ -32,7 +32,6 @@ import com.metamx.druid.query.ChainedExecutionQueryRunner;
import com.metamx.druid.query.QueryRunner;
import com.metamx.druid.query.QueryRunnerFactory;
import com.metamx.druid.query.QueryToolChest;
import com.metamx.druid.query.group.GroupByQuery;
import com.metamx.druid.result.Result;
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)
{
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;

View File

@ -28,7 +28,6 @@ import com.metamx.druid.query.ChainedExecutionQueryRunner;
import com.metamx.druid.query.QueryRunner;
import com.metamx.druid.query.QueryRunnerFactory;
import com.metamx.druid.query.QueryToolChest;
import com.metamx.druid.query.group.GroupByQuery;
import com.metamx.druid.result.Result;
import com.metamx.druid.result.TimeseriesResultValue;
@ -77,7 +76,7 @@ public class TimeseriesQueryRunnerFactory
public Sequence<Result<TimeseriesResultValue>> run(Query<Result<TimeseriesResultValue>> input)
{
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);