2022-09-16 14:05:08 +00:00
|
|
|
-- Tags: no-fasttest
|
|
|
|
|
2022-10-28 16:41:10 +00:00
|
|
|
set output_format_write_statistics=0;
|
|
|
|
|
|
|
|
{% for format in ['CSV', 'TSV', 'JSONEachRow', 'JSONCompactEachRow', 'TSKV', 'XML', 'Markdown', 'CustomSeparated', 'SQLInsert', 'Vertical', 'JSON', 'JSONCompact', 'Values'] -%}
|
2022-09-09 17:42:33 +00:00
|
|
|
|
|
|
|
select '{{ format }}';
|
2022-10-28 16:41:10 +00:00
|
|
|
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));
|
2022-09-09 17:42:33 +00:00
|
|
|
|
|
|
|
{% endfor -%}
|
|
|
|
|
|
|
|
-- unknown format
|
|
|
|
select formatRow('aaa', *) from numbers(3); -- { serverError 73 }
|
|
|
|
|