ClickHouse/tests/queries/0_stateless/01905_to_json_string.sql

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

19 lines
481 B
MySQL
Raw Normal View History

2021-09-12 12:35:27 +00:00
-- Tags: no-fasttest
2021-07-24 22:55:23 +00:00
create temporary table t engine Memory as select * from generateRandom(
$$
a Array(Int8),
b UInt32,
c Nullable(String),
d Decimal32(4),
e Nullable(Enum16('h' = 1, 'w' = 5 , 'o' = -200)),
f Float64,
2022-03-11 23:45:26 +00:00
g Tuple(Date, DateTime('Asia/Istanbul'), DateTime64(3, 'Asia/Istanbul'), UUID),
2021-07-24 22:55:23 +00:00
h FixedString(2),
i Array(Nullable(UUID))
$$, 10, 5, 3) limit 2;
2021-06-10 09:23:20 +00:00
select * apply toJSONString from t;
select toJSONString(map('1234', '5678'));