andishgar commented on PR #46229:
URL: https://github.com/apache/arrow/pull/46229#issuecomment-2893318530
Another note:
I found that the following code results in an error when using
arrow::BinaryViewBuilder::AppendArraySlice. Is there any priority or plan to
address this?
```c++
#include<iostream>
#include <arrow/api.h>
arrow::Status Run() {
int32_t length = std::numeric_limits<int32_t>::max();
std::string input( length,'a');
arrow::StringViewBuilder builder;
ARROW_RETURN_NOT_OK(builder.Append(input));
ARROW_RETURN_NOT_OK(builder.Append(input));
ARROW_ASSIGN_OR_RAISE(auto result, builder.Finish());
arrow::ArraySpan span(*result->data());
// The following line ends to Capacity error
ARROW_RETURN_NOT_OK(builder.AppendArraySlice(span,0,2));
return arrow::Status::OK();
}
int main() {
auto status = Run();
if (!status.ok()) {
std::cerr << status.ToString() << std::endl;
}
return 0;
}
```
<details><summary>Error</summary>
<p>
Capacity error: BinaryView or StringView elements cannot reference strings
larger than 2GB
</p>
</details>
--
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]