From d4ec63dd8cbf25522dec1ff3a40947a9e479aaea Mon Sep 17 00:00:00 2001 From: "yihao.dai" <954206947@qq.com> Date: Wed, 28 Aug 2024 23:32:10 +0800 Subject: [PATCH] GH-43860: [Go][Parquet] Handle the error correctly (#43861) Signed-off-by: bigsheeper --- go/parquet/file/record_reader.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/go/parquet/file/record_reader.go b/go/parquet/file/record_reader.go index 4a8dc01fe70a1..47cae1e6b2b08 100755 --- a/go/parquet/file/record_reader.go +++ b/go/parquet/file/record_reader.go @@ -645,7 +645,7 @@ func (rr *recordReader) ReadRecords(numRecords int64) (int64, error) { } } - return recordsRead, nil + return recordsRead, rr.Err() } func (rr *recordReader) ReleaseValidBits() *memory.Buffer {