From de550988989b084f012f00657d7bf494d85882e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Xavier=20L=C3=A9aut=C3=A9?= Date: Wed, 12 Mar 2014 10:47:23 -0700 Subject: [PATCH] add comment --- .../io/druid/query/aggregation/post/ConstantPostAggregator.java | 1 + 1 file changed, 1 insertion(+) 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;