mirror of https://github.com/apache/druid.git
support the case filter value is null
This commit is contained in:
parent
f0bc362981
commit
7549f02578
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue