mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 16:42:05 +00:00
Fix format names in docs
This commit is contained in:
parent
25a242fa68
commit
1d9ad322ae
@ -26,17 +26,17 @@ The supported formats are:
|
|||||||
| [VerticalRaw](#verticalraw) | ✗ | ✔ |
|
| [VerticalRaw](#verticalraw) | ✗ | ✔ |
|
||||||
| [JSON](#json) | ✗ | ✔ |
|
| [JSON](#json) | ✗ | ✔ |
|
||||||
| [JSONAsString](#jsonasstring) | ✔ | ✗ |
|
| [JSONAsString](#jsonasstring) | ✔ | ✗ |
|
||||||
| [JSONString](#jsonstring) | ✗ | ✔ |
|
| [JSONStrings](#jsonstrings) | ✗ | ✔ |
|
||||||
| [JSONCompact](#jsoncompact) | ✗ | ✔ |
|
| [JSONCompact](#jsoncompact) | ✗ | ✔ |
|
||||||
| [JSONCompactString](#jsoncompactstring) | ✗ | ✔ |
|
| [JSONCompactStrings](#jsoncompactstrings) | ✗ | ✔ |
|
||||||
| [JSONEachRow](#jsoneachrow) | ✔ | ✔ |
|
| [JSONEachRow](#jsoneachrow) | ✔ | ✔ |
|
||||||
| [JSONEachRowWithProgress](#jsoneachrowwithprogress) | ✗ | ✔ |
|
| [JSONEachRowWithProgress](#jsoneachrowwithprogress) | ✗ | ✔ |
|
||||||
| [JSONStringsEachRow](#jsonstringseachrow) | ✔ | ✔ |
|
| [JSONStringsEachRow](#jsonstringseachrow) | ✔ | ✔ |
|
||||||
| [JSONStringsEachRowWithProgress](#jsonstringseachrowwithprogress) | ✗ | ✔ |
|
| [JSONStringsEachRowWithProgress](#jsonstringseachrowwithprogress) | ✗ | ✔ |
|
||||||
| [JSONCompactEachRow](#jsoncompacteachrow) | ✔ | ✔ |
|
| [JSONCompactEachRow](#jsoncompacteachrow) | ✔ | ✔ |
|
||||||
| [JSONCompactEachRowWithNamesAndTypes](#jsoncompacteachrowwithnamesandtypes) | ✔ | ✔ |
|
| [JSONCompactEachRowWithNamesAndTypes](#jsoncompacteachrowwithnamesandtypes) | ✔ | ✔ |
|
||||||
| [JSONCompactStringEachRow](#jsoncompactstringeachrow) | ✔ | ✔ |
|
| [JSONCompactStringsEachRow](#jsoncompactstringseachrow) | ✔ | ✔ |
|
||||||
| [JSONCompactStringEachRowWithNamesAndTypes](#jsoncompactstringeachrowwithnamesandtypes) | ✔ | ✔ |
|
| [JSONCompactStringsEachRowWithNamesAndTypes](#jsoncompactstringseachrowwithnamesandtypes) | ✔ | ✔ |
|
||||||
| [TSKV](#tskv) | ✔ | ✔ |
|
| [TSKV](#tskv) | ✔ | ✔ |
|
||||||
| [Pretty](#pretty) | ✗ | ✔ |
|
| [Pretty](#pretty) | ✗ | ✔ |
|
||||||
| [PrettyCompact](#prettycompact) | ✗ | ✔ |
|
| [PrettyCompact](#prettycompact) | ✗ | ✔ |
|
||||||
@ -464,7 +464,7 @@ ClickHouse supports [NULL](../sql-reference/syntax.md), which is displayed as `n
|
|||||||
- [JSONEachRow](#jsoneachrow) format
|
- [JSONEachRow](#jsoneachrow) format
|
||||||
- [output_format_json_array_of_rows](../operations/settings/settings.md#output-format-json-array-of-rows) setting
|
- [output_format_json_array_of_rows](../operations/settings/settings.md#output-format-json-array-of-rows) setting
|
||||||
|
|
||||||
## JSONString {#jsonstring}
|
## JSONStrings {#jsonstrings}
|
||||||
|
|
||||||
Differs from JSON only in that data fields are output in strings, not in typed JSON values.
|
Differs from JSON only in that data fields are output in strings, not in typed JSON values.
|
||||||
|
|
||||||
@ -541,7 +541,7 @@ Result:
|
|||||||
```
|
```
|
||||||
|
|
||||||
## JSONCompact {#jsoncompact}
|
## JSONCompact {#jsoncompact}
|
||||||
## JSONCompactString {#jsoncompactstring}
|
## JSONCompactStrings {#jsoncompactstrings}
|
||||||
|
|
||||||
Differs from JSON only in that data rows are output in arrays, not in objects.
|
Differs from JSON only in that data rows are output in arrays, not in objects.
|
||||||
|
|
||||||
@ -580,7 +580,7 @@ Example:
|
|||||||
```
|
```
|
||||||
|
|
||||||
```
|
```
|
||||||
// JSONCompactString
|
// JSONCompactStrings
|
||||||
{
|
{
|
||||||
"meta":
|
"meta":
|
||||||
[
|
[
|
||||||
@ -614,7 +614,7 @@ Example:
|
|||||||
## JSONEachRow {#jsoneachrow}
|
## JSONEachRow {#jsoneachrow}
|
||||||
## JSONStringsEachRow {#jsonstringseachrow}
|
## JSONStringsEachRow {#jsonstringseachrow}
|
||||||
## JSONCompactEachRow {#jsoncompacteachrow}
|
## JSONCompactEachRow {#jsoncompacteachrow}
|
||||||
## JSONCompactStringEachRow {#jsoncompactstringeachrow}
|
## JSONCompactStringsEachRow {#jsoncompactstringseachrow}
|
||||||
|
|
||||||
When using these formats, ClickHouse outputs rows as separated, newline-delimited JSON values, but the data as a whole is not valid JSON.
|
When using these formats, ClickHouse outputs rows as separated, newline-delimited JSON values, but the data as a whole is not valid JSON.
|
||||||
|
|
||||||
@ -639,9 +639,9 @@ Differs from `JSONEachRow`/`JSONStringsEachRow` in that ClickHouse will also yie
|
|||||||
```
|
```
|
||||||
|
|
||||||
## JSONCompactEachRowWithNamesAndTypes {#jsoncompacteachrowwithnamesandtypes}
|
## JSONCompactEachRowWithNamesAndTypes {#jsoncompacteachrowwithnamesandtypes}
|
||||||
## JSONCompactStringEachRowWithNamesAndTypes {#jsoncompactstringeachrowwithnamesandtypes}
|
## JSONCompactStringsEachRowWithNamesAndTypes {#jsoncompactstringseachrowwithnamesandtypes}
|
||||||
|
|
||||||
Differs from `JSONCompactEachRow`/`JSONCompactStringEachRow` in that the column names and types are written as the first two rows.
|
Differs from `JSONCompactEachRow`/`JSONCompactStringsEachRow` in that the column names and types are written as the first two rows.
|
||||||
|
|
||||||
```json
|
```json
|
||||||
["'hello'", "multiply(42, number)", "range(5)"]
|
["'hello'", "multiply(42, number)", "range(5)"]
|
||||||
|
@ -25,17 +25,17 @@ ClickHouse может принимать (`INSERT`) и отдавать (`SELECT
|
|||||||
| [VerticalRaw](#verticalraw) | ✗ | ✔ |
|
| [VerticalRaw](#verticalraw) | ✗ | ✔ |
|
||||||
| [JSON](#json) | ✗ | ✔ |
|
| [JSON](#json) | ✗ | ✔ |
|
||||||
| [JSONAsString](#jsonasstring) | ✔ | ✗ |
|
| [JSONAsString](#jsonasstring) | ✔ | ✗ |
|
||||||
| [JSONString](#jsonstring) | ✗ | ✔ |
|
| [JSONStrings](#jsonstrings) | ✗ | ✔ |
|
||||||
| [JSONCompact](#jsoncompact) | ✗ | ✔ |
|
| [JSONCompact](#jsoncompact) | ✗ | ✔ |
|
||||||
| [JSONCompactString](#jsoncompactstring) | ✗ | ✔ |
|
| [JSONCompactStrings](#jsoncompactstrings) | ✗ | ✔ |
|
||||||
| [JSONEachRow](#jsoneachrow) | ✔ | ✔ |
|
| [JSONEachRow](#jsoneachrow) | ✔ | ✔ |
|
||||||
| [JSONEachRowWithProgress](#jsoneachrowwithprogress) | ✗ | ✔ |
|
| [JSONEachRowWithProgress](#jsoneachrowwithprogress) | ✗ | ✔ |
|
||||||
| [JSONStringEachRow](#jsonstringeachrow) | ✔ | ✔ |
|
| [JSONStringsEachRow](#jsonstringseachrow) | ✔ | ✔ |
|
||||||
| [JSONStringEachRowWithProgress](#jsonstringeachrowwithprogress) | ✗ | ✔ |
|
| [JSONStringsEachRowWithProgress](#jsonstringseachrowwithprogress) | ✗ | ✔ |
|
||||||
| [JSONCompactEachRow](#jsoncompacteachrow) | ✔ | ✔ |
|
| [JSONCompactEachRow](#jsoncompacteachrow) | ✔ | ✔ |
|
||||||
| [JSONCompactEachRowWithNamesAndTypes](#jsoncompacteachrowwithnamesandtypes) | ✔ | ✔ |
|
| [JSONCompactEachRowWithNamesAndTypes](#jsoncompacteachrowwithnamesandtypes) | ✔ | ✔ |
|
||||||
| [JSONCompactStringEachRow](#jsoncompactstringeachrow) | ✔ | ✔ |
|
| [JSONCompactStringsEachRow](#jsoncompactstringseachrow) | ✔ | ✔ |
|
||||||
| [JSONCompactStringEachRowWithNamesAndTypes](#jsoncompactstringeachrowwithnamesandtypes) | ✔ | ✔ |
|
| [JSONCompactStringsEachRowWithNamesAndTypes](#jsoncompactstringseachrowwithnamesandtypes) | ✔ | ✔ |
|
||||||
| [TSKV](#tskv) | ✔ | ✔ |
|
| [TSKV](#tskv) | ✔ | ✔ |
|
||||||
| [Pretty](#pretty) | ✗ | ✔ |
|
| [Pretty](#pretty) | ✗ | ✔ |
|
||||||
| [PrettyCompact](#prettycompact) | ✗ | ✔ |
|
| [PrettyCompact](#prettycompact) | ✗ | ✔ |
|
||||||
@ -442,7 +442,7 @@ ClickHouse поддерживает [NULL](../sql-reference/syntax.md), кото
|
|||||||
- Формат [JSONEachRow](#jsoneachrow)
|
- Формат [JSONEachRow](#jsoneachrow)
|
||||||
- Настройка [output_format_json_array_of_rows](../operations/settings/settings.md#output-format-json-array-of-rows)
|
- Настройка [output_format_json_array_of_rows](../operations/settings/settings.md#output-format-json-array-of-rows)
|
||||||
|
|
||||||
## JSONString {#jsonstring}
|
## JSONStrings {#jsonstrings}
|
||||||
|
|
||||||
Отличается от JSON только тем, что поля данных выводятся в строках, а не в типизированных значениях JSON.
|
Отличается от JSON только тем, что поля данных выводятся в строках, а не в типизированных значениях JSON.
|
||||||
|
|
||||||
@ -519,7 +519,7 @@ SELECT * FROM json_as_string;
|
|||||||
```
|
```
|
||||||
|
|
||||||
## JSONCompact {#jsoncompact}
|
## JSONCompact {#jsoncompact}
|
||||||
## JSONCompactString {#jsoncompactstring}
|
## JSONCompactStrings {#jsoncompactstrings}
|
||||||
|
|
||||||
Отличается от JSON только тем, что строчки данных выводятся в массивах, а не в object-ах.
|
Отличается от JSON только тем, что строчки данных выводятся в массивах, а не в object-ах.
|
||||||
|
|
||||||
@ -558,7 +558,7 @@ SELECT * FROM json_as_string;
|
|||||||
```
|
```
|
||||||
|
|
||||||
```json
|
```json
|
||||||
// JSONCompactString
|
// JSONCompactStrings
|
||||||
{
|
{
|
||||||
"meta":
|
"meta":
|
||||||
[
|
[
|
||||||
@ -590,9 +590,9 @@ SELECT * FROM json_as_string;
|
|||||||
```
|
```
|
||||||
|
|
||||||
## JSONEachRow {#jsoneachrow}
|
## JSONEachRow {#jsoneachrow}
|
||||||
## JSONStringEachRow {#jsonstringeachrow}
|
## JSONStringsEachRow {#jsonstringseachrow}
|
||||||
## JSONCompactEachRow {#jsoncompacteachrow}
|
## JSONCompactEachRow {#jsoncompacteachrow}
|
||||||
## JSONCompactStringEachRow {#jsoncompactstringeachrow}
|
## JSONCompactStringsEachRow {#jsoncompactstringseachrow}
|
||||||
|
|
||||||
При использовании этих форматов ClickHouse выводит каждую запись как значения JSON (каждое значение отдельной строкой), при этом данные в целом — невалидный JSON.
|
При использовании этих форматов ClickHouse выводит каждую запись как значения JSON (каждое значение отдельной строкой), при этом данные в целом — невалидный JSON.
|
||||||
|
|
||||||
@ -605,9 +605,9 @@ SELECT * FROM json_as_string;
|
|||||||
При вставке данных вы должны предоставить отдельное значение JSON для каждой строки.
|
При вставке данных вы должны предоставить отдельное значение JSON для каждой строки.
|
||||||
|
|
||||||
## JSONEachRowWithProgress {#jsoneachrowwithprogress}
|
## JSONEachRowWithProgress {#jsoneachrowwithprogress}
|
||||||
## JSONStringEachRowWithProgress {#jsonstringeachrowwithprogress}
|
## JSONStringsEachRowWithProgress {#jsonstringseachrowwithprogress}
|
||||||
|
|
||||||
Отличается от `JSONEachRow`/`JSONStringEachRow` тем, что ClickHouse будет выдавать информацию о ходе выполнения в виде значений JSON.
|
Отличается от `JSONEachRow`/`JSONStringsEachRow` тем, что ClickHouse будет выдавать информацию о ходе выполнения в виде значений JSON.
|
||||||
|
|
||||||
```json
|
```json
|
||||||
{"row":{"'hello'":"hello","multiply(42, number)":"0","range(5)":[0,1,2,3,4]}}
|
{"row":{"'hello'":"hello","multiply(42, number)":"0","range(5)":[0,1,2,3,4]}}
|
||||||
@ -617,9 +617,9 @@ SELECT * FROM json_as_string;
|
|||||||
```
|
```
|
||||||
|
|
||||||
## JSONCompactEachRowWithNamesAndTypes {#jsoncompacteachrowwithnamesandtypes}
|
## JSONCompactEachRowWithNamesAndTypes {#jsoncompacteachrowwithnamesandtypes}
|
||||||
## JSONCompactStringEachRowWithNamesAndTypes {#jsoncompactstringeachrowwithnamesandtypes}
|
## JSONCompactStringsEachRowWithNamesAndTypes {#jsoncompactstringseachrowwithnamesandtypes}
|
||||||
|
|
||||||
Отличается от `JSONCompactEachRow`/`JSONCompactStringEachRow` тем, что имена и типы столбцов записываются как первые две строки.
|
Отличается от `JSONCompactEachRow`/`JSONCompactStringsEachRow` тем, что имена и типы столбцов записываются как первые две строки.
|
||||||
|
|
||||||
```json
|
```json
|
||||||
["'hello'", "multiply(42, number)", "range(5)"]
|
["'hello'", "multiply(42, number)", "range(5)"]
|
||||||
|
@ -26,17 +26,17 @@ ClickHouse可以接受和返回各种格式的数据。受支持的输入格式
|
|||||||
| [VerticalRaw](#verticalraw) | ✗ | ✔ |
|
| [VerticalRaw](#verticalraw) | ✗ | ✔ |
|
||||||
| [JSON](#json) | ✗ | ✔ |
|
| [JSON](#json) | ✗ | ✔ |
|
||||||
| [JSONAsString](#jsonasstring) | ✔ | ✗ |
|
| [JSONAsString](#jsonasstring) | ✔ | ✗ |
|
||||||
| [JSONString](#jsonstring) | ✗ | ✔ |
|
| [JSONStrings](#jsonstrings) | ✗ | ✔ |
|
||||||
| [JSONCompact](#jsoncompact) | ✗ | ✔ |
|
| [JSONCompact](#jsoncompact) | ✗ | ✔ |
|
||||||
| [JSONCompactString](#jsoncompactstring) | ✗ | ✔ |
|
| [JSONCompactStrings](#jsoncompactstrings) | ✗ | ✔ |
|
||||||
| [JSONEachRow](#jsoneachrow) | ✔ | ✔ |
|
| [JSONEachRow](#jsoneachrow) | ✔ | ✔ |
|
||||||
| [JSONEachRowWithProgress](#jsoneachrowwithprogress) | ✗ | ✔ |
|
| [JSONEachRowWithProgress](#jsoneachrowwithprogress) | ✗ | ✔ |
|
||||||
| [JSONStringsEachRow](#jsonstringseachrow) | ✔ | ✔ |
|
| [JSONStringsEachRow](#jsonstringseachrow) | ✔ | ✔ |
|
||||||
| [JSONStringsEachRowWithProgress](#jsonstringseachrowwithprogress) | ✗ | ✔ |
|
| [JSONStringsEachRowWithProgress](#jsonstringseachrowwithprogress) | ✗ | ✔ |
|
||||||
| [JSONCompactEachRow](#jsoncompacteachrow) | ✔ | ✔ |
|
| [JSONCompactEachRow](#jsoncompacteachrow) | ✔ | ✔ |
|
||||||
| [JSONCompactEachRowWithNamesAndTypes](#jsoncompacteachrowwithnamesandtypes) | ✔ | ✔ |
|
| [JSONCompactEachRowWithNamesAndTypes](#jsoncompacteachrowwithnamesandtypes) | ✔ | ✔ |
|
||||||
| [JSONCompactStringEachRow](#jsoncompactstringeachrow) | ✔ | ✔ |
|
| [JSONCompactStringsEachRow](#jsoncompactstringseachrow) | ✔ | ✔ |
|
||||||
| [JSONCompactStringEachRowWithNamesAndTypes](#jsoncompactstringeachrowwithnamesandtypes) | ✔ | ✔ |
|
| [JSONCompactStringsEachRowWithNamesAndTypes](#jsoncompactstringseachrowwithnamesandtypes) | ✔ | ✔ |
|
||||||
| [TSKV](#tskv) | ✔ | ✔ |
|
| [TSKV](#tskv) | ✔ | ✔ |
|
||||||
| [Pretty](#pretty) | ✗ | ✔ |
|
| [Pretty](#pretty) | ✗ | ✔ |
|
||||||
| [PrettyCompact](#prettycompact) | ✗ | ✔ |
|
| [PrettyCompact](#prettycompact) | ✗ | ✔ |
|
||||||
@ -465,7 +465,7 @@ ClickHouse支持[NULL](../sql-reference/syntax.md), 在JSON输出中显示为`nu
|
|||||||
- [JSONEachRow](#jsoneachrow)格式
|
- [JSONEachRow](#jsoneachrow)格式
|
||||||
- [output_format_json_array_of_rows](../operations/settings/settings.md#output-format-json-array-of-rows)设置
|
- [output_format_json_array_of_rows](../operations/settings/settings.md#output-format-json-array-of-rows)设置
|
||||||
|
|
||||||
## JSONString {#jsonstring}
|
## JSONStrings {#jsonstrings}
|
||||||
|
|
||||||
与JSON的不同之处在于数据字段以字符串输出,而不是以类型化JSON值输出。
|
与JSON的不同之处在于数据字段以字符串输出,而不是以类型化JSON值输出。
|
||||||
|
|
||||||
@ -543,7 +543,7 @@ SELECT * FROM json_as_string;
|
|||||||
```
|
```
|
||||||
|
|
||||||
## JSONCompact {#jsoncompact}
|
## JSONCompact {#jsoncompact}
|
||||||
## JSONCompactString {#jsoncompactstring}
|
## JSONCompactStrings {#jsoncompactstrings}
|
||||||
|
|
||||||
与JSON格式不同的是它以数组的方式输出结果,而不是以结构体。
|
与JSON格式不同的是它以数组的方式输出结果,而不是以结构体。
|
||||||
|
|
||||||
@ -582,7 +582,7 @@ SELECT * FROM json_as_string;
|
|||||||
```
|
```
|
||||||
|
|
||||||
```json
|
```json
|
||||||
// JSONCompactString
|
// JSONCompactStrings
|
||||||
{
|
{
|
||||||
"meta":
|
"meta":
|
||||||
[
|
[
|
||||||
@ -614,9 +614,9 @@ SELECT * FROM json_as_string;
|
|||||||
```
|
```
|
||||||
|
|
||||||
## JSONEachRow {#jsoneachrow}
|
## JSONEachRow {#jsoneachrow}
|
||||||
## JSONStringEachRow {#jsonstringeachrow}
|
## JSONStringsEachRow {#jsonstringseachrow}
|
||||||
## JSONCompactEachRow {#jsoncompacteachrow}
|
## JSONCompactEachRow {#jsoncompacteachrow}
|
||||||
## JSONCompactStringEachRow {#jsoncompactstringeachrow}
|
## JSONCompactStringsEachRow {#jsoncompactstringseachrow}
|
||||||
|
|
||||||
使用这些格式时,ClickHouse会将行输出为用换行符分隔的JSON值,这些输出数据作为一个整体时,由于没有分隔符(,)因而不是有效的JSON文档。
|
使用这些格式时,ClickHouse会将行输出为用换行符分隔的JSON值,这些输出数据作为一个整体时,由于没有分隔符(,)因而不是有效的JSON文档。
|
||||||
|
|
||||||
@ -629,9 +629,9 @@ SELECT * FROM json_as_string;
|
|||||||
在插入数据时,应该为每一行提供一个单独的JSON值。
|
在插入数据时,应该为每一行提供一个单独的JSON值。
|
||||||
|
|
||||||
## JSONEachRowWithProgress {#jsoneachrowwithprogress}
|
## JSONEachRowWithProgress {#jsoneachrowwithprogress}
|
||||||
## JSONStringEachRowWithProgress {#jsonstringeachrowwithprogress}
|
## JSONStringsEachRowWithProgress {#jsonstringseachrowwithprogress}
|
||||||
|
|
||||||
与`JSONEachRow`/`JSONStringEachRow`不同的是,ClickHouse还将生成作为JSON值的进度信息。
|
与`JSONEachRow`/`JSONStringsEachRow`不同的是,ClickHouse还将生成作为JSON值的进度信息。
|
||||||
|
|
||||||
```json
|
```json
|
||||||
{"row":{"'hello'":"hello","multiply(42, number)":"0","range(5)":[0,1,2,3,4]}}
|
{"row":{"'hello'":"hello","multiply(42, number)":"0","range(5)":[0,1,2,3,4]}}
|
||||||
@ -641,9 +641,9 @@ SELECT * FROM json_as_string;
|
|||||||
```
|
```
|
||||||
|
|
||||||
## JSONCompactEachRowWithNamesAndTypes {#jsoncompacteachrowwithnamesandtypes}
|
## JSONCompactEachRowWithNamesAndTypes {#jsoncompacteachrowwithnamesandtypes}
|
||||||
## JSONCompactStringEachRowWithNamesAndTypes {#jsoncompactstringeachrowwithnamesandtypes}
|
## JSONCompactStringsEachRowWithNamesAndTypes {#jsoncompactstringseachrowwithnamesandtypes}
|
||||||
|
|
||||||
与`JSONCompactEachRow`/`JSONCompactStringEachRow`不同的是,列名和类型被写入前两行。
|
与`JSONCompactEachRow`/`JSONCompactStringsEachRow`不同的是,列名和类型被写入前两行。
|
||||||
|
|
||||||
```json
|
```json
|
||||||
["'hello'", "multiply(42, number)", "range(5)"]
|
["'hello'", "multiply(42, number)", "range(5)"]
|
||||||
|
Loading…
Reference in New Issue
Block a user