Skip to content

Commit

Permalink
le instead of lt
Browse files Browse the repository at this point in the history
Signed-off-by: Jay Zhan <[email protected]>
  • Loading branch information
jayzhan211 committed Jan 22, 2025
1 parent 361727a commit cee51c0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions datafusion/functions-aggregate/src/first_last.rs
Original file line number Diff line number Diff line change
Expand Up @@ -613,7 +613,7 @@ impl Accumulator for LastValueAccumulator {
orderings,
&get_sort_options(self.ordering_req.as_ref()),
)?
.is_lt()
.is_le()
{
self.update_with_new_row(&row);
}
Expand Down Expand Up @@ -652,7 +652,7 @@ impl Accumulator for LastValueAccumulator {
// version in the new data:
if !self.is_set
|| self.requirement_satisfied
|| compare_rows(&self.orderings, last_ordering, &sort_options)?.is_lt()
|| compare_rows(&self.orderings, last_ordering, &sort_options)?.is_le()
{
// Update with last value in the state. Note that we should exclude the
// is_set flag from the state. Otherwise, we will end up with a state
Expand Down

0 comments on commit cee51c0

Please sign in to comment.