Skip to content

Commit

Permalink
Fix C++ tests
Browse files Browse the repository at this point in the history
  • Loading branch information
alexowens90 committed Apr 2, 2024
1 parent e02b5a6 commit 50758b7
Showing 1 changed file with 24 additions and 4 deletions.
28 changes: 24 additions & 4 deletions cpp/arcticdb/processing/test/test_clause.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,12 @@ TEST(Clause, AggregationEmptyColumn) {
using namespace arcticdb;
auto component_manager = std::make_shared<ComponentManager>();

AggregationClause aggregation("int_repeated_values", {{"empty_sum", "sum"}, {"empty_min", "min"}, {"empty_max", "max"}, {"empty_mean", "mean"}, {"empty_count", "count"}});
AggregationClause aggregation("int_repeated_values",
{{"sum", "empty_sum", "empty_sum"},
{"min", "empty_min", "empty_min"},
{"max", "empty_max", "empty_max"},
{"mean", "empty_mean", "empty_mean"},
{"count", "empty_count", "empty_count"}});
aggregation.set_component_manager(component_manager);

size_t num_rows{100};
Expand Down Expand Up @@ -132,7 +137,12 @@ TEST(Clause, AggregationColumn)
using namespace arcticdb;
auto component_manager = std::make_shared<ComponentManager>();

AggregationClause aggregation("int_repeated_values", {{"sum_int", "sum"}, {"min_int", "min"}, {"max_int", "max"}, {"mean_int", "mean"}, {"count_int", "count"}});
AggregationClause aggregation("int_repeated_values",
{{"sum", "sum_int", "sum_int"},
{"min", "min_int", "min_int"},
{"max", "max_int", "max_int"},
{"mean", "mean_int", "mean_int"},
{"count", "count_int", "count_int"}});
aggregation.set_component_manager(component_manager);

size_t num_rows{100};
Expand All @@ -159,7 +169,12 @@ TEST(Clause, AggregationSparseColumn)
using namespace arcticdb;
auto component_manager = std::make_shared<ComponentManager>();

AggregationClause aggregation("int_repeated_values", {{"sum_int", "sum"}, {"min_int", "min"}, {"max_int", "max"}, {"mean_int", "mean"}, {"count_int", "count"}});
AggregationClause aggregation("int_repeated_values",
{{"sum", "sum_int", "sum_int"},
{"min", "min_int", "min_int"},
{"max", "max_int", "max_int"},
{"mean", "mean_int", "mean_int"},
{"count", "count_int", "count_int"}});
aggregation.set_component_manager(component_manager);

size_t num_rows{100};
Expand Down Expand Up @@ -217,7 +232,12 @@ TEST(Clause, AggregationSparseGroupby) {
using namespace arcticdb;
auto component_manager = std::make_shared<ComponentManager>();

AggregationClause aggregation("int_sparse_repeated_values", {{"sum_int", "sum"}, {"min_int", "min"}, {"max_int", "max"}, {"mean_int", "mean"}, {"count_int", "count"}});
AggregationClause aggregation("int_sparse_repeated_values",
{{"sum", "sum_int", "sum_int"},
{"min", "min_int", "min_int"},
{"max", "max_int", "max_int"},
{"mean", "mean_int", "mean_int"},
{"count", "count_int", "count_int"}});
aggregation.set_component_manager(component_manager);

size_t num_rows{100};
Expand Down

0 comments on commit 50758b7

Please sign in to comment.