mirror of
https://github.com/dadosfera/maestro.git
synced 2026-09-29 10:24:48 +00:00
FEAT(cdc): carry iceberg_table_name through the add-tables endpoint
The POST /pipelines/:pipelineId/inputs/:inputId/tables route built its CdcTable payload field-by-field and silently dropped iceberg_table_name even though inputsService.addCdcTable/the gRPC AddCdcTable call (and the protospack CdcTable message) already support it. Widen the inline request body type and thread the field into the addCdcTable payload; absent for snowflake, unchanged back-compat. Co-Authored-By: WOZCODE <contact@withwoz.com>
This commit is contained in:
@@ -1076,6 +1076,9 @@ export class PlatformApiController {
|
||||
raw: { table_schema: string; table_name: string };
|
||||
qualify: { table_schema: string; table_name: string };
|
||||
};
|
||||
// Iceberg destination only (protospack CdcTable.iceberg_table_name);
|
||||
// absent for snowflake, back-compat.
|
||||
iceberg_table_name?: string;
|
||||
},
|
||||
@User() user: RequestUser,
|
||||
) {
|
||||
@@ -1090,6 +1093,7 @@ export class PlatformApiController {
|
||||
table_name: body.table_name,
|
||||
primary_keys: body.primary_keys,
|
||||
name: body.table_name,
|
||||
iceberg_table_name: body.iceberg_table_name,
|
||||
};
|
||||
|
||||
this.logger.info('addTable: appending CDC table to DynamoDB', { inputId, tableName: body.table_name });
|
||||
|
||||
Reference in New Issue
Block a user