We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e7b89c0 commit 9e93926Copy full SHA for 9e93926
src/sinks/clickhouse/config.rs
@@ -283,14 +283,8 @@ impl ClickhouseConfig {
283
// Validate that batch_encoding is only compatible with ArrowStream format
284
if self.format != Format::ArrowStream {
285
return Err(format!(
286
- "'batch_encoding' is only compatible with 'format: arrow_stream'. \
287
- Found 'format: {}'.",
288
- match self.format {
289
- Format::JsonEachRow => "json_each_row",
290
- Format::JsonAsObject => "json_as_object",
291
- Format::JsonAsString => "json_as_string",
292
- Format::ArrowStream => "arrow_stream",
293
- }
+ "'batch_encoding' is only compatible with 'format: arrow_stream'. Found 'format: {}'.",
+ self.format
294
)
295
.into());
296
}
0 commit comments