@@ -34,8 +34,8 @@ var DynamicSettings = [...]*protos.DynamicSetting{
3434 },
3535 {
3636 Name : "PEERDB_NORMALIZE_CHANNEL_BUFFER_SIZE" ,
37- Description : "Advanced setting: changes buffer size of channel PeerDB uses for queueing normalizing , " +
38- "use with PEERDB_PARALLEL_SYNC_NORMALIZE " ,
37+ Description : "Advanced setting: changes buffer size of channel PeerDB uses for queueing normalization , " +
38+ "use with PEERDB_ENABLE_PARALLEL_SYNC_NORMALIZE " ,
3939 DefaultValue : "128" ,
4040 ValueType : protos .DynconfValueType_INT ,
4141 ApplyMode : protos .DynconfApplyMode_APPLY_MODE_AFTER_RESUME ,
@@ -120,14 +120,6 @@ var DynamicSettings = [...]*protos.DynamicSetting{
120120 ApplyMode : protos .DynconfApplyMode_APPLY_MODE_NEW_MIRROR ,
121121 TargetForSetting : protos .DynconfTarget_ALL ,
122122 },
123- {
124- Name : "PEERDB_CLICKHOUSE_BINARY_FORMAT" ,
125- Description : "Binary field encoding on clickhouse destination; either raw, hex, or base64" ,
126- DefaultValue : "raw" ,
127- ValueType : protos .DynconfValueType_STRING ,
128- ApplyMode : protos .DynconfApplyMode_APPLY_MODE_AFTER_RESUME ,
129- TargetForSetting : protos .DynconfTarget_CLICKHOUSE ,
130- },
131123 {
132124 Name : "PEERDB_SNOWFLAKE_MERGE_PARALLELISM" ,
133125 Description : "Parallel MERGE statements to run for CDC mirrors with Snowflake targets. -1 for no limit" ,
@@ -136,6 +128,22 @@ var DynamicSettings = [...]*protos.DynamicSetting{
136128 ApplyMode : protos .DynconfApplyMode_APPLY_MODE_IMMEDIATE ,
137129 TargetForSetting : protos .DynconfTarget_SNOWFLAKE ,
138130 },
131+ {
132+ Name : "PEERDB_SNOWFLAKE_AUTO_COMPRESS" ,
133+ Description : "AUTO_COMPRESS option when uploading to Snowflake" ,
134+ DefaultValue : "true" ,
135+ ValueType : protos .DynconfValueType_BOOL ,
136+ ApplyMode : protos .DynconfApplyMode_APPLY_MODE_AFTER_RESUME ,
137+ TargetForSetting : protos .DynconfTarget_SNOWFLAKE ,
138+ },
139+ {
140+ Name : "PEERDB_CLICKHOUSE_BINARY_FORMAT" ,
141+ Description : "Binary field encoding on clickhouse destination; either raw, hex, or base64" ,
142+ DefaultValue : "raw" ,
143+ ValueType : protos .DynconfValueType_STRING ,
144+ ApplyMode : protos .DynconfApplyMode_APPLY_MODE_AFTER_RESUME ,
145+ TargetForSetting : protos .DynconfTarget_CLICKHOUSE ,
146+ },
139147 {
140148 Name : "PEERDB_CLICKHOUSE_AWS_S3_BUCKET_NAME" ,
141149 Description : "S3 buckets to store Avro files for mirrors with ClickHouse target" ,
@@ -554,6 +562,10 @@ func PeerDBSnowflakeMergeParallelism(ctx context.Context, env map[string]string)
554562 return dynamicConfSigned [int64 ](ctx , env , "PEERDB_SNOWFLAKE_MERGE_PARALLELISM" )
555563}
556564
565+ func PeerDBSnowflakeAutoCompress (ctx context.Context , env map [string ]string ) (bool , error ) {
566+ return dynamicConfBool (ctx , env , "PEERDB_SNOWFLAKE_AUTO_COMPRESS" )
567+ }
568+
557569func PeerDBClickHouseAWSS3BucketName (ctx context.Context , env map [string ]string ) (string , error ) {
558570 return dynLookup (ctx , env , "PEERDB_CLICKHOUSE_AWS_S3_BUCKET_NAME" )
559571}
0 commit comments