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

View File

@@ -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;
}

View File

@@ -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 {