Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions cpp/src/sort/sort_column_impl.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,11 @@ struct simple_comparator {
__device__ bool operator()(size_type lhs, size_type rhs)
{
if (has_nulls) {
bool lhs_null{d_column.is_null(lhs)};
bool rhs_null{d_column.is_null(rhs)};
bool const lhs_null{d_column.is_null(lhs)};
bool const rhs_null{d_column.is_null(rhs)};
if (lhs_null || rhs_null) {
if (!ascending) { cuda::std::swap(lhs_null, rhs_null); }
return (null_precedence == cudf::null_order::BEFORE ? !rhs_null : !lhs_null);
return null_compare(lhs_null, rhs_null, null_precedence) ==
(ascending ? weak_ordering::LESS : weak_ordering::GREATER);
}
}

Expand Down
Loading