Skip to content

Commit

Permalink
Add ValidateOutput() checks to the run-end selection tests
Browse files Browse the repository at this point in the history
  • Loading branch information
felipecrv committed May 20, 2023
1 parent 516f0ee commit f53be80
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
#include "arrow/array/concatenate.h"
#include "arrow/array/data.h"
#include "arrow/array/util.h"
#include "arrow/compute/kernels/test_util.h"
#include "arrow/compute/kernels/vector_run_end_selection.h"
#include "arrow/util/logging.h"

Expand Down Expand Up @@ -144,6 +145,7 @@ void DoAssertFilterOutput(const std::shared_ptr<Array>& values,
auto output = ArrayData::Make(values->type(), 0, {nullptr});
ASSERT_OK(filter_exec->Exec(output.get()));
auto output_array = MakeArray(output);
ValidateOutput(output_array);
ASSERT_ARRAYS_EQUAL(*output_array, *expected);

if (output->type->id() == Type::RUN_END_ENCODED) {
Expand Down

0 comments on commit f53be80

Please sign in to comment.