ClickHouse/tests/performance/nyc_taxi.xml

14 lines
643 B
XML
Raw Normal View History

2017-07-18 13:22:44 +00:00
<test>
<preconditions>
2020-05-23 14:53:54 +00:00
<table_exists>trips_mergetree</table_exists>
2017-07-18 13:22:44 +00:00
</preconditions>
<query>SELECT cab_type, count(*) FROM trips_mergetree GROUP BY cab_type</query>
<query>SELECT passenger_count, avg(total_amount) FROM trips_mergetree GROUP BY passenger_count</query>
<query>SELECT passenger_count, toYear(pickup_date) AS year, count(*) FROM trips_mergetree GROUP BY passenger_count, year</query>
<query>SELECT passenger_count, toYear(pickup_date) AS year, round(trip_distance) AS distance, count(*) FROM trips_mergetree GROUP BY passenger_count, year, distance ORDER BY year, count(*) DESC</query>
2017-07-18 13:22:44 +00:00
</test>