ClickHouse/tests/queries/0_stateless/03031_table_function_fuzzquery.sql

19 lines
464 B
SQL

SELECT * FROM fuzzQuery('SELECT 1', 500, 8956) LIMIT 0 FORMAT TSVWithNamesAndTypes;
SELECT * FROM fuzzQuery('SELECT *
FROM (
SELECT
([toString(number % 2)] :: Array(LowCardinality(String))) AS item_id,
count()
FROM numbers(3)
GROUP BY item_id WITH TOTALS
) AS l FULL JOIN (
SELECT
([toString((number % 2) * 2)] :: Array(String)) AS item_id
FROM numbers(3)
) AS r
ON l.item_id = r.item_id
ORDER BY 1,2,3;
', 500, 8956) LIMIT 10 FORMAT NULL;