Skip to content

Commit b4d8b6f

Browse files
committed
Add low-level logs
1 parent aa5fbf9 commit b4d8b6f

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

ci/scripts/python_wheel_windows_test.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,4 +59,4 @@ py -0p
5959
%PYTHON_CMD% C:\arrow\ci\scripts\python_wheel_validate_contents.py --path C:\arrow\python\repaired_wheels || exit /B 1
6060

6161
@REM Execute unittest
62-
%PYTHON_CMD% -m pytest -r s --pyargs pyarrow || exit /B 1
62+
%PYTHON_CMD% -m pytest -r s --pyargs pyarrow.tests.test_compute || exit /B 1

cpp/src/arrow/compute/kernels/copy_data_internal.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,15 @@ template <>
3030
struct CopyDataUtils<BooleanType> {
3131
static void CopyData(const DataType&, const Scalar& in, const int64_t in_offset,
3232
uint8_t* out, const int64_t out_offset, const int64_t length) {
33+
ARROW_LOG(INFO) << "Boolean CopyData from Scalar to offset " << out_offset << " with length " << length;
3334
bit_util::SetBitsTo(
3435
out, out_offset, length,
3536
in.is_valid ? checked_cast<const BooleanScalar&>(in).value : false);
3637
}
3738

3839
static void CopyData(const DataType&, const uint8_t* in, const int64_t in_offset,
3940
uint8_t* out, const int64_t out_offset, const int64_t length) {
41+
ARROW_LOG(INFO) << "Boolean CopyData from Array at offset " << in_offset << " to offset " << out_offset << " with length " << length;
4042
arrow::internal::CopyBitmap(in, in_offset, length, out, out_offset);
4143
}
4244

@@ -91,11 +93,13 @@ struct CopyDataUtils<
9193
uint8_t* out, const int64_t out_offset, const int64_t length) {
9294
CType* begin = reinterpret_cast<CType*>(out) + out_offset;
9395
CType* end = begin + length;
96+
ARROW_LOG(INFO) << "CopyData from Scalar to offset " << out_offset << " with length " << length;
9497
std::fill(begin, end, UnboxScalar<Type>::Unbox(in));
9598
}
9699

97100
static void CopyData(const DataType&, const uint8_t* in, const int64_t in_offset,
98101
uint8_t* out, const int64_t out_offset, const int64_t length) {
102+
ARROW_LOG(INFO) << "CopyData from Array at offset " << in_offset << " to offset " << out_offset << " with length " << length;
99103
std::memcpy(out + out_offset * sizeof(CType), in + in_offset * sizeof(CType),
100104
length * sizeof(CType));
101105
}

0 commit comments

Comments
 (0)