v.22.2Improvement

Default Input and Output Formats for clickhouse-local

Default input and output formats for clickhouse-local that can be overridden by --input-format and --output-format. Close #30631. #34352 (李扬).
Introduces default input and output formats for clickhouse-local that can be overridden using the --input-format and --output-format command-line options.

Why it matters

This feature addresses the need to simplify data handling in clickhouse-local by providing default serialization formats for input and output. Users gain more control and flexibility when processing data locally, improving usability and customization without needing to specify formats every time.

How to use it

When running clickhouse-local, users can now rely on sensible default input and output formats. To customize these formats, use the command-line options --input-format and --output-format followed by the desired formats, for example:

clickhouse-local --input-format CSV --output-format JSONEachRow