Skip to content

Commit 791a9cb

Browse files
authored
ch: set alter_sync to 1 (#2999)
1 parent c1b308d commit 791a9cb

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

flow/connectors/clickhouse/clickhouse.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,8 @@ func Connect(ctx context.Context, env map[string]string, config *protos.Clickhou
236236
"select_sequential_consistency": uint64(1),
237237
// broken downstream views should not interrupt ingestion
238238
"ignore_materialized_views_with_dropped_target_table": true,
239+
// avoid "there is no metadata of table ..."
240+
"alter_sync": uint64(1),
239241
}
240242
if maxInsertThreads, err := internal.PeerDBClickHouseMaxInsertThreads(ctx, env); err != nil {
241243
return nil, fmt.Errorf("failed to load max_insert_threads config: %w", err)

0 commit comments

Comments
 (0)