[ 
https://issues.apache.org/jira/browse/ARROW-8110?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Takashi Hashida updated ARROW-8110:
-----------------------------------
    Description: 
https://github.com/apache/arrow/blob/master/csharp/src/Apache.Arrow/Ipc/ArrowReaderImplementation.cs#L128

{code}
          var field = 
schema.GetFieldByIndex(recordBatchEnumerator.CurrentNodeIndex);
{code}

Flatbuf.RecordBatch.Nodes include child nodes but Schmea._fileds do not include 
child fileds.
If a NestedType array is included in the RecordBatch data, CurrentNodeIndex 
exceeds fileds length and GetFieldByIndex throws an ArgumentOutOfRange 
exception.

  was:
https://github.com/apache/arrow/blob/master/csharp/src/Apache.Arrow/Ipc/ArrowReaderImplementation.cs#L128

{code}
          var field = 
schema.GetFieldByIndex(recordBatchEnumerator.CurrentNodeIndex);
{code}

Flatbuf.RecordBatch.Nodes include child nodes but Schmea.fileds do not include 
child fileds.
If a NestedType array is included in the RecordBatch data, CurrentNodeIndex 
exceeds fileds length and GetFieldByIndex throws an ArgumentOutOfRange 
exception.


> [C#] BuildArrays fails if NestedType is included
> ------------------------------------------------
>
>                 Key: ARROW-8110
>                 URL: https://issues.apache.org/jira/browse/ARROW-8110
>             Project: Apache Arrow
>          Issue Type: Bug
>          Components: C#
>            Reporter: Takashi Hashida
>            Priority: Major
>
> https://github.com/apache/arrow/blob/master/csharp/src/Apache.Arrow/Ipc/ArrowReaderImplementation.cs#L128
> {code}
>           var field = 
> schema.GetFieldByIndex(recordBatchEnumerator.CurrentNodeIndex);
> {code}
> Flatbuf.RecordBatch.Nodes include child nodes but Schmea._fileds do not 
> include child fileds.
> If a NestedType array is included in the RecordBatch data, CurrentNodeIndex 
> exceeds fileds length and GetFieldByIndex throws an ArgumentOutOfRange 
> exception.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to