table revision number

This commit is contained in:
Filipriec
2026-08-29 08:15:49 +02:00
parent 96f8d7bf39
commit fead8685b6
8 changed files with 33 additions and 4 deletions

Binary file not shown.

View File

@@ -135,6 +135,8 @@ pub struct GetTableImportDescriptorResponse {
pub table_name: ::prost::alloc::string::String,
#[prost(int64, tag = "4")]
pub table_id: i64,
/// Version of this import contract. Send it as expected_table_revision on
/// every staged chunk so schema/rule changes refuse stale prepared data.
#[prost(int64, tag = "5")]
pub table_revision: i64,
#[prost(message, repeated, tag = "6")]

View File

@@ -95,6 +95,10 @@ pub struct StageTableDataImportRequest {
pub table_name: ::prost::alloc::string::String,
#[prost(message, repeated, tag = "3")]
pub rows: ::prost::alloc::vec::Vec<TableDataImportRow>,
/// Import-contract revision returned by GetTableImportDescriptor. A zero
/// value is accepted for older clients and snapshots the current revision.
#[prost(int64, tag = "4")]
pub expected_table_revision: i64,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TableDataImportRow {