You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@arrow.apache.org by "adamreeve (via GitHub)" <gi...@apache.org> on 2024/04/12 03:39:16 UTC

[I] [C#] ArrowArrayConcatenator doesn't handle non-zero offsets [arrow]

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: issues-unsubscribe@arrow.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [C#] ArrowArrayConcatenator doesn't handle non-zero offsets [arrow]

Posted by "CurtHagenlocher (via GitHub)" <gi...@apache.org>.
CurtHagenlocher commented on issue #41164:
URL: https://github.com/apache/arrow/issues/41164#issuecomment-2060302863

   Issue resolved by pull request 41245
   https://github.com/apache/arrow/pull/41245


-- 
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-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [C#] ArrowArrayConcatenator doesn't handle non-zero offsets [arrow]

Posted by "CurtHagenlocher (via GitHub)" <gi...@apache.org>.
CurtHagenlocher closed issue #41164: [C#] ArrowArrayConcatenator doesn't handle non-zero offsets
URL: https://github.com/apache/arrow/issues/41164


-- 
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: issues-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org