diff --git a/processing/src/main/java/io/druid/query/aggregation/post/ConstantPostAggregator.java b/processing/src/main/java/io/druid/query/aggregation/post/ConstantPostAggregator.java index f9c1bcecbce..338a3cfcb34 100644 --- a/processing/src/main/java/io/druid/query/aggregation/post/ConstantPostAggregator.java +++ b/processing/src/main/java/io/druid/query/aggregation/post/ConstantPostAggregator.java @@ -42,6 +42,7 @@ public class ConstantPostAggregator implements PostAggregator @JsonProperty("value") Number constantValue ) { + // only value should be required for constants Preconditions.checkNotNull(constantValue, "Constant value must not be null"); this.name = name; this.constantValue = constantValue;