andishgar commented on issue #46515:
URL: https://github.com/apache/arrow/issues/46515#issuecomment-2904683134

   @pitrou I have a question regarding testing.
   I need to write tests that allocate more than 14 GB of memory. I'm aware 
that ARROW_LARGE_MEMORY_TESTS is intended to handle such scenarios. However, 
would including such a test be problematic for CI builds? If so, what would be 
the recommended approach?
   
   Also, here is my test:
   ```c++
   TEST_F(TestArray, TestBinaryViewAppendArraySliceMultipleBlocks) {
     BinaryViewBuilder src_builder(pool_);
     std::string a(std::numeric_limits<int32_t>::max(), 'a');
     ASSERT_OK(src_builder.Append(a));
     ASSERT_OK(src_builder.Append(a));
     ASSERT_OK(src_builder.Append(a));
     ASSERT_OK_AND_ASSIGN(auto src, src_builder.Finish());
     ASSERT_OK(src->ValidateFull());
   
     ArraySpan span;
     span.SetMembers(*src->data());
     BinaryViewBuilder dst_builder(pool_);
     ASSERT_OK(dst_builder.AppendArraySlice(span, 0, src->length()));
     ASSERT_OK_AND_ASSIGN(auto dst, dst_builder.Finish());
     ASSERT_OK(dst->ValidateFull());
     AssertArraysEqual(*src,*dst);
   }
   ``` 


-- 
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

Reply via email to