Skip to content

Commit

Permalink
add groupby templated make_min_aggregation factory
Browse files Browse the repository at this point in the history
  • Loading branch information
karthikeyann committed Aug 27, 2021
1 parent 5bd4321 commit 4d43263
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 6 deletions.
14 changes: 11 additions & 3 deletions cpp/tests/groupby/max_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -238,9 +238,17 @@ TEST_F(groupby_dictionary_max_test, fixed_width)
fixed_width_column_wrapper<V> expect_vals_w({ 0xABC, 0xFFF, 0xF1 });
// clang-format on

test_single_agg(keys, vals, expect_keys, expect_vals_w, cudf::make_max_aggregation());
test_single_agg(
keys, vals, expect_keys, expect_vals_w, cudf::make_max_aggregation(), force_use_sort_impl::YES);
test_single_agg(keys,
vals,
expect_keys,
expect_vals_w,
cudf::make_max_aggregation<cudf::groupby_aggregation>());
test_single_agg(keys,
vals,
expect_keys,
expect_vals_w,
cudf::make_max_aggregation<cudf::groupby_aggregation>(),
force_use_sort_impl::YES);
}

template <typename T>
Expand Down
14 changes: 11 additions & 3 deletions cpp/tests/groupby/min_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -238,9 +238,17 @@ TEST_F(groupby_dictionary_min_test, fixed_width)
fixed_width_column_wrapper<V> expect_vals_w({ 0xAAA, 0xBAA, 0x01 });
// clang-format on

test_single_agg(keys, vals, expect_keys, expect_vals_w, cudf::make_min_aggregation());
test_single_agg(
keys, vals, expect_keys, expect_vals_w, cudf::make_min_aggregation(), force_use_sort_impl::YES);
test_single_agg(keys,
vals,
expect_keys,
expect_vals_w,
cudf::make_min_aggregation<cudf::groupby_aggregation>());
test_single_agg(keys,
vals,
expect_keys,
expect_vals_w,
cudf::make_min_aggregation<cudf::groupby_aggregation>(),
force_use_sort_impl::YES);
}

template <typename T>
Expand Down

0 comments on commit 4d43263

Please sign in to comment.