diff --git a/processing/src/main/java/io/druid/query/select/SelectQuery.java b/processing/src/main/java/io/druid/query/select/SelectQuery.java index e2692ff0de4..ff21a9b5821 100644 --- a/processing/src/main/java/io/druid/query/select/SelectQuery.java +++ b/processing/src/main/java/io/druid/query/select/SelectQuery.java @@ -17,6 +17,7 @@ package io.druid.query.select; +import com.google.common.base.Preconditions; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeName; @@ -60,6 +61,8 @@ public class SelectQuery extends BaseQuery> this.dimensions = dimensions; this.metrics = metrics; this.pagingSpec = pagingSpec; + + Preconditions.checkNotNull(pagingSpec, "must specify a pagingSpec"); } @Override