mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-27 01:51:59 +00:00
Review fixes
This commit is contained in:
parent
a06179da00
commit
966a09fb70
@ -549,7 +549,7 @@ void MaterializedPostgreSQLConsumer::processReplicationMessage(const char * repl
|
||||
return;
|
||||
}
|
||||
|
||||
auto log_table_structure_changed = [&](std::string_view reason)
|
||||
auto log_table_structure_changed = [&](const std::string & reason)
|
||||
{
|
||||
LOG_INFO(log, "Table structure of the table {} changed ({}), "
|
||||
"will mark it as skipped from replication. "
|
||||
|
@ -447,8 +447,6 @@ StorageInfo PostgreSQLReplicationHandler::loadFromSnapshot(postgres::Connection
|
||||
assertBlocksHaveEqualStructure(input->getPort().getHeader(), block_io.pipeline.getHeader(), "postgresql replica load from snapshot");
|
||||
block_io.pipeline.complete(Pipe(std::move(input)));
|
||||
|
||||
/// TODO: make a test when we fail in the middle of inserting data from source.
|
||||
|
||||
CompletedPipelineExecutor executor(block_io.pipeline);
|
||||
executor.execute();
|
||||
|
||||
|
@ -198,7 +198,7 @@ void StorageMaterializedPostgreSQL::createNestedIfNeeded(PostgreSQLTableStructur
|
||||
auto table_id = getStorageID();
|
||||
auto tmp_nested_table_id = StorageID(table_id.database_name, getNestedTableName());
|
||||
LOG_DEBUG(log, "Creating clickhouse table for postgresql table {} (ast: {})",
|
||||
table_id.getNameForLogs(), serializeAST(*ast_create));
|
||||
table_id.getNameForLogs(), ast_create->formatForLogging());
|
||||
|
||||
InterpreterCreateQuery interpreter(ast_create, nested_context);
|
||||
interpreter.execute();
|
||||
|
Loading…
Reference in New Issue
Block a user