Fixing bad copy-paste, shorten sample

This commit is contained in:
Mikhail Filimonov 2018-03-14 00:42:06 +01:00 committed by alexey-milovidov
parent 1c0999932f
commit 04235f2e51
2 changed files with 3 additions and 3 deletions

View File

@ -1,6 +1,6 @@
# VerticalRaw # VerticalRaw
Differs from `TabSeparated` format in that the rows are written without escaping. Differs from `Vertical` format in that the rows are written without escaping.
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).
Samples: Samples:
@ -8,7 +8,7 @@ Samples:
:) SHOW CREATE TABLE geonames FORMAT VerticalRaw; :) SHOW CREATE TABLE geonames FORMAT VerticalRaw;
Row 1: Row 1:
────── ──────
statement: CREATE TABLE default.geonames ( geonameid UInt32, name String, asciiname String, alternatenames String, latitude Float32, longitude Float32, feature_class String, feature_code String, country_code String, cc2 String, admin1_code String, admin2_code String, admin3_code String, admin4_code String, population Int64, elevation String, dem String, timezone String, modification_date Date, date Date DEFAULT CAST('2017-12-08' AS Date)) ENGINE = MergeTree(date, geonameid, 8192) 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; :) SELECT 'string with \'quotes\' and \t with some special \n characters' AS test FORMAT VerticalRaw;
Row 1: Row 1:

View File

@ -8,7 +8,7 @@
:) SHOW CREATE TABLE geonames FORMAT VerticalRaw; :) SHOW CREATE TABLE geonames FORMAT VerticalRaw;
Row 1: Row 1:
────── ──────
statement: CREATE TABLE default.geonames ( geonameid UInt32, name String, asciiname String, alternatenames String, latitude Float32, longitude Float32, feature_class String, feature_code String, country_code String, cc2 String, admin1_code String, admin2_code String, admin3_code String, admin4_code String, population Int64, elevation String, dem String, timezone String, modification_date Date, date Date DEFAULT CAST('2017-12-08' AS Date)) ENGINE = MergeTree(date, geonameid, 8192) 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; :) SELECT 'string with \'quotes\' and \t with some special \n characters' AS test FORMAT VerticalRaw;
Row 1: Row 1: