diff --git a/processing/src/main/java/io/druid/query/filter/ExtractionDimFilter.java b/processing/src/main/java/io/druid/query/filter/ExtractionDimFilter.java index 7de7d51c8db..329ee1e6d0f 100644 --- a/processing/src/main/java/io/druid/query/filter/ExtractionDimFilter.java +++ b/processing/src/main/java/io/druid/query/filter/ExtractionDimFilter.java @@ -43,7 +43,6 @@ public class ExtractionDimFilter implements DimFilter ) { Preconditions.checkArgument(dimension != null, "dimension must not be null"); - Preconditions.checkArgument(value != null, "value must not be null"); Preconditions.checkArgument(extractionFn != null || dimExtractionFn != null, "extraction function must not be null"); this.dimension = dimension; diff --git a/processing/src/main/java/io/druid/segment/filter/ExtractionFilter.java b/processing/src/main/java/io/druid/segment/filter/ExtractionFilter.java index c47a8720a06..252209af1b9 100644 --- a/processing/src/main/java/io/druid/segment/filter/ExtractionFilter.java +++ b/processing/src/main/java/io/druid/segment/filter/ExtractionFilter.java @@ -46,7 +46,7 @@ public class ExtractionFilter implements Filter public ExtractionFilter(String dimension, String value, ExtractionFn fn) { this.dimension = dimension; - this.value = value; + this.value = Strings.nullToEmpty(value); this.fn = fn; }