Skip to content

Is qsv dedup stable? #80

Answered by tmtmtmtm
jqnatividad asked this question in Q&A
Oct 13, 2021 · 2 comments · 6 replies
Discussion options

You must be logged in to vote

@jqnatividad Is the behaviour of qsv dedup stable in terms of which rows get removed? My use case is that I have an ID, a bunch of other columns, and a timestamp, and I'd like to remove all but the latest entry for each ID. At the moment it seems that if I ensure that the CSV is ordered by timestamp (ascending) before a dedup -s id, this works — i.e. it's always keeping the last entry it sees for the ID. This doesn't seem to be documented, though, so I'm not sure if I can rely on it.

Replies: 2 comments 6 replies

Comment options

You must be logged in to vote
6 replies
@jqnatividad
Comment options

jqnatividad Nov 9, 2021
Maintainer Author

@tmtmtmtm
Comment options

@tmtmtmtm
Comment options

@jqnatividad
Comment options

jqnatividad Feb 14, 2023
Maintainer Author

@tmtmtmtm
Comment options

Answer selected by jqnatividad
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants