andishgar opened a new issue, #51144:
URL: https://github.com/apache/arrow/issues/51144
### Describe the bug, including details regarding any error messages,
version, and platform.
The following code
```c++
TEST(TestAdaptiveUIntBuilderWithStartIntSize, MyTest) {
AdaptiveUIntBuilder builder;
ASSERT_OK(builder.Append(1));
ASSERT_OK(builder.Append(2));
ASSERT_OK(builder.Append(3));
ASSERT_OK(builder.Append(4));
std::vector<uint64_t> values{5,6,7,8};
ASSERT_OK(builder.AppendValues(values.data(),4));
auto array = builder.Finish().ValueOrDie();
ARROW_LOGGER_INFO("",array->ToString());
}
```
produces the following result because the pending data is not committed
[here](https://github.com/apache/arrow/blob/f69ec05524b0d6ed44c3fa804377332dfc085fac/cpp/src/arrow/array/builder_adaptive.cc#L352):
```text
[
1,
2,
3,
4
]
```
### 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]