fix: add alias for node_id to writer_id for backward compatibility (#25910)
parent
d451ef0de6
commit
07bd04b423
|
@ -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>,
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue