diff --git a/java/tsfile/src/main/codegen/templates/FilterOperatorsTemplate.ftl b/java/tsfile/src/main/codegen/templates/FilterOperatorsTemplate.ftl index 8bc346717..b6f7a4c0e 100644 --- a/java/tsfile/src/main/codegen/templates/FilterOperatorsTemplate.ftl +++ b/java/tsfile/src/main/codegen/templates/FilterOperatorsTemplate.ftl @@ -1035,6 +1035,11 @@ public final class ${className} { return true; } + // has null value, just return false + if (metadata.hasNullValue(measurementIndex)) { + return false; + } + // All values are same if (statistics.isPresent()) { Statistics stat = statistics.get();