Skip to content

Commit

Permalink
fix: distinct() now preserves order in corner cases
Browse files Browse the repository at this point in the history
  • Loading branch information
krlmlr committed Nov 12, 2023
1 parent 1c12f30 commit 4af7c41
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions R/distinct.R
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ distinct.duckplyr_df <- function(.data, ..., .keep_all = FALSE) {
relexpr_window(
relexpr_function("row_number", list()),
partitions = exprs,
order_bys = list(relexpr_reference("___row_number")),
alias = "___row_number_by"
)
))
Expand Down

0 comments on commit 4af7c41

Please sign in to comment.