Skip to content

Conversation

@AndreiKingsley
Copy link
Collaborator

@AndreiKingsley AndreiKingsley commented Jun 30, 2025

Closes #1278

@AndreiKingsley
Copy link
Collaborator Author

Deprecated filterBy

@Jolanrensen Jolanrensen self-requested a review July 1, 2025 09:45
Copy link
Collaborator

@Jolanrensen Jolanrensen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great! just some small notes, as usual :)

*
* See also:
* - [drop][DataFrame.drop], which drops rows based on values within the row.
* - [distinct][DataFrame.distinct], which filters rows with duplicated values.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

*filters out? If you say "filters", it could also mean that you only keep rows with duplicate values.

*
* See also: [filter], which allows filtering rows based on values within the row.
*
* ### This Gather Overload
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Gather overload? ;P

internal const val TO_URL = "This function is replaced by `toUrl()`. $MESSAGE_1_0"
internal const val TO_URL_REPLACE = "toUrl()"

internal const val FILTER_BY = "This function is deprecated in favor of `filter { }`. $MESSAGE_1_0"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

double spaces

internal const val TO_URL_REPLACE = "toUrl()"

internal const val FILTER_BY = "This function is deprecated in favor of `filter { }`. $MESSAGE_1_0"
internal const val FILTER_BY_REPLACE = "filter { column }"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure whether the ReplaceWith can fully handle this transition... in filterBy { column }, column is a ColumnAccessor<T>, in filter { column }, it's a value T. But let's keep it like this, the user can probably figure it out.

@ExcludeFromSources
internal interface FilterByDocs

/**
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

probably don't need kdocs for this if we're gonna deprecate it, right?

@AndreiKingsley AndreiKingsley merged commit 58012fc into master Jul 1, 2025
4 of 6 checks passed
@AndreiKingsley AndreiKingsley deleted the filter_kdocs branch July 1, 2025 11:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants