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:
Rafael
2026-08-21 11:29:54 -03:00
co-authored by WOZCODE
parent 7de207c676
commit b3bbf2473a
2 changed files with 25 additions and 0 deletions
@@ -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 });