From f9e7dd8cf79feb8e4db08e9ab16037ae27932d80 Mon Sep 17 00:00:00 2001 From: "Jorge C. Leitao" Date: Mon, 13 Dec 2021 07:33:36 +0000 Subject: [PATCH] Allow different versions between message and file --- src/io/ipc/read/reader.rs | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/io/ipc/read/reader.rs b/src/io/ipc/read/reader.rs index 41bf752997f..d8f09c0e9bf 100644 --- a/src/io/ipc/read/reader.rs +++ b/src/io/ipc/read/reader.rs @@ -244,14 +244,6 @@ pub fn read_batch( let message = ipc::Message::root_as_message(&block_data[..]) .map_err(|err| ArrowError::OutOfSpec(format!("Unable to get root as footer: {:?}", err)))?; - // some old test data's footer metadata is not set, so we account for that - if metadata.version != ipc::Schema::MetadataVersion::V1 && message.version() != metadata.version - { - return Err(ArrowError::OutOfSpec( - format!("Could not read IPC message as metadata versions mismatch: metadata version {:?}, message version {:?}", metadata.version, message.version()) - )); - } - let batch = get_serialized_batch(&message)?; read_record_batch(