amoeba opened a new issue, #38514:
URL: https://github.com/apache/arrow/issues/38514
### Describe the bug, including details regarding any error messages,
version, and platform.
During verification for Arrow 14, a few macOS aarch64 users noticed a few
failures in the Arrow C++'s `gandiva-date-time-test`
Building from a recent commit (`b42d44e32fe64c2f9e04d701300f170c9f47f3b3`)
with the `ninja-debug-gandiva` CMake preset, `ctest --output-on-failure -R
gandiva` gives the following output:
<details>
<summary>ctest output</summary>
```
Test project /Users/bryce/tmp/arrow-14-rv/arrow/cpp/build
Start 70: gandiva-internals-test
1/18 Test #70: gandiva-internals-test .................... Passed 0.26
sec
Start 71: gandiva-precompiled-test
2/18 Test #71: gandiva-precompiled-test .................. Passed 0.09
sec
Start 72: gandiva-filter-test
3/18 Test #72: gandiva-filter-test ....................... Passed 0.34
sec
Start 73: gandiva-projector-test
4/18 Test #73: gandiva-projector-test .................... Passed 2.55
sec
Start 74: gandiva-projector-build-validation-test
5/18 Test #74: gandiva-projector-build-validation-test ... Passed 0.16
sec
Start 75: gandiva-if-expr-test
6/18 Test #75: gandiva-if-expr-test ...................... Passed 0.31
sec
Start 76: gandiva-literal-test
7/18 Test #76: gandiva-literal-test ...................... Passed 0.27
sec
Start 77: gandiva-boolean-expr-test
8/18 Test #77: gandiva-boolean-expr-test ................. Passed 0.34
sec
Start 78: gandiva-binary-test
9/18 Test #78: gandiva-binary-test ....................... Passed 0.21
sec
Start 79: gandiva-date-time-test
10/18 Test #79: gandiva-date-time-test ....................***Failed 0.53
sec
Running gandiva-date-time-test, redirecting output into
/Users/bryce/tmp/arrow-14-rv/arrow/cpp/build/build/test-logs/gandiva-date-time-test.txt
(attempt 1/1)
Running main() from
/Users/bryce/tmp/arrow-14-rv/arrow/cpp/build/_deps/googletest-src/googletest/src/gtest_main.cc
[==========] Running 12 tests from 1 test suite.
[----------] Global test environment set-up.
[----------] 12 tests from TestProjector
[ RUN ] TestProjector.TestIsNull
/Users/bryce/tmp/arrow-14-rv/arrow/cpp/src/gandiva/cache.cc:50: Creating
gandiva cache with capacity of 500
/Users/bryce/tmp/arrow-14-rv/arrow/cpp/src/gandiva/engine.cc:129: Detected
CPU Name : cyclone
/Users/bryce/tmp/arrow-14-rv/arrow/cpp/src/gandiva/engine.cc:130: Detected
CPU Features:
[ OK ] TestProjector.TestIsNull (24 ms)
[ RUN ] TestProjector.TestDate32IsNull
[ OK ] TestProjector.TestDate32IsNull (20 ms)
[ RUN ] TestProjector.TestDateTime
/Users/bryce/tmp/arrow-14-rv/arrow/cpp/src/gandiva/tests/date_time_test.cc:292:
Failure
Value of: (exp_dd_from_ts)->Equals(outputs.at(5),
arrow::EqualOptions().nans_equal(true))
Actual: false
Expected: true
expected array: [
31,
2,
1,
29
] actual array: [
31,
2,
1,
30
]
[ FAILED ] TestProjector.TestDateTime (39 ms)
[ RUN ] TestProjector.TestTime
[ OK ] TestProjector.TestTime (20 ms)
[ RUN ] TestProjector.TestTimestampDiff
[ OK ] TestProjector.TestTimestampDiff (73 ms)
[ RUN ] TestProjector.TestTimestampDiffMonth
[ OK ] TestProjector.TestTimestampDiffMonth (34 ms)
[ RUN ] TestProjector.TestMonthsBetween
[ OK ] TestProjector.TestMonthsBetween (36 ms)
[ RUN ] TestProjector.TestCastTimestampFromInt64
[ OK ] TestProjector.TestCastTimestampFromInt64 (19 ms)
[ RUN ] TestProjector.TestLastDay
/Users/bryce/tmp/arrow-14-rv/arrow/cpp/src/gandiva/tests/date_time_test.cc:650:
Failure
Value of: (exp_output)->Equals(outputs.at(0),
arrow::EqualOptions().nans_equal(true))
Actual: false
Expected: true
expected array: [
2016-02-29,
2016-02-29,
2016-01-31,
2017-02-28,
2015-12-31
] actual array: [
2016-02-29,
2016-03-31,
2016-01-31,
2017-02-28,
2015-12-31
]
[ FAILED ] TestProjector.TestLastDay (34 ms)
[ RUN ] TestProjector.TestToTimestampFromInt
/Users/bryce/tmp/arrow-14-rv/arrow/cpp/src/gandiva/tests/date_time_test.cc:718:
Failure
Value of: (exp_output)->Equals(outputs.at(0),
arrow::EqualOptions().nans_equal(true))
Actual: false
Expected: true
expected array: [
1970-01-01 00:00:00.000,
2021-07-14 10:31:39.000,
null
] actual array: [
1970-01-01 00:00:00.000,
2021-07-14 09:31:39.000,
null
]
/Users/bryce/tmp/arrow-14-rv/arrow/cpp/src/gandiva/tests/date_time_test.cc:719:
Failure
Value of: (exp_output)->Equals(outputs.at(1),
arrow::EqualOptions().nans_equal(true))
Actual: false
Expected: true
expected array: [
1970-01-01 00:00:00.000,
2021-07-14 10:31:39.000,
null
] actual array: [
1970-01-01 00:00:00.000,
2021-07-14 09:31:39.000,
null
]
[ FAILED ] TestProjector.TestToTimestampFromInt (27 ms)
[ RUN ] TestProjector.TestToUtcTimestamp
[ OK ] TestProjector.TestToUtcTimestamp (23 ms)
[ RUN ] TestProjector.TestFromUtcTimestamp
/Users/bryce/tmp/arrow-14-rv/arrow/cpp/src/gandiva/tests/date_time_test.cc:829:
Failure
Value of: (exp_output)->Equals(outputs.at(0),
arrow::EqualOptions().nans_equal(true))
Actual: false
Expected: true
expected array: [
1970-01-01 06:00:00.000,
2001-01-05 04:00:00.000,
2018-03-12 02:00:00.000,
2018-03-11 02:00:00.000
] actual array: [
1970-01-01 06:00:00.000,
2001-01-05 04:00:00.000,
2018-03-12 02:00:00.000,
2018-03-11 03:00:00.000
]
[ FAILED ] TestProjector.TestFromUtcTimestamp (18 ms)
[----------] 12 tests from TestProjector (374 ms total)
[----------] Global test environment tear-down
[==========] 12 tests from 1 test suite ran. (374 ms total)
[ PASSED ] 8 tests.
[ FAILED ] 4 tests, listed below:
[ FAILED ] TestProjector.TestDateTime
[ FAILED ] TestProjector.TestLastDay
[ FAILED ] TestProjector.TestToTimestampFromInt
[ FAILED ] TestProjector.TestFromUtcTimestamp
4 FAILED TESTS
~/tmp/arrow-14-rv/arrow/cpp/build/src/gandiva/tests
Start 80: gandiva-to-string-test
11/18 Test #80: gandiva-to-string-test .................... Passed 0.15
sec
Start 81: gandiva-utf8-test
12/18 Test #81: gandiva-utf8-test ......................... Passed 0.52
sec
Start 82: gandiva-hash-test
13/18 Test #82: gandiva-hash-test ......................... Passed 0.50
sec
Start 83: gandiva-in-expr-test
14/18 Test #83: gandiva-in-expr-test ...................... Passed 0.37
sec
Start 84: gandiva-null-validity-test
15/18 Test #84: gandiva-null-validity-test ................ Passed 0.23
sec
Start 85: gandiva-decimal-test
16/18 Test #85: gandiva-decimal-test ...................... Passed 1.00
sec
Start 86: gandiva-decimal-single-test
17/18 Test #86: gandiva-decimal-single-test ............... Passed 1.37
sec
Start 87: gandiva-filter-project-test
18/18 Test #87: gandiva-filter-project-test ............... Passed 0.27
sec
94% tests passed, 1 tests failed out of 18
Label Time Summary:
gandiva-tests = 9.48 sec*proc (18 tests)
unittest = 9.48 sec*proc (18 tests)
Total Test time (real) = 9.50 sec
The following tests FAILED:
79 - gandiva-date-time-test (Failed)
Errors while running CTest
```
</details>
### Component(s)
C++ - Gandiva
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]