mirror of https://github.com/apache/druid.git
Added null check for the pagingSpec on a Select Query.
This commit is contained in:
parent
437d61ed8f
commit
e6130e0fdc
|
@ -17,6 +17,7 @@
|
||||||
|
|
||||||
package io.druid.query.select;
|
package io.druid.query.select;
|
||||||
|
|
||||||
|
import com.google.common.base.Preconditions;
|
||||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
import com.fasterxml.jackson.annotation.JsonTypeName;
|
import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||||
|
@ -60,6 +61,8 @@ public class SelectQuery extends BaseQuery<Result<SelectResultValue>>
|
||||||
this.dimensions = dimensions;
|
this.dimensions = dimensions;
|
||||||
this.metrics = metrics;
|
this.metrics = metrics;
|
||||||
this.pagingSpec = pagingSpec;
|
this.pagingSpec = pagingSpec;
|
||||||
|
|
||||||
|
Preconditions.checkNotNull(pagingSpec, "must specify a pagingSpec");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in New Issue