Skip to content

Commit

Permalink
ch: set ignore_materialized_views_with_dropped_target_table to true
Browse files Browse the repository at this point in the history
  • Loading branch information
serprex committed Dec 24, 2024
1 parent 0511edd commit 4ac016d
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions flow/connectors/clickhouse/clickhouse.go
Original file line number Diff line number Diff line change
Expand Up @@ -229,8 +229,12 @@ func Connect(ctx context.Context, env map[string]string, config *protos.Clickhou
tlsSetting.RootCAs = caPool
}

// See: https://clickhouse.com/docs/en/cloud/reference/shared-merge-tree#consistency
settings := clickhouse.Settings{"select_sequential_consistency": uint64(1)}
settings := clickhouse.Settings{
// See: https://clickhouse.com/docs/en/cloud/reference/shared-merge-tree#consistency
"select_sequential_consistency": uint64(1),
// broken downstream views should not interrupt ingestion
"ignore_materialized_views_with_dropped_target_table": true,
}
if maxInsertThreads, err := peerdbenv.PeerDBClickHouseMaxInsertThreads(ctx, env); err != nil {
return nil, fmt.Errorf("failed to load max_insert_threads config: %w", err)
} else if maxInsertThreads != 0 {
Expand Down

0 comments on commit 4ac016d

Please sign in to comment.