fix: add alias for node_id to writer_id for backward compatibility (#25910)

pull/25904/head
Trevor Hilton 2025-01-23 22:10:16 -05:00 committed by GitHub
parent d451ef0de6
commit 07bd04b423
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 0 deletions

View File

@ -374,6 +374,8 @@ pub struct InnerCatalog {
sequence: CatalogSequenceNumber,
/// The `node_id` is the prefix that is passed in when starting up
/// (`node_identifier_prefix`)
// TODO: deprecate this alias
#[serde(alias = "writer_id")]
node_id: Arc<str>,
/// The instance_id uniquely identifies the instance that generated the catalog
instance_id: Arc<str>,

View File

@ -219,6 +219,8 @@ pub struct BufferedWriteRequest {
#[derive(Debug, Serialize, Deserialize, Eq, PartialEq, Clone)]
pub struct PersistedSnapshot {
/// The node identifier that persisted this snapshot
// TODO: deprecate this alias
#[serde(alias = "writer_id")]
pub node_id: String,
/// The next file id to be used with `ParquetFile`s when the snapshot is loaded
pub next_file_id: ParquetFileId,