From 5630ff96ce22d7328dacd618b9576dbeca1b19d9 Mon Sep 17 00:00:00 2001
From: berkaysynnada <berkay.sahin@synnada.ai>
Date: Sat, 1 Feb 2025 20:28:13 +0300
Subject: [PATCH] Update stats_v2.rs

---
 datafusion/physical-expr-common/src/stats_v2.rs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/datafusion/physical-expr-common/src/stats_v2.rs b/datafusion/physical-expr-common/src/stats_v2.rs
index a36e243695cc..18d2541cc2d3 100644
--- a/datafusion/physical-expr-common/src/stats_v2.rs
+++ b/datafusion/physical-expr-common/src/stats_v2.rs
@@ -162,7 +162,7 @@ impl StatisticsV2 {
                         return internal_err!("Variance argument of Unknown Distribution cannot be ScalarValue::Null");
                     }
                     let zero = ScalarValue::new_zero(&v.data_type())?;
-                    if !v.ge(&zero) {
+                    if v.lt(&zero) {
                         return Ok(false);
                     }
                 }