andishgar opened a new issue, #48376: URL: https://github.com/apache/arrow/issues/48376
### Describe the bug, including details regarding any error messages, version, and platform. As mentioned [here](https://github.com/apache/arrow/blob/19650fe620232f5e3d2dae9ff690aeb2b08d7970/cpp/thirdparty/versions.txt#L79), Arrow CMake currently uses **version 1.16 of GoogleTest**. However, as noted in [this commit](https://github.com/google/googletest/commit/59c924bc471cefea25a7cf7eb40b6c101b170b12), prior to version 1.17, GoogleTest used **union-based type punning**, which is considered **undefined behavior** in C++ (see [cppreference](https://en.cppreference.com/w/cpp/language/union.html)): > *It is undefined behavior to read from the member of a union that wasn't most recently written.* Therefore, the version of GoogleTest used by Arrow should be updated to **1.17** to avoid this UB. ### Component(s) C++ -- 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]
