mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-24 02:30:51 +00:00
Doc fix: delete VerticalRaw format and remove escaping from Pretty and Vertical formats
This commit is contained in:
parent
24fc3ad544
commit
3a38d4ed50
@ -14,7 +14,6 @@ The table below lists supported formats and how they can be used in `INSERT` and
|
|||||||
| [CSVWithNames](#csvwithnames) | ✔ | ✔ |
|
| [CSVWithNames](#csvwithnames) | ✔ | ✔ |
|
||||||
| [Values](#values) | ✔ | ✔ |
|
| [Values](#values) | ✔ | ✔ |
|
||||||
| [Vertical](#vertical) | ✗ | ✔ |
|
| [Vertical](#vertical) | ✗ | ✔ |
|
||||||
| [VerticalRaw](#verticalraw) | ✗ | ✔ |
|
|
||||||
| [JSON](#json) | ✗ | ✔ |
|
| [JSON](#json) | ✗ | ✔ |
|
||||||
| [JSONCompact](#jsoncompact) | ✗ | ✔ |
|
| [JSONCompact](#jsoncompact) | ✗ | ✔ |
|
||||||
| [JSONEachRow](#jsoneachrow) | ✔ | ✔ |
|
| [JSONEachRow](#jsoneachrow) | ✔ | ✔ |
|
||||||
@ -355,6 +354,19 @@ SELECT * FROM t_null
|
|||||||
└───┴──────┘
|
└───┴──────┘
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Rows are not escaped in `Pretty` format:
|
||||||
|
|
||||||
|
``` sql
|
||||||
|
:) SELECT 'String with \'quotes\' and \t character' AS Test_escaping
|
||||||
|
FORMAT Pretty
|
||||||
|
|
||||||
|
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
|
||||||
|
┃ Test_escaping ┃
|
||||||
|
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩
|
||||||
|
│ String with 'quotes' and character │
|
||||||
|
└───────────────────────────────────────────┘
|
||||||
|
```
|
||||||
|
|
||||||
To avoid dumping too much data to the terminal, only the first 10,000 rows are printed. If the number of rows is greater than or equal to 10,000, the message "Showed first 10 000" is printed.
|
To avoid dumping too much data to the terminal, only the first 10,000 rows are printed. If the number of rows is greater than or equal to 10,000, the message "Showed first 10 000" is printed.
|
||||||
This format is only appropriate for outputting a query result, but not for parsing (retrieving data to insert in a table).
|
This format is only appropriate for outputting a query result, but not for parsing (retrieving data to insert in a table).
|
||||||
|
|
||||||
@ -461,37 +473,17 @@ Row 1:
|
|||||||
x: 1
|
x: 1
|
||||||
y: ᴺᵁᴸᴸ
|
y: ᴺᵁᴸᴸ
|
||||||
```
|
```
|
||||||
|
Rows are not escaped in `Vertical` format:
|
||||||
This format is only appropriate for outputting a query result, but not for parsing (retrieving data to insert in a table).
|
|
||||||
|
|
||||||
## VerticalRaw {#verticalraw}
|
|
||||||
|
|
||||||
Differs from `Vertical` format in that the rows are not escaped.
|
|
||||||
This format is only appropriate for outputting a query result, but not for parsing (retrieving data to insert in a table).
|
|
||||||
|
|
||||||
Examples:
|
|
||||||
|
|
||||||
```
|
```
|
||||||
:) SHOW CREATE TABLE geonames FORMAT VerticalRaw;
|
:) SELECT 'string with \'quotes\' and \t with some special \n characters' AS test FORMAT Vertical;
|
||||||
Row 1:
|
|
||||||
──────
|
|
||||||
statement: CREATE TABLE default.geonames ( geonameid UInt32, date Date DEFAULT CAST('2017-12-08' AS Date)) ENGINE = MergeTree(date, geonameid, 8192)
|
|
||||||
|
|
||||||
:) SELECT 'string with \'quotes\' and \t with some special \n characters' AS test FORMAT VerticalRaw;
|
|
||||||
Row 1:
|
Row 1:
|
||||||
──────
|
──────
|
||||||
test: string with 'quotes' and with some special
|
test: string with 'quotes' and with some special
|
||||||
characters
|
characters
|
||||||
```
|
```
|
||||||
|
|
||||||
Compare with the Vertical format:
|
This format is only appropriate for outputting a query result, but not for parsing (retrieving data to insert in a table).
|
||||||
|
|
||||||
```
|
|
||||||
:) SELECT 'string with \'quotes\' and \t with some special \n characters' AS test FORMAT Vertical;
|
|
||||||
Row 1:
|
|
||||||
──────
|
|
||||||
test: string with \'quotes\' and \t with some special \n characters
|
|
||||||
```
|
|
||||||
|
|
||||||
## XML {#xml}
|
## XML {#xml}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user