neroarth94 opened a new issue #12049:
URL: https://github.com/apache/arrow/issues/12049


   I am trying to read the content of an arrow file but I was not able to find 
the functions to get the actual data from it. I am not able to find any useful 
example to read the data too. For example here.
   
   The code example for writing and reading in C#:
   `
   // Write
   var recordBatch = new Apache.Arrow.RecordBatch.Builder(memoryAllocator)
       .Append("Column A", false, col => col.Int32(array => 
array.AppendRange(Enumerable.Range(5, 15))))
       .Build();
   
   using (var stream = File.OpenWrite(filePath))
   using (var writer = new Apache.Arrow.Ipc.ArrowFileWriter(stream, 
recordBatch.Schema, true))
   {
       await writer.WriteRecordBatchAsync(recordBatch);
       await writer.WriteEndAsync();
   }
   
   // Read
   var reader = Apache.Arrow.Ipc.ArrowFileReader.FromFile(filePath);
   var readBatch = await reader.ReadNextRecordBatchAsync();
   var col = readBatch.Column(0);
   `
   
   By debugging the code, I can see the values in the col Values property but I 
have no way of accessing this information in the code.
   
![image](https://user-images.githubusercontent.com/59238910/147622497-4b858609-8506-4880-b83d-768ae504e69f.png)
   Am I missing anything or is there a different approach to read the data?


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