Describe the bug, including details regarding any error messages, version, and platform.
Enabling this commented out test in scalar_if_else_test_.cc produces test failures:
// TEST(TestCaseWhen, UnionBoolStringRandom) {
// for (const auto& type : std::vector<std::shared_ptr<DataType>>{
// sparse_union({field("a", boolean()), field("b", utf8())}, {2, 7}),
// dense_union({field("a", boolean()), field("b", utf8())}, {2, 7})}) {
// ARROW_SCOPED_TRACE(type->ToString());
// TestCaseWhenRandom(type);
// }
// }
Component(s)
C++