Skip to content

Commit

Permalink
fix for reading large (2GB+) files
Browse files Browse the repository at this point in the history
  • Loading branch information
abbotware committed Sep 16, 2019
1 parent abc7860 commit 393be8c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions csharp/src/Apache.Arrow/Ipc/ArrowFileReaderImplementation.cs
Expand Up @@ -36,7 +36,7 @@ internal sealed class ArrowFileReaderImplementation : ArrowStreamReaderImplement
/// <summary>
/// Notes what byte position where the footer data is in the stream
/// </summary>
private int _footerStartPostion;
private long _footerStartPostion;

private ArrowFooter _footer;

Expand Down Expand Up @@ -110,7 +110,7 @@ protected override void ReadSchema()

ArrayPool<byte>.Shared.RentReturn(footerLength, (buffer) =>
{
_footerStartPostion = (int)GetFooterLengthPosition() - footerLength;
_footerStartPostion = GetFooterLengthPosition() - footerLength;
BaseStream.Position = _footerStartPostion;
Expand Down

0 comments on commit 393be8c

Please sign in to comment.