mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-25 09:02:00 +00:00
0324770773
sed -r -i \ -e 's/SELECT $/SELECT/' \ -e 's/SELECT DISTINCT $/SELECT DISTINCT/' \ -e 's/WITH $/WITH/' \ # zero matches, new test will be added -e 's/ARRAY JOIN $/ARRAY JOIN/' \ -e 's/GROUP BY $/GROUP BY/' \ -e 's/ORDER BY $/ORDER BY/' \ -e 's/LIMIT ([0-9]+) BY $/LIMIT \1 BY/' \ # zero matches, new test will be added tests/queries/*/*.sql \ tests/queries/*/*.reference (With except for tests/queries/0_stateless/00751_default_databasename_for_view.reference)
64 lines
1023 B
Plaintext
64 lines
1023 B
Plaintext
220 18 347
|
|
110 9 173.5
|
|
1970-04-11 1970-01-11 1970-11-21
|
|
2 3
|
|
1 2
|
|
18 347
|
|
110 173.5
|
|
1970-04-11 1970-01-11 1970-11-21
|
|
222 18 347
|
|
111 11 173.5
|
|
1970-04-11 1970-01-11 1970-11-21
|
|
SELECT
|
|
sum(i),
|
|
sum(j),
|
|
sum(k)
|
|
FROM columns_transformers
|
|
SELECT
|
|
avg(i),
|
|
avg(j),
|
|
avg(k)
|
|
FROM columns_transformers
|
|
SELECT
|
|
toDate(any(i)),
|
|
toDate(any(j)),
|
|
toDate(any(k))
|
|
FROM columns_transformers AS a
|
|
SELECT
|
|
length(toString(j)),
|
|
length(toString(k))
|
|
FROM columns_transformers
|
|
SELECT
|
|
sum(j),
|
|
sum(k)
|
|
FROM columns_transformers
|
|
SELECT
|
|
avg(i),
|
|
avg(k)
|
|
FROM columns_transformers
|
|
SELECT
|
|
toDate(any(i)),
|
|
toDate(any(j)),
|
|
toDate(any(k))
|
|
FROM columns_transformers AS a
|
|
SELECT
|
|
sum(i + 1 AS i),
|
|
sum(j),
|
|
sum(k)
|
|
FROM columns_transformers
|
|
SELECT
|
|
avg(i + 1 AS i),
|
|
avg(j + 2 AS j),
|
|
avg(k)
|
|
FROM columns_transformers
|
|
SELECT
|
|
toDate(any(i)),
|
|
toDate(any(j)),
|
|
toDate(any(k))
|
|
FROM columns_transformers AS a
|
|
SELECT
|
|
(i + 1) + 1 AS i,
|
|
j,
|
|
k
|
|
FROM columns_transformers
|