You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[C++] Arrow failed to run arrow-array-test and arrow-ipc-read-write-test on release and debug configuration with MSVC on windows #33176
Arrow failed to run arrow-array-test on release configuration and failed to run arrow-array-test and arrow-ipc-read-write-test on debug configuration with MSVC on windows. it can be reproduced on d449d15 on master branch. Could you please help look at this issue?
Casey Carter:
The TestSwapEndianArrayData.RandomData is failing due to a combination of poor design and a change we made to the MSVC STL's <random> header which shipped in Visual Studio 2022 17.4 Preview 3. This test case generates an array of lengths that are NULL with very low probability (1%) and then asserts that the first and last entries in the array are not NULLs. Assuming a proper PRNG at least one of those asserts will fail for 1.99% of PRNG seeds. Our change to 's std::uniform_int_distribution makes that distribution use random bits more efficiently, so the test case observes a different sequence of random numbers from the same seed which now fails. I validated this hypothesis with a quick hack: changing the seed used in the test case from 42 to 1729 results in the test passing.
It would be nice if this test case could be properly fixed, not by picking a different PRNG seed value that happens to succeed, but by forcing the first and last array entries to be non-NULL instead of choosing randomly.
Thanks for reporting this! I'm going through older bug issues to see if we can close them out or we need further action.
Both tests pass on current main with MSVC 19.44 (Windows Server 2022). The arrow-array-test failure came from a check in the random array generator that was removed in #14225, and the arrow-ipc-read-write-test failure was ARROW_TEST_DATA not being set. Closing as fixed.
Activity
asfimport commentedon Oct 13, 2022
Casey Carter:
The TestSwapEndianArrayData.RandomData is failing due to a combination of poor design and a change we made to the MSVC STL's
<random>header which shipped in Visual Studio 2022 17.4 Preview 3. This test case generates an array of lengths that are NULL with very low probability (1%) and then asserts that the first and last entries in the array are not NULLs. Assuming a proper PRNG at least one of those asserts will fail for 1.99% of PRNG seeds. Our change to 'sstd::uniform_int_distributionmakes that distribution use random bits more efficiently, so the test case observes a different sequence of random numbers from the same seed which now fails. I validated this hypothesis with a quick hack: changing the seed used in the test case from 42 to 1729 results in the test passing.It would be nice if this test case could be properly fixed, not by picking a different PRNG seed value that happens to succeed, but by forcing the first and last array entries to be non-NULL instead of choosing randomly.
thisisnic commentedon Nov 23, 2026
Thanks for reporting this! I'm going through older bug issues to see if we can close them out or we need further action.
Both tests pass on current main with MSVC 19.44 (Windows Server 2022). The
arrow-array-testfailure came from a check in the random array generator that was removed in #14225, and thearrow-ipc-read-write-testfailure wasARROW_TEST_DATAnot being set. Closing as fixed.