adamreeve opened a new issue, #41164:
URL: https://github.com/apache/arrow/issues/41164

   ### Describe the bug, including details regarding any error messages, 
version, and platform.
   
   Example unit test to reproduce:
   
   ```c#
   [Fact]
   public void TestConcatenateSlicedArrays()
   {
       Int32Array array0 = new Int32Array.Builder()
           .Append(new []{0, 1, 2})
           .AppendNull()
           .Append(new []{3, 4})
           .Build();
       Int32Array array1 = new Int32Array.Builder()
           .Append(new []{5, 6})
           .AppendNull()
           .Append(new [] {7, 8, 9})
           .Build();
   
       var concatenated = ArrowArrayConcatenator.Concatenate(new[]
       {
           ArrowArrayFactory.Slice(array0, 2, 3),
           ArrowArrayFactory.Slice(array1, 2, 3),
       });
   
       var expected = new Int32Array.Builder()
           .Append(2).AppendNull().Append(3)
           .AppendNull().Append(new[] { 7, 8 })
           .Build();
   
       Assert.Equal(expected, (IReadOnlyList<int?>)concatenated);
   }
   ```
   
   This fails with:
   ```
   Assert.Equal() Failure: Collections differ
              ↓ (pos 0)
   Expected: [2, null, 3, null, 7, ···]
   Actual:   [0, 1, 2, 5, 6, ···]
              ↑ (pos 0)
   ```
   
   ### 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]

Reply via email to