muscles

Formats

The formats of the ClickHouse HTTP interface.

ClickHouse HTTP formats

Name the format in a FORMAT clause. The match ignores letter case. Input means INSERT ... FORMAT reads it.

NameInputOutputDescription
TabSeparatedyesyesRows as lines of tab-separated values, with special characters escaped.
TSVyesyesShort name for TabSeparated.
TabSeparatedWithNamesyesyesLike TabSeparated, with a first line of column names.
TSVWithNamesyesyesShort name for TabSeparatedWithNames.
TabSeparatedWithNamesAndTypesnoyesLike TabSeparated, with a first line of column names and a second line of column types.
TSVWithNamesAndTypesnoyesShort name for TabSeparatedWithNamesAndTypes.
TabSeparatedRawnoyesLike TabSeparated, with values written without escaping.
TSVRawnoyesShort name for TabSeparatedRaw.
CSVyesyesRows as lines of comma-separated values, with strings in double quotes.
CSVWithNamesyesyesLike CSV, with a first line of column names.
JSONEachRowyesyesOne JSON object per line, with the column names as keys.
JSONnoyesOne JSON document with the column metadata, the rows and the row count.
JSONCompactnoyesLike JSON, with each row as an array of values instead of an object.
JSONCompactEachRownoyesOne JSON array of values per line.
NativeyesyesClickHouse binary format in column blocks.
RowBinaryyesyesClickHouse binary format with the values of each row one after the other.
RowBinaryWithNamesAndTypesyesyesLike RowBinary, with a header of column names and types.