You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[FEA] cudf::contains(column, column) should be consistent with other contains() APIs #10725
Currently (and typically) the parameters of the contains() API should be given in the following order:
Search space
Value to search for
Such order is maintained in many places such as lists::contains and cudf::contains(column, scalar). However, the overload of cudf::contains(column, column) requires the input to be given in the opposite order. In particular, it requires cudf::contains(values to search for, search space). This makes it inconsistent with the other contains APIs and may lead to confusion.
In addition, the parameter names of that overload are called as:
Activity
jrhemstad commentedon Apr 25, 2022
https://github.com/rapidsai/cudf/blob/75f3873b87af8871c4fb85077df3dba4bbe24e2a/cpp/include/cudf/search.hpp#L140-L167
That's so ridiculous I thought it surely couldn't be true, but it is 😢
Can't believe this made it through code review #3427 (comment)
This should definitely be remedied.
Refactor `cudf::contains`, renaming and switching parameters role (#1…