Change markdown format test

This commit is contained in:
Pavel Kruglov 2021-04-15 11:58:14 +03:00
parent 15153e504a
commit 8bd77e1c0c
2 changed files with 9 additions and 7 deletions

View File

@ -1,5 +1,5 @@
| id | name | array |
|-:|:-|:-:|
| 1 | name1 | [1,2,3] |
| 2 | name2 | [4,5,6] |
| 3 | name3 | [7,8,9] |
| id | name | array | nullable | low_cardinality | decimal |
|-:|:-|:-|:-|:-|-:|
| 1 | name1 | [1,2,3] | Some long string | name1 | 1.110000 |
| 2 | name2 | [4,5,60000] | \N | Another long string | 222.222222 |
| 30000 | One more long string | [7,8,9] | name3 | name3 | 3.330000 |

View File

@ -1,6 +1,8 @@
DROP TABLE IF EXISTS makrdown;
CREATE TABLE markdown (id UInt32, name String, array Array(Int8)) ENGINE = Memory;
INSERT INTO markdown VALUES (1, 'name1', [1,2,3]), (2, 'name2', [4,5,6]), (3, 'name3', [7,8,9]);
CREATE TABLE markdown (id UInt32, name String, array Array(Int32), nullable Nullable(String), low_cardinality LowCardinality(String), decimal Decimal32(6)) ENGINE = Memory;
INSERT INTO markdown VALUES (1, 'name1', [1,2,3], 'Some long string', 'name1', 1.11), (2, 'name2', [4,5,60000], Null, 'Another long string', 222.222222), (30000, 'One more long string', [7,8,9], 'name3', 'name3', 3.33);
SELECT * FROM markdown FORMAT Markdown;
DROP TABLE IF EXISTS markdown