fix: bump catalog version (#1726)

This should have been done in #1714. Also add a note so that future devs
might hopefully not forget. In any case though the code also works w/o
this bump, it's just that the error message is a bit less nice ("cannot
parse IOxMetadata" instead of "unsupported catalog version").

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
pull/24376/head
Marco Neumann 2021-06-15 12:26:30 +02:00 committed by GitHub
parent 5834671760
commit 64c815dd50
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions

View File

@ -31,7 +31,7 @@ use uuid::Uuid;
/// Current version for serialized transactions.
///
/// For breaking changes, this will change.
pub const TRANSACTION_VERSION: u32 = 3;
pub const TRANSACTION_VERSION: u32 = 4;
/// File suffix for transaction files in object store.
pub const TRANSACTION_FILE_SUFFIX: &str = "txn";

View File

@ -210,6 +210,9 @@ pub type Result<T, E = Error> = std::result::Result<T, E>;
///
/// This will serialized as [JSON] into the file-level key-value Parquet metadata (under [`METADATA_KEY`]).
///
/// **Important: When changing this structure, consider bumping the
/// [catalog transaction version](crate::catalog::TRANSACTION_VERSION)!**
///
/// [JSON]: https://www.json.org/
#[allow(missing_copy_implementations)] // we want to extend this type in the future
#[derive(Serialize, Deserialize, Debug, Clone, Eq, PartialEq)]