WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Distinct KDocs are wrong #1434

@Jolanrensen

Description

@Jolanrensen

The KDocs of distinct actually show the docs of distinctBy {}:

Image

This is not how distinct { cols } functions. Distinct with columns is a shortcut for select { cols }.distinctBy { all() }.
So,
distinctBy: Removes duplicated rows based on the specified columns.
distinct: Selects the specified columns keeping only distinct rows

Metadata

Metadata

Assignees

Labels

KDocsImprovements or additions to KDocs

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions