ClickHouse/tests/queries/0_stateless/02421_json_decimals_as_strings.sql

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

5 lines
270 B
MySQL
Raw Normal View History

2022-09-08 16:07:20 +00:00
select toDecimal128(42.42, 5) as d format JSONEachRow settings output_format_json_quote_decimals=1;
insert into function file(02421_data.jsonl) select '42.42' as d settings engine_file_truncate_on_insert=1;
select * from file(02421_data.jsonl, auto, 'd Decimal32(3)');