Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MINOR: [C#] Handle Empty Schema (#42132)
### Rationale for this change While developing SDK encountered this error: ``` System.ArgumentOutOfRangeException : Specified argument was out of the range of valid values. (Parameter 'length') at Apache.Arrow.Flight.FlightMessageSerializer.DecodeSchema(ReadOnlyMemory`1 buffer) ``` The issue is the schema buffer is empty, and other libraries don't throw the error in this case. This PR makes this consistent with libraries for other languages. ### What changes are included in this PR? Return null if Schema buffer is empty. ### Are these changes tested? Tested against our Flight API. ### Are there any user-facing changes? Fix critical bug this inability to run request against flight service, which doesn't return schema in GetFlightInfo. Authored-by: Kirill Khramkov <[email protected]> Signed-off-by: Curt Hagenlocher <[email protected]>
- Loading branch information