zanmato1984 commented on code in PR #47808:
URL: https://github.com/apache/arrow/pull/47808#discussion_r2428152192
##########
cpp/src/arrow/compute/kernels/scalar_if_else_test.cc:
##########
@@ -3720,6 +3720,16 @@ TEST(TestChoose, FixedSizeBinary) {
*MakeArrayOfNull(type, 5));
}
+// GH-47807: Null count in ArraySpan not updated correctly when executing
chunked.
+TEST(TestChoose, WrongNullCountForChunked) {
+ auto indices = ArrayFromJSON(int64(), "[0, 1, 0, 1, 0, null]");
+ auto values1 = ArrayFromJSON(int64(), "[10, 11, 12, 13, 14, 15]");
+ auto values2 = ChunkedArrayFromJSON(int64(), {"[100, 101]", "[102, 103, 104,
105]"});
+ ASSERT_OK_AND_ASSIGN(auto result, CallFunction("choose", {indices, values1,
values2}));
Review Comment:
Right, done.
Thanks!
--
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]