This is an automated email from the ASF dual-hosted git repository.

jackietien pushed a commit to branch InFilterBugFix-1.1
in repository https://gitbox.apache.org/repos/asf/tsfile.git

commit 5150e66228d22af7ce6b57a20e9a5360f9da1092
Author: JackieTien97 <[email protected]>
AuthorDate: Wed Aug 28 20:53:41 2024 +0800

    Fix allSatisfy bug in InFilter
---
 java/tsfile/src/main/codegen/templates/FilterOperatorsTemplate.ftl | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/java/tsfile/src/main/codegen/templates/FilterOperatorsTemplate.ftl 
b/java/tsfile/src/main/codegen/templates/FilterOperatorsTemplate.ftl
index 8bc34671..b6f7a4c0 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<? extends Serializable> stat = statistics.get();

Reply via email to