Skip to content

Commit 7b8ae01

Browse files
authored
feat: Add Hash trait to StatsType enum (#18382)
## Which issue does this PR close? N/A ## Rationale for this change To be able to use `derive(hash)` ## What changes are included in this PR? Add `Hash` to the `StatsType` enum ## Are these changes tested? No need ## Are there any user-facing changes? kinda
1 parent 607325a commit 7b8ae01

File tree

1 file changed

+1
-1
lines changed
  • datafusion/functions-aggregate-common/src

1 file changed

+1
-1
lines changed

datafusion/functions-aggregate-common/src/stats.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
/// TODO: Move this to functions-aggregate module
1919
/// Enum used for differentiating population and sample for statistical functions
20-
#[derive(PartialEq, Eq, Debug, Clone, Copy)]
20+
#[derive(PartialEq, Eq, Debug, Clone, Copy, Hash)]
2121
pub enum StatsType {
2222
/// Population
2323
Population,

0 commit comments

Comments
 (0)