rok commented on code in PR #47249: URL: https://github.com/apache/arrow/pull/47249#discussion_r2245824888
########## cpp/src/arrow/compute/kernels/scalar_if_else_test.cc: ########## @@ -3028,6 +3028,12 @@ TEST(TestCoalesce, Boolean) { ArrayFromJSON(type, "[true, true, false, true]")); CheckScalar("coalesce", {scalar1, values1}, ArrayFromJSON(type, "[false, false, false, false]")); + + // Regression test from https://github.com/apache/arrow/issues/47234 + auto values_with_null = ArrayFromJSON(type, "[true, false, false, false, false, null]"); + auto expected = ArrayFromJSON(type, "[true, false, false, false, false, true]"); + auto scalar2 = ScalarFromJSON(type, "true"); + CheckScalar("coalesce", {values_with_null, scalar2}, expected); Review Comment: @amoeba following your repro I'm trying the same in cpp. -- 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: github-unsubscr...@arrow.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org