Skip to content

Commit

Permalink
Implementing feedback from PR
Browse files Browse the repository at this point in the history
  • Loading branch information
edmondop committed Jul 30, 2024
1 parent 1f49529 commit eb0ebe0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions datafusion/expr/src/udaf.rs
Original file line number Diff line number Diff line change
Expand Up @@ -254,8 +254,8 @@ impl AggregateUDF {
/// None in all other cases, used in certain optimizations or
/// or aggregate
///
pub fn get_minmax_desc(&self) -> Option<bool> {
self.inner.get_minmax_desc()
pub fn is_descending(&self) -> Option<bool> {
self.inner.is_descending()
}
}

Expand Down Expand Up @@ -551,7 +551,7 @@ pub trait AggregateUDFImpl: Debug + Send + Sync {
///
///
/// Note: this is used to use special aggregate implementations in certain conditions
fn get_minmax_desc(&self) -> Option<bool> {
fn is_descending(&self) -> Option<bool> {
None
}
}
Expand Down
2 changes: 1 addition & 1 deletion datafusion/physical-expr-common/src/aggregate/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -733,7 +733,7 @@ impl AggregateExpr for AggregateFunctionExpr {

fn get_minmax_desc(&self) -> Option<(Field, bool)> {
self.fun
.get_minmax_desc()
.is_descending()
.and_then(|flag| self.field().ok().map(|f| (f, flag)))
}
}
Expand Down

0 comments on commit eb0ebe0

Please sign in to comment.