Skip to content

Commit

Permalink
Insert ARROW_SCOPED_TRACE() for more context
Browse files Browse the repository at this point in the history
  • Loading branch information
cyb70289 committed Aug 9, 2022
1 parent 31d7bd6 commit ab518db
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cpp/src/arrow/compute/kernels/aggregate_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2532,6 +2532,7 @@ template <typename CType>
void CheckModes(const Datum& array, const ModeOptions options,
const std::vector<CType>& expected_modes,
const std::vector<int64_t>& expected_counts) {
ARROW_SCOPED_TRACE("Mode Options: ", options.ToString());
ASSERT_OK_AND_ASSIGN(Datum out, Mode(array, options));
ValidateOutput(out);
const StructArray out_array(out.array());
Expand All @@ -2554,6 +2555,7 @@ template <>
void CheckModes<bool>(const Datum& array, const ModeOptions options,
const std::vector<bool>& expected_modes,
const std::vector<int64_t>& expected_counts) {
ARROW_SCOPED_TRACE("Mode Options: ", options.ToString());
ASSERT_OK_AND_ASSIGN(Datum out, Mode(array, options));
ValidateOutput(out);
const StructArray out_array(out.array());
Expand Down Expand Up @@ -3339,6 +3341,7 @@ class TestPrimitiveQuantileKernel : public ::testing::Test {

for (size_t i = 0; i < this->interpolations_.size(); ++i) {
options.interpolation = this->interpolations_[i];
ARROW_SCOPED_TRACE("Quantile Options: ", options.ToString());

ASSERT_OK_AND_ASSIGN(Datum out, Quantile(array, options));
const auto& out_array = out.make_array();
Expand Down

0 comments on commit ab518db

Please sign in to comment.