Follow up to #49698

This commit is contained in:
Kseniia Sumarokova 2023-07-20 18:55:41 +02:00 committed by GitHub
parent 4b0be1e535
commit 500f1e6757
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -22,7 +22,6 @@ namespace ErrorCodes
extern const int LOGICAL_ERROR;
extern const int POSTGRESQL_REPLICATION_INTERNAL_ERROR;
extern const int BAD_ARGUMENTS;
extern const int TOO_MANY_PARTS;
}
MaterializedPostgreSQLConsumer::MaterializedPostgreSQLConsumer(
@ -591,11 +590,8 @@ void MaterializedPostgreSQLConsumer::syncTables()
}
catch (DB::Exception & e)
{
if (e.code() == ErrorCodes::TOO_MANY_PARTS)
{
/// Retry this buffer later.
storage_data.buffer.columns = result_rows.mutateColumns();
}
/// Retry this buffer later.
storage_data.buffer.columns = result_rows.mutateColumns();
throw;
}