Skip to content

[Swift][FlightSQL] Processing valid RecordBatch leads to invalid offset from body's data.  #37726

@mgrazianoc

Description

@mgrazianoc

Describe the bug, including details regarding any error messages, version, and platform.

Bug

During FlightClient.doGet call, ArrowReader process an empty dataBody on a valid flight data, raising Fatal error: UnsafeRawBufferPointer.load with negative offset. However, dataHeader is present.


Details

A valid flight call tested both in python and rust was also tested in the not yet released Swift package. The ticket is a simple TEST raw byte, in order for the server to start a simple stream of RecordBatch.


Error Messages

  • Fatal error: UnsafeRawBufferPointer.load with negative offset

System details

  • Using Xcode Version 15.0 beta 8 (15A5229m)
  • Building for Apple Vision Pro Simulator.
  • Swift-Driver version: 1.87.1 Apple Swift version 5.9 (swiftlang-5.9.0.128.106 clang-1500.0.40.1)

Screenshots

s1
s2

Component(s)

Swift

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions