mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-27 10:02:01 +00:00
18 lines
623 B
Django/Jinja
18 lines
623 B
Django/Jinja
-- Tags: no-fasttest
|
|
|
|
set output_format_write_statistics=0;
|
|
|
|
{% for format in ['CSV', 'TSV', 'JSONEachRow', 'JSONCompactEachRow', 'TSKV', 'XML', 'Markdown', 'CustomSeparated', 'SQLInsert', 'Vertical', 'JSON', 'JSONCompact', 'Values'] -%}
|
|
|
|
select '{{ format }}';
|
|
select 'formatRow';
|
|
select formatRow('{{ format }}', number, good) from (select number, 'good' as good from numbers(3));
|
|
select 'formatRowNoNewline';
|
|
select formatRowNoNewline('{{ format }}', number, good) from (select number, 'good' as good from numbers(3));
|
|
|
|
{% endfor -%}
|
|
|
|
-- unknown format
|
|
select formatRow('aaa', *) from numbers(3); -- { serverError 73 }
|
|
|