Skip to content

Apache DataFusion SQL Query Engine

Add PartialEq, Eq traits to StatsType (#12327)

Andy Grove91b1d2bfe8f6
diff --git a/datafusion/functions-aggregate-common/src/stats.rs b/datafusion/functions-aggregate-common/src/stats.rs
index 6a11ebe36c..bcd004db78 100644
--- a/datafusion/functions-aggregate-common/src/stats.rs
+++ b/datafusion/functions-aggregate-common/src/stats.rs
@@ -17,7 +17,7 @@
/// TODO: Move this to functions-aggregate module
/// Enum used for differentiating population and sample for statistical functions
-#[derive(Debug, Clone, Copy)]
+#[derive(PartialEq, Eq, Debug, Clone, Copy)]
pub enum StatsType {
/// Population
Population,