table revision number
This commit is contained in:
@@ -143,6 +143,8 @@ message GetTableImportDescriptorResponse {
|
||||
string storage_profile_name = 2;
|
||||
string table_name = 3;
|
||||
int64 table_id = 4;
|
||||
// Version of this import contract. Send it as expected_table_revision on
|
||||
// every staged chunk so schema/rule changes refuse stale prepared data.
|
||||
int64 table_revision = 5;
|
||||
repeated ImportFieldDescriptor fields = 6;
|
||||
}
|
||||
|
||||
@@ -199,6 +199,9 @@ message StageTableDataImportRequest {
|
||||
string import_id = 1;
|
||||
string table_name = 2;
|
||||
repeated TableDataImportRow rows = 3;
|
||||
// Import-contract revision returned by GetTableImportDescriptor. A zero
|
||||
// value is accepted for older clients and snapshots the current revision.
|
||||
int64 expected_table_revision = 4;
|
||||
}
|
||||
|
||||
message TableDataImportRow {
|
||||
|
||||
Binary file not shown.
@@ -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")]
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user