mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-10 01:25:21 +00:00
8b438bcd3c
Fix trailing whitespaces in FROM/IN clause with subqueries in multiline mode, and also changes the output of the queries slightly in a more human friendly way. Before: $ clickhouse-format <<<'select * from system.one, (select * from system.one)' SELECT * FROM system.one , ( SELECT * FROM system.one ) After: $ clickhouse-format <<<'select * from system.one, (select * from system.one)' SELECT * FROM system.one, ( SELECT * FROM system.one ) v2: Fix subqueries formatting in a different way v3: Adjust *.reference in tests v4: Fix modernize-loop-convert in ASTTablesInSelectQuery
231 lines
3.8 KiB
Plaintext
231 lines
3.8 KiB
Plaintext
uniqTheta many agrs
|
|
10 10 100 100 1000 1000
|
|
17 10 10 100 100 610 610 766
|
|
52 10 10 100 100 608 608 766
|
|
5 10 10 100 100 608 608 765
|
|
9 10 10 100 100 608 608 765
|
|
13 10 10 100 100 607 607 765
|
|
46 10 10 100 100 607 607 765
|
|
48 10 10 100 100 609 609 765
|
|
50 10 10 100 100 608 608 765
|
|
54 10 10 100 100 609 609 765
|
|
56 10 10 100 100 608 608 765
|
|
uniqTheta distinct
|
|
123
|
|
143
|
|
uniqTheta arrays
|
|
2
|
|
3
|
|
3
|
|
uniqTheta complex types
|
|
3
|
|
3
|
|
3
|
|
3
|
|
3
|
|
3
|
|
3
|
|
3
|
|
3
|
|
uniqTheta decimals
|
|
(0,0,0)
|
|
(101,101,101)
|
|
uniqTheta remove injective
|
|
SELECT uniqTheta(x)
|
|
FROM
|
|
(
|
|
SELECT number % 2 AS x
|
|
FROM numbers(10)
|
|
)
|
|
SELECT uniqTheta(x + y)
|
|
FROM
|
|
(
|
|
SELECT
|
|
number % 2 AS x,
|
|
number % 3 AS y
|
|
FROM numbers(10)
|
|
)
|
|
SELECT uniqTheta(x)
|
|
FROM
|
|
(
|
|
SELECT number % 2 AS x
|
|
FROM numbers(10)
|
|
)
|
|
SELECT uniqTheta(x)
|
|
FROM
|
|
(
|
|
SELECT number % 2 AS x
|
|
FROM numbers(10)
|
|
)
|
|
SELECT uniqTheta(x)
|
|
FROM
|
|
(
|
|
SELECT number % 2 AS x
|
|
FROM numbers(10)
|
|
)
|
|
SELECT uniqTheta(x)
|
|
FROM
|
|
(
|
|
SELECT number % 2 AS x
|
|
FROM numbers(10)
|
|
)
|
|
SELECT uniqTheta(x)
|
|
FROM
|
|
(
|
|
SELECT number % 2 AS x
|
|
FROM numbers(10)
|
|
)
|
|
SELECT uniqTheta(x + y)
|
|
FROM
|
|
(
|
|
SELECT
|
|
number % 2 AS x,
|
|
number % 3 AS y
|
|
FROM numbers(10)
|
|
)
|
|
SELECT uniqTheta(-x)
|
|
FROM
|
|
(
|
|
SELECT number % 2 AS x
|
|
FROM numbers(10)
|
|
)
|
|
SELECT uniqTheta(bitNot(x))
|
|
FROM
|
|
(
|
|
SELECT number % 2 AS x
|
|
FROM numbers(10)
|
|
)
|
|
SELECT uniqTheta(bitNot(-x))
|
|
FROM
|
|
(
|
|
SELECT number % 2 AS x
|
|
FROM numbers(10)
|
|
)
|
|
SELECT uniqTheta(-bitNot(-x))
|
|
FROM
|
|
(
|
|
SELECT number % 2 AS x
|
|
FROM numbers(10)
|
|
)
|
|
1000 1000
|
|
2014-06-01 1000 1000
|
|
1000 1000
|
|
2014-06-01 1000 1000
|
|
2014-06-01 0 0 7 7
|
|
2014-06-01 0 1 7 7
|
|
2014-06-01 0 2 7 7
|
|
2014-06-01 0 3 7 7
|
|
2014-06-01 0 4 7 7
|
|
2014-06-01 0 5 7 7
|
|
2014-06-01 0 6 7 7
|
|
2014-06-01 0 7 7 7
|
|
2014-06-01 0 8 7 7
|
|
2014-06-01 0 9 7 7
|
|
2014-06-01 1 10 7 7
|
|
2014-06-01 1 11 7 7
|
|
2014-06-01 1 12 7 7
|
|
2014-06-01 1 13 7 7
|
|
2014-06-01 1 14 7 7
|
|
2014-06-01 1 15 7 7
|
|
2014-06-01 1 16 7 7
|
|
2014-06-01 1 17 7 7
|
|
2014-06-01 1 18 7 7
|
|
2014-06-01 1 19 7 7
|
|
2014-06-01 2 20 7 7
|
|
2014-06-01 2 21 7 7
|
|
2014-06-01 2 22 7 7
|
|
2014-06-01 2 23 7 7
|
|
2014-06-01 2 24 7 7
|
|
2014-06-01 2 25 7 7
|
|
2014-06-01 2 26 7 7
|
|
2014-06-01 2 27 7 7
|
|
2014-06-01 2 28 7 7
|
|
2014-06-01 2 29 7 7
|
|
2014-06-01 3 30 7 7
|
|
2014-06-01 3 31 7 7
|
|
2014-06-01 3 32 7 7
|
|
2014-06-01 3 33 7 7
|
|
2014-06-01 3 34 7 7
|
|
2014-06-01 3 35 7 7
|
|
2014-06-01 3 36 7 7
|
|
2014-06-01 3 37 7 7
|
|
2014-06-01 3 38 7 7
|
|
2014-06-01 3 39 7 7
|
|
2014-06-01 4 40 7 7
|
|
2014-06-01 4 41 7 7
|
|
2014-06-01 4 42 7 7
|
|
2014-06-01 4 43 7 7
|
|
2014-06-01 4 44 7 7
|
|
2014-06-01 4 45 7 7
|
|
2014-06-01 4 46 7 7
|
|
2014-06-01 4 47 7 7
|
|
2014-06-01 4 48 7 7
|
|
2014-06-01 4 49 7 7
|
|
2014-06-01 5 50 7 7
|
|
2014-06-01 5 51 7 7
|
|
2014-06-01 5 52 7 7
|
|
2014-06-01 5 53 7 7
|
|
2014-06-01 5 54 7 7
|
|
2014-06-01 5 55 7 7
|
|
2014-06-01 5 56 7 7
|
|
2014-06-01 5 57 7 7
|
|
2014-06-01 5 58 7 7
|
|
2014-06-01 5 59 7 7
|
|
2014-06-01 6 60 7 7
|
|
2014-06-01 6 61 7 7
|
|
2014-06-01 6 62 7 7
|
|
2014-06-01 6 63 7 7
|
|
2014-06-01 6 64 7 7
|
|
2014-06-01 6 65 7 7
|
|
2014-06-01 6 66 7 7
|
|
2014-06-01 6 67 7 7
|
|
2014-06-01 6 68 7 7
|
|
2014-06-01 6 69 7 7
|
|
2014-06-01 7 70 7 7
|
|
2014-06-01 7 71 7 7
|
|
2014-06-01 7 72 7 7
|
|
2014-06-01 7 73 7 7
|
|
2014-06-01 7 74 7 7
|
|
2014-06-01 7 75 7 7
|
|
2014-06-01 7 76 7 7
|
|
2014-06-01 7 77 7 7
|
|
2014-06-01 7 78 7 7
|
|
2014-06-01 7 79 7 7
|
|
2014-06-01 8 80 7 7
|
|
2014-06-01 8 81 7 7
|
|
2014-06-01 8 82 7 7
|
|
2014-06-01 8 83 7 7
|
|
2014-06-01 8 84 7 7
|
|
2014-06-01 8 85 7 7
|
|
2014-06-01 8 86 7 7
|
|
2014-06-01 8 87 7 7
|
|
2014-06-01 8 88 7 7
|
|
2014-06-01 8 89 7 7
|
|
2014-06-01 9 90 7 7
|
|
2014-06-01 9 91 7 7
|
|
2014-06-01 9 92 7 7
|
|
2014-06-01 9 93 7 7
|
|
2014-06-01 9 94 7 7
|
|
2014-06-01 9 95 7 7
|
|
2014-06-01 9 96 7 7
|
|
2014-06-01 9 97 7 7
|
|
2014-06-01 9 98 7 7
|
|
2014-06-01 9 99 7 7
|
|
2014-06-01 0 7 7
|
|
2014-06-01 1 7 7
|
|
2014-06-01 2 7 7
|
|
2014-06-01 3 7 7
|
|
2014-06-01 4 7 7
|
|
2014-06-01 5 7 7
|
|
2014-06-01 6 7 7
|
|
2014-06-01 7 7 7
|
|
2014-06-01 8 7 7
|
|
2014-06-01 9 7 7
|
|
2014-06-01 7 7
|
|
0 333333 53 53
|
|
1 333333 53 53
|
|
2 333333 53 53
|
|
0 333333 53 53
|
|
1 333333 53 53
|
|
2 333333 53 53
|