mgrazianoc commented on issue #37726:
URL: https://github.com/apache/arrow/issues/37726#issuecomment-1721783200
Now I'm getting back the `Fatal error: UnsafeRawBufferPointer.load with
negative offset`, raised inside the ArrowReader, with the code:
```swift
func doGet() async throws {
let ticket = FlightTicket("TEST".data(using: .utf8)!)
var recordBatches = [RecordBatch]()
try await client?.doGet(ticket, flightDataClosure: { flightData in
let reader = ArrowReader();
let result = reader.fromStream(flightData.dataBody)
switch result {
case .success(let readerResult):
for rb in readerResult.batches {
recordBatches.append(rb)
}
case .failure(let error):
throw error
}
})
let table = ArrowTable.from(recordBatches: recordBatches)
print(table)
}
```
Arrow table being sent (it raises with more complex ones), through
https://arrow.apache.org/docs/python/generated/pyarrow.flight.RecordBatchStream.html:
```txt
pyarrow.Table
TEST_STRING: string
----
TEST_STRING: [["testString"]]
```

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