From 8e146a78f53899dd7f7166512c1b73a51803b0ab Mon Sep 17 00:00:00 2001 From: Gert Hulselmans Date: Sat, 31 Jul 2021 08:14:11 +0200 Subject: [PATCH] Set Flatbuffer verification parameters to the same settings as the C++ arrow implementation. (#240) Set Flatbuffer verification parameters to the same settings as the C++ arrow implementation (ARROW-11559). This change allows reading IPC data with more than 1 milion columns. Closes: https://github.com/jorgecarleitao/arrow2/issues/231 --- src/io/ipc/read/reader.rs | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/io/ipc/read/reader.rs b/src/io/ipc/read/reader.rs index 8860426baed..648c332a39c 100644 --- a/src/io/ipc/read/reader.rs +++ b/src/io/ipc/read/reader.rs @@ -26,6 +26,7 @@ use crate::record_batch::{RecordBatch, RecordBatchReader}; use super::super::{convert, gen}; use super::super::{ARROW_MAGIC, CONTINUATION_MARKER}; use super::common::*; +use flatbuffers::VerifierOptions; type ArrayRef = Arc; @@ -95,7 +96,17 @@ pub fn read_file_metadata(reader: &mut R) -> Result