Skip to content

Commit 24e90dd

Browse files
committed
Remove temporary changes
1 parent b4d8b6f commit 24e90dd

File tree

4 files changed

+16
-38
lines changed

4 files changed

+16
-38
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.tests.test_compute || exit /B 1
62+
%PYTHON_CMD% -m pytest -r s --pyargs pyarrow || exit /B 1

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

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,13 @@ 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;
3433
bit_util::SetBitsTo(
3534
out, out_offset, length,
3635
in.is_valid ? checked_cast<const BooleanScalar&>(in).value : false);
3736
}
3837

3938
static void CopyData(const DataType&, const uint8_t* in, const int64_t in_offset,
4039
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;
4240
arrow::internal::CopyBitmap(in, in_offset, length, out, out_offset);
4341
}
4442

@@ -93,13 +91,11 @@ struct CopyDataUtils<
9391
uint8_t* out, const int64_t out_offset, const int64_t length) {
9492
CType* begin = reinterpret_cast<CType*>(out) + out_offset;
9593
CType* end = begin + length;
96-
ARROW_LOG(INFO) << "CopyData from Scalar to offset " << out_offset << " with length " << length;
9794
std::fill(begin, end, UnboxScalar<Type>::Unbox(in));
9895
}
9996

10097
static void CopyData(const DataType&, const uint8_t* in, const int64_t in_offset,
10198
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;
10399
std::memcpy(out + out_offset * sizeof(CType), in + in_offset * sizeof(CType),
104100
length * sizeof(CType));
105101
}

cpp/src/arrow/compute/kernels/scalar_if_else_test.cc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3145,7 +3145,9 @@ TEST(TestCoalesce, Boolean) {
31453145
CheckScalar("coalesce", {scalar1, values1},
31463146
ArrayFromJSON(type, "[false, false, false, false]"));
31473147

3148-
// Regression test from https://github.com/apache/arrow/issues/47234
3148+
// Regression test for GH-47234, which was failing due to a MSVC compiler bug
3149+
// (possibly https://developercommunity.visualstudio.com/t/10912292
3150+
// or https://developercommunity.visualstudio.com/t/10945478).
31493151
auto values_with_null = ArrayFromJSON(type, "[true, false, false, false, false, null]");
31503152
auto expected = ArrayFromJSON(type, "[true, false, false, false, false, true]");
31513153
auto scalar2 = ScalarFromJSON(type, "true");

python/pyarrow/tests/test_compute.py

Lines changed: 12 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1952,46 +1952,26 @@ def test_fill_null_chunked_array(arrow_type):
19521952
assert result.equals(expected)
19531953

19541954

1955-
def test_fill_null_windows_regression1():
1955+
def test_fill_null_windows_regression():
1956+
# Regression test for GH-47234, which was failing due to a MSVC compiler bug
1957+
# (possibly https://developercommunity.visualstudio.com/t/10912292
1958+
# or https://developercommunity.visualstudio.com/t/10945478)
19561959
arr = pa.array([True, False, False, False, False, None])
19571960
s = pa.scalar(True, type=pa.bool_())
19581961

19591962
result = pa.compute.call_function("coalesce", [arr, s])
1963+
result.validate(full=True)
19601964
expected = pa.array([True, False, False, False, False, True])
1961-
1962-
assert result.equals(expected)
1963-
1964-
1965-
def test_fill_null_windows_regression2():
1966-
arr = pa.array([True, False, False, False, False, None])
1967-
s = True
1968-
1969-
result = pa.compute.call_function("coalesce", [arr, s])
1970-
expected = pa.array([True, False, False, False, False, True])
1971-
19721965
assert result.equals(expected)
19731966

1967+
for ty in [pa.int8(), pa.int16(), pa.int32(), pa.int64()]:
1968+
arr = pa.array([1, 2, 3, 4, 5, None], type=ty)
1969+
s = pa.scalar(42, type=ty)
19741970

1975-
def test_fill_null_windows_regression4():
1976-
ty = pa.int64()
1977-
arr = pa.array([1, 2, 3, 4, 5, None], type=ty)
1978-
s = pa.scalar(42, type=ty)
1979-
1980-
result = pa.compute.call_function("coalesce", [arr, s])
1981-
expected = pa.array([1, 2, 3, 4, 5, 42], type=ty)
1982-
1983-
assert result.equals(expected)
1984-
1985-
1986-
def test_fill_null_windows_regression5():
1987-
ty = pa.int32()
1988-
arr = pa.array([1, 2, 3, 4, 5, None], type=ty)
1989-
s = pa.scalar(42, type=ty)
1990-
1991-
result = pa.compute.call_function("coalesce", [arr, s])
1992-
expected = pa.array([1, 2, 3, 4, 5, 42], type=ty)
1993-
1994-
assert result.equals(expected)
1971+
result = pa.compute.call_function("coalesce", [arr, s])
1972+
result.validate(full=True)
1973+
expected = pa.array([1, 2, 3, 4, 5, 42], type=ty)
1974+
assert result.equals(expected)
19951975

19961976

19971977
def test_logical():

0 commit comments

Comments
 (0)