mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 15:12:02 +00:00
more
This commit is contained in:
parent
e5c48d5d4e
commit
54495136d4
@ -2,6 +2,6 @@
|
||||
<!-- lon [-180; 180], lat [-90; 90] -->
|
||||
<query>SELECT count() FROM numbers(1000000) WHERE NOT ignore(greatCircleDistance((rand(1) % 360) * 1. - 180, (number % 150) * 1.2 - 90, (number % 360) + toFloat64(rand(2)) / 4294967296 - 180, (rand(3) % 180) * 1. - 90))</query>
|
||||
<!-- 55.755830, 37.617780 is center of Moscow -->
|
||||
<query>SELECT count() FROM zeros(1000000) WHERE NOT ignore(greatCircleDistance(55. + toFloat64(rand(1)) / 4294967296, 37. + toFloat64(rand(2)) / 4294967296, 55. + toFloat64(rand(3)) / 4294967296, 37. + toFloat64(rand(4)) / 4294967296))</query>
|
||||
<query>SELECT count() FROM zeros(10000000) WHERE NOT ignore(greatCircleDistance(55. + toFloat64(rand(1)) / 4294967296, 37. + toFloat64(rand(2)) / 4294967296, 55. + toFloat64(rand(3)) / 4294967296, 37. + toFloat64(rand(4)) / 4294967296))</query>
|
||||
</test>
|
||||
|
||||
|
@ -4,13 +4,10 @@
|
||||
<tag>comparison</tag>
|
||||
</tags>
|
||||
|
||||
<query>SELECT toInt32(number) AS n FROM numbers(10000000) ORDER BY n DESC FORMAT Null</query>
|
||||
<query>SELECT toDecimal32(number, 0) AS n FROM numbers(10000000) ORDER BY n FORMAT Null</query>
|
||||
|
||||
|
||||
<query>SELECT toInt32(number) AS n FROM numbers(1000000) ORDER BY n DESC FORMAT Null</query>
|
||||
<query>SELECT toDecimal32(number, 0) AS n FROM numbers(1000000) ORDER BY n FORMAT Null</query>
|
||||
|
||||
<query>SELECT toDecimal32(number, 0) AS n FROM numbers(1000000) ORDER BY n DESC FORMAT Null</query>
|
||||
<query>SELECT toDecimal64(number, 8) AS n FROM numbers(1000000) ORDER BY n DESC FORMAT Null</query>
|
||||
<query>SELECT toDecimal128(number, 10) AS n FROM numbers(1000000) ORDER BY n DESC FORMAT Null</query>
|
||||
|
||||
<query>SELECT toDecimal32(number, 0) AS n FROM numbers(10000000) ORDER BY n DESC FORMAT Null</query>
|
||||
<query>SELECT toDecimal64(number, 8) AS n FROM numbers(10000000) ORDER BY n DESC FORMAT Null</query>
|
||||
<query>SELECT toDecimal128(number, 10) AS n FROM numbers(10000000) ORDER BY n DESC FORMAT Null</query>
|
||||
</test>
|
||||
|
@ -3,10 +3,11 @@
|
||||
<table_exists>hits_100m_single</table_exists>
|
||||
</preconditions>
|
||||
|
||||
<query>SELECT * FROM hits_100m_single ORDER BY CounterID, EventDate LIMIT 1000</query>
|
||||
<query>SELECT * FROM hits_100m_single ORDER BY CounterID DESC, toStartOfWeek(EventDate) DESC LIMIT 100</query>
|
||||
<!-- Some queries are almost instantaneous index lookups, so we mark them as short. -->
|
||||
<query short="1">SELECT * FROM hits_100m_single ORDER BY CounterID, EventDate LIMIT 100</query>
|
||||
<query short="1">SELECT * FROM hits_100m_single ORDER BY CounterID DESC, toStartOfWeek(EventDate) DESC LIMIT 100</query>
|
||||
<query>SELECT * FROM hits_100m_single ORDER BY CounterID, EventDate, URL LIMIT 100</query>
|
||||
<query>SELECT * FROM hits_100m_single WHERE CounterID IN (152220, 168777, 149234, 149234) ORDER BY CounterID DESC, EventDate DESC LIMIT 100</query>
|
||||
<query short="1">SELECT * FROM hits_100m_single WHERE CounterID IN (152220, 168777, 149234, 149234) ORDER BY CounterID DESC, EventDate DESC LIMIT 100</query>
|
||||
<query>SELECT * FROM hits_100m_single WHERE UserID=1988954671305023629 ORDER BY CounterID, EventDate LIMIT 100</query>
|
||||
|
||||
</test>
|
||||
|
@ -30,7 +30,7 @@
|
||||
|
||||
<fill_query>INSERT INTO table_{format} SELECT * FROM test.hits LIMIT 100000</fill_query>
|
||||
|
||||
<query>SELECT * FROM table_{format} FORMAT Null</query>
|
||||
<query short="{format} == 'Native'">SELECT * FROM table_{format} FORMAT Null</query>
|
||||
|
||||
<drop_query>DROP TABLE IF EXISTS table_{format}</drop_query>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user