diff --git a/cpp/src/gandiva/projector.cc b/cpp/src/gandiva/projector.cc index 54de03963f7e7..bf98c649cd254 100644 --- a/cpp/src/gandiva/projector.cc +++ b/cpp/src/gandiva/projector.cc @@ -19,6 +19,7 @@ #include #include +#include #include #include "arrow/util/logging.h" @@ -162,6 +163,11 @@ Status Projector::Evaluate(const arrow::RecordBatch& batch, const ArrayDataVector& output_data_vecs) const { ARROW_RETURN_NOT_OK(ValidateEvaluateArgsCommon(batch)); + std::cout << "Projector::Evaluate 1:" << std::endl; + std::cout << "Projector::Evaluate 1: batch=" << &batch << std::endl; + std::cout << "Projector::Evaluate 1: selection_vector=" << selection_vector << std::endl; + std::cout << "Projector::Evaluate 1: output_data_vecs=" << &output_data_vecs << std::endl; + if (output_data_vecs.size() != output_fields_.size()) { std::stringstream ss; ss << "number of buffers for output_data_vecs is " << output_data_vecs.size() @@ -199,6 +205,12 @@ Status Projector::Evaluate(const arrow::RecordBatch& batch, ARROW_RETURN_IF(output == nullptr, Status::Invalid("Output must be non-null.")); ARROW_RETURN_IF(pool == nullptr, Status::Invalid("Memory pool must be non-null.")); + std::cout << "Projector::Evaluate 2:" << std::endl; + std::cout << "Projector::Evaluate 2: batch=" << &batch << std::endl; + std::cout << "Projector::Evaluate 2: selection_vector=" << selection_vector << std::endl; + std::cout << "Projector::Evaluate 2: pool=" << pool << std::endl; + std::cout << "Projector::Evaluate 2: output=" << output << std::endl; + auto num_rows = selection_vector == nullptr ? batch.num_rows() : selection_vector->GetNumSlots(); // Allocate the output data vecs.