Skip to content

Commit

Permalink
HCK-8774: interrupt table processing on absence of db table informati…
Browse files Browse the repository at this point in the history
…on (#94)

* HCK-8774: interrupt table processing on absence of db table information

* HCK-8774: add logging for case of not found table
  • Loading branch information
WilhelmWesser authored Nov 14, 2024
1 parent cf871c2 commit ff1d3f5
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -433,6 +433,13 @@ const reverseCollectionsToJSON = logger => async (dbConnectionClient, tablesInfo
const tableInfo = await getTableInfo(dbConnectionClient, dbName, tableName, schemaName).catch(
logError(logger, 'Getting table info'),
);
if (!tableInfo) {
logger.log('error', {
type: 'warning',
message: `Can't find the information about ${tableName} table`,
});
return;
}

const [tableRows, fieldsKeyConstraints, distributionData] = await Promise.all([
containsJson(tableInfo)
Expand Down

0 comments on commit ff1d3f5

Please sign in to comment.