fixed issues with the import

This commit is contained in:
Priec
2026-09-03 08:34:05 +02:00
parent df8df2729c
commit f7535a6fd5
10 changed files with 89 additions and 16 deletions

View File

@@ -185,6 +185,9 @@ message PostTableDataResponse {
// Journal created or updated by automatic accounting, when applicable.
optional int64 journal_id = 5;
// Non-blocking data-quality warnings produced while inserting the row.
repeated string warnings = 6;
}
message BeginTableDataImportRequest {
@@ -218,9 +221,17 @@ message CommitTableDataImportRequest {
string import_id = 1;
}
message TableDataImportWarning {
// Zero-based position in the staged import, matching failed-row metadata.
int64 row_index = 1;
string table_name = 2;
string message = 3;
}
message CommitTableDataImportResponse {
bool success = 1;
int64 inserted_rows = 2;
repeated TableDataImportWarning warnings = 3;
}
message AbortTableDataImportRequest {

Binary file not shown.

View File

@@ -77,6 +77,9 @@ pub struct PostTableDataResponse {
/// Journal created or updated by automatic accounting, when applicable.
#[prost(int64, optional, tag = "5")]
pub journal_id: ::core::option::Option<i64>,
/// Non-blocking data-quality warnings produced while inserting the row.
#[prost(string, repeated, tag = "6")]
pub warnings: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct BeginTableDataImportRequest {
@@ -122,12 +125,24 @@ pub struct CommitTableDataImportRequest {
#[prost(string, tag = "1")]
pub import_id: ::prost::alloc::string::String,
}
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct TableDataImportWarning {
/// Zero-based position in the staged import, matching failed-row metadata.
#[prost(int64, tag = "1")]
pub row_index: i64,
#[prost(string, tag = "2")]
pub table_name: ::prost::alloc::string::String,
#[prost(string, tag = "3")]
pub message: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CommitTableDataImportResponse {
#[prost(bool, tag = "1")]
pub success: bool,
#[prost(int64, tag = "2")]
pub inserted_rows: i64,
#[prost(message, repeated, tag = "3")]
pub warnings: ::prost::alloc::vec::Vec<TableDataImportWarning>,
}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct AbortTableDataImportRequest {