From 393be8c9160e583584f0eccec61b2cda48ac1c9d Mon Sep 17 00:00:00 2001 From: Anthony Abate Date: Mon, 16 Sep 2019 14:11:23 -0400 Subject: [PATCH] fix for reading large (2GB+) files --- csharp/src/Apache.Arrow/Ipc/ArrowFileReaderImplementation.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/csharp/src/Apache.Arrow/Ipc/ArrowFileReaderImplementation.cs b/csharp/src/Apache.Arrow/Ipc/ArrowFileReaderImplementation.cs index 7877773b5f415..f78d9c083f9b7 100644 --- a/csharp/src/Apache.Arrow/Ipc/ArrowFileReaderImplementation.cs +++ b/csharp/src/Apache.Arrow/Ipc/ArrowFileReaderImplementation.cs @@ -36,7 +36,7 @@ internal sealed class ArrowFileReaderImplementation : ArrowStreamReaderImplement /// /// Notes what byte position where the footer data is in the stream /// - private int _footerStartPostion; + private long _footerStartPostion; private ArrowFooter _footer; @@ -110,7 +110,7 @@ protected override void ReadSchema() ArrayPool.Shared.RentReturn(footerLength, (buffer) => { - _footerStartPostion = (int)GetFooterLengthPosition() - footerLength; + _footerStartPostion = GetFooterLengthPosition() - footerLength; BaseStream.Position = _footerStartPostion;