From 9b9400803bcf4ab8d4253ad1e18d106b6b613221 Mon Sep 17 00:00:00 2001 From: Marco Neumann Date: Mon, 31 May 2021 14:33:42 +0200 Subject: [PATCH] refactor!: bump transaction version to 2 --- parquet_file/src/catalog.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/parquet_file/src/catalog.rs b/parquet_file/src/catalog.rs index 51d32d6a5c..8256b7ea2a 100644 --- a/parquet_file/src/catalog.rs +++ b/parquet_file/src/catalog.rs @@ -30,7 +30,7 @@ use uuid::Uuid; /// Current version for serialized transactions. /// /// For breaking changes, this will change. -pub const TRANSACTION_VERSION: u32 = 1; +pub const TRANSACTION_VERSION: u32 = 2; /// File suffix for transaction files in object store. pub const TRANSACTION_FILE_SUFFIX: &str = "txn"; @@ -1323,7 +1323,7 @@ mod tests { .await; assert_eq!( res.unwrap_err().to_string(), - "Format version of transaction file for revision 2 is 42 but only [1] are supported" + format!("Format version of transaction file for revision 2 is 42 but only [{}] are supported", TRANSACTION_VERSION) ); }