mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 15:42:02 +00:00
Merge pull request #11886 from ClickHouse/aku/mark-short
Explicitly mark short perftest queries
This commit is contained in:
commit
789a72ac7a
@ -282,6 +282,7 @@ do
|
|||||||
sed -n "s/^report-threshold\t/$test_name\t/p" < "$test_file" >> "analyze/report-thresholds.tsv"
|
sed -n "s/^report-threshold\t/$test_name\t/p" < "$test_file" >> "analyze/report-thresholds.tsv"
|
||||||
sed -n "s/^skipped\t/$test_name\t/p" < "$test_file" >> "analyze/skipped-tests.tsv"
|
sed -n "s/^skipped\t/$test_name\t/p" < "$test_file" >> "analyze/skipped-tests.tsv"
|
||||||
sed -n "s/^display-name\t/$test_name\t/p" < "$test_file" >> "analyze/query-display-names.tsv"
|
sed -n "s/^display-name\t/$test_name\t/p" < "$test_file" >> "analyze/query-display-names.tsv"
|
||||||
|
sed -n "s/^short\t/$test_name\t/p" < "$test_file" >> "analyze/marked-short-queries.tsv"
|
||||||
sed -n "s/^partial\t/$test_name\t/p" < "$test_file" >> "analyze/partial-queries.tsv"
|
sed -n "s/^partial\t/$test_name\t/p" < "$test_file" >> "analyze/partial-queries.tsv"
|
||||||
done
|
done
|
||||||
unset IFS
|
unset IFS
|
||||||
@ -291,6 +292,9 @@ clickhouse-local --query "
|
|||||||
create view query_runs as select * from file('analyze/query-runs.tsv', TSV,
|
create view query_runs as select * from file('analyze/query-runs.tsv', TSV,
|
||||||
'test text, query_index int, query_id text, version UInt8, time float');
|
'test text, query_index int, query_id text, version UInt8, time float');
|
||||||
|
|
||||||
|
-- Separately process 'partial' queries which we could only run on the new server
|
||||||
|
-- because they use new functions. We can't make normal stats for them, but still
|
||||||
|
-- have to show some stats so that the PR author can tweak them.
|
||||||
create view partial_queries as select test, query_index
|
create view partial_queries as select test, query_index
|
||||||
from file('analyze/partial-queries.tsv', TSV,
|
from file('analyze/partial-queries.tsv', TSV,
|
||||||
'test text, query_index int, servers Array(int)');
|
'test text, query_index int, servers Array(int)');
|
||||||
@ -303,6 +307,7 @@ create table partial_query_times engine File(TSVWithNamesAndTypes,
|
|||||||
group by test, query_index
|
group by test, query_index
|
||||||
;
|
;
|
||||||
|
|
||||||
|
-- Process queries that were run normally, on both servers.
|
||||||
create view left_query_log as select *
|
create view left_query_log as select *
|
||||||
from file('left-query-log.tsv', TSVWithNamesAndTypes,
|
from file('left-query-log.tsv', TSVWithNamesAndTypes,
|
||||||
'$(cat "left-query-log.tsv.columns")');
|
'$(cat "left-query-log.tsv.columns")');
|
||||||
@ -403,21 +408,29 @@ build_log_column_definitions
|
|||||||
cat analyze/errors.log >> report/errors.log ||:
|
cat analyze/errors.log >> report/errors.log ||:
|
||||||
cat profile-errors.log >> report/errors.log ||:
|
cat profile-errors.log >> report/errors.log ||:
|
||||||
|
|
||||||
|
short_query_threshold="0.02"
|
||||||
|
|
||||||
clickhouse-local --query "
|
clickhouse-local --query "
|
||||||
create view query_display_names as select * from
|
create view query_display_names as select * from
|
||||||
file('analyze/query-display-names.tsv', TSV,
|
file('analyze/query-display-names.tsv', TSV,
|
||||||
'test text, query_index int, query_display_name text')
|
'test text, query_index int, query_display_name text')
|
||||||
;
|
;
|
||||||
|
|
||||||
|
create view partial_query_times as select * from
|
||||||
|
file('analyze/partial-query-times.tsv', TSVWithNamesAndTypes,
|
||||||
|
'test text, query_index int, time_stddev float, time_median float')
|
||||||
|
;
|
||||||
|
|
||||||
create table partial_queries_report engine File(TSV, 'report/partial-queries-report.tsv')
|
create table partial_queries_report engine File(TSV, 'report/partial-queries-report.tsv')
|
||||||
as select floor(time_median, 3) m, floor(time_stddev / time_median, 3) v,
|
as select floor(time_median, 3) time,
|
||||||
|
floor(time_stddev / time_median, 3) relative_time_stddev,
|
||||||
test, query_index, query_display_name
|
test, query_index, query_display_name
|
||||||
from file('analyze/partial-query-times.tsv', TSVWithNamesAndTypes,
|
from partial_query_times
|
||||||
'test text, query_index int, time_stddev float, time_median float') t
|
|
||||||
join query_display_names using (test, query_index)
|
join query_display_names using (test, query_index)
|
||||||
order by test, query_index
|
order by test, query_index
|
||||||
;
|
;
|
||||||
|
|
||||||
|
-- Make a denormalized table with all metrics for all queries.
|
||||||
-- WITH, ARRAY JOIN and CROSS JOIN do not like each other:
|
-- WITH, ARRAY JOIN and CROSS JOIN do not like each other:
|
||||||
-- https://github.com/ClickHouse/ClickHouse/issues/11868
|
-- https://github.com/ClickHouse/ClickHouse/issues/11868
|
||||||
-- https://github.com/ClickHouse/ClickHouse/issues/11757
|
-- https://github.com/ClickHouse/ClickHouse/issues/11757
|
||||||
@ -426,21 +439,15 @@ create table partial_queries_report engine File(TSV, 'report/partial-queries-rep
|
|||||||
create view query_metric_stat_arrays as
|
create view query_metric_stat_arrays as
|
||||||
with (select * from file('analyze/query-run-metric-names.tsv',
|
with (select * from file('analyze/query-run-metric-names.tsv',
|
||||||
TSV, 'n Array(String)')) as metric_name
|
TSV, 'n Array(String)')) as metric_name
|
||||||
select metric_name, left, right, diff, stat_threshold, test, query_index,
|
select metric_name, left, right, diff, stat_threshold, test, query_index
|
||||||
query_display_name
|
from file('analyze/query-reports.tsv', TSV, 'left Array(float),
|
||||||
from file ('analyze/query-reports.tsv', TSV, 'left Array(float),
|
|
||||||
right Array(float), diff Array(float), stat_threshold Array(float),
|
right Array(float), diff Array(float), stat_threshold Array(float),
|
||||||
test text, query_index int') reports
|
test text, query_index int') reports
|
||||||
left join query_display_names
|
|
||||||
on reports.test = query_display_names.test
|
|
||||||
and reports.query_index = query_display_names.query_index
|
|
||||||
;
|
;
|
||||||
|
|
||||||
create table query_metric_stats engine File(TSVWithNamesAndTypes,
|
create table query_metric_stats engine File(TSVWithNamesAndTypes,
|
||||||
'report/query-metric-stats.tsv')
|
'report/query-metric-stats.tsv')
|
||||||
as
|
as select metric_name, left, right, diff, stat_threshold, test, query_index
|
||||||
select metric_name, left, right, diff, stat_threshold, test, query_index,
|
|
||||||
query_display_name
|
|
||||||
from query_metric_stat_arrays
|
from query_metric_stat_arrays
|
||||||
left array join metric_name, left, right, diff, stat_threshold
|
left array join metric_name, left, right, diff, stat_threshold
|
||||||
;
|
;
|
||||||
@ -448,13 +455,12 @@ create table query_metric_stats engine File(TSVWithNamesAndTypes,
|
|||||||
-- Main statistics for queries -- query time as reported in query log.
|
-- Main statistics for queries -- query time as reported in query log.
|
||||||
create table queries engine File(TSVWithNamesAndTypes, 'report/queries.tsv')
|
create table queries engine File(TSVWithNamesAndTypes, 'report/queries.tsv')
|
||||||
as select
|
as select
|
||||||
-- FIXME Comparison mode doesn't make sense for queries that complete
|
-- Comparison mode doesn't make sense for queries that complete
|
||||||
-- immediately (on the same order of time as noise). We compute average
|
-- immediately (on the same order of time as noise). If query duration is
|
||||||
-- run time between old and new version, and if it is below a threshold,
|
-- less that some threshold, we just skip it. If there is a significant
|
||||||
-- we just skip the query. If there is a significant regression, the
|
-- regression in such query, the time will exceed the threshold, and we
|
||||||
-- average will be above threshold, we'll process it normally and will
|
-- well process it normally and detect the regression.
|
||||||
-- detect the regression.
|
right < $short_query_threshold as short,
|
||||||
(left + right) / 2 < 0.02 as short,
|
|
||||||
|
|
||||||
not short and abs(diff) > report_threshold and abs(diff) > stat_threshold as changed_fail,
|
not short and abs(diff) > report_threshold and abs(diff) > stat_threshold as changed_fail,
|
||||||
not short and abs(diff) > report_threshold - 0.05 and abs(diff) > stat_threshold as changed_show,
|
not short and abs(diff) > report_threshold - 0.05 and abs(diff) > stat_threshold as changed_show,
|
||||||
@ -469,10 +475,126 @@ create table queries engine File(TSVWithNamesAndTypes, 'report/queries.tsv')
|
|||||||
left join file('analyze/report-thresholds.tsv', TSV,
|
left join file('analyze/report-thresholds.tsv', TSV,
|
||||||
'test text, report_threshold float') thresholds
|
'test text, report_threshold float') thresholds
|
||||||
on query_metric_stats.test = thresholds.test
|
on query_metric_stats.test = thresholds.test
|
||||||
|
left join query_display_names
|
||||||
|
on query_metric_stats.test = query_display_names.test
|
||||||
|
and query_metric_stats.query_index = query_display_names.query_index
|
||||||
where metric_name = 'server_time'
|
where metric_name = 'server_time'
|
||||||
order by test, query_index, metric_name
|
order by test, query_index, metric_name
|
||||||
;
|
;
|
||||||
|
|
||||||
|
create table changed_perf_report engine File(TSV, 'report/changed-perf.tsv') as
|
||||||
|
select left, right, diff, stat_threshold, changed_fail, test, query_index, query_display_name
|
||||||
|
from queries where changed_show order by abs(diff) desc;
|
||||||
|
|
||||||
|
create table unstable_queries_report engine File(TSV, 'report/unstable-queries.tsv') as
|
||||||
|
select left, right, diff, stat_threshold, unstable_fail, test, query_index, query_display_name
|
||||||
|
from queries where unstable_show order by stat_threshold desc;
|
||||||
|
|
||||||
|
create table test_time_changes engine File(TSV, 'report/test-time-changes.tsv') as
|
||||||
|
select test, queries, average_time_change from (
|
||||||
|
select test, count(*) queries,
|
||||||
|
sum(left) as left, sum(right) as right,
|
||||||
|
(right - left) / right average_time_change
|
||||||
|
from queries
|
||||||
|
group by test
|
||||||
|
order by abs(average_time_change) desc
|
||||||
|
)
|
||||||
|
;
|
||||||
|
|
||||||
|
create table unstable_tests engine File(TSV, 'report/unstable-tests.tsv') as
|
||||||
|
select test, sum(unstable_show) total_unstable, sum(changed_show) total_changed
|
||||||
|
from queries
|
||||||
|
group by test
|
||||||
|
order by total_unstable + total_changed desc
|
||||||
|
;
|
||||||
|
|
||||||
|
create table test_perf_changes_report engine File(TSV, 'report/test-perf-changes.tsv') as
|
||||||
|
select test,
|
||||||
|
queries,
|
||||||
|
coalesce(total_unstable, 0) total_unstable,
|
||||||
|
coalesce(total_changed, 0) total_changed,
|
||||||
|
total_unstable + total_changed total_bad,
|
||||||
|
coalesce(toString(floor(average_time_change, 3)), '??') average_time_change_str
|
||||||
|
from test_time_changes
|
||||||
|
full join unstable_tests
|
||||||
|
using test
|
||||||
|
where (abs(average_time_change) > 0.05 and queries > 5)
|
||||||
|
or (total_bad > 0)
|
||||||
|
order by total_bad desc, average_time_change desc
|
||||||
|
settings join_use_nulls = 1
|
||||||
|
;
|
||||||
|
|
||||||
|
create view total_client_time_per_query as select *
|
||||||
|
from file('analyze/client-times.tsv', TSV,
|
||||||
|
'test text, query_index int, client float, server float');
|
||||||
|
|
||||||
|
create table slow_on_client_report engine File(TSV, 'report/slow-on-client.tsv') as
|
||||||
|
select client, server, floor(client/server, 3) p, test, query_display_name
|
||||||
|
from total_client_time_per_query left join query_display_names using (test, query_index)
|
||||||
|
where p > 1.02 order by p desc;
|
||||||
|
|
||||||
|
create table wall_clock_time_per_test engine Memory as select *
|
||||||
|
from file('wall-clock-times.tsv', TSV, 'test text, real float, user float, system float');
|
||||||
|
|
||||||
|
create table test_time engine Memory as
|
||||||
|
select test, sum(client) total_client_time,
|
||||||
|
maxIf(client, not short) query_max,
|
||||||
|
minIf(client, not short) query_min,
|
||||||
|
count(*) queries, sum(short) short_queries
|
||||||
|
from total_client_time_per_query full join queries using (test, query_index)
|
||||||
|
group by test;
|
||||||
|
|
||||||
|
create table test_times_report engine File(TSV, 'report/test-times.tsv') as
|
||||||
|
select wall_clock_time_per_test.test, real,
|
||||||
|
floor(total_client_time, 3),
|
||||||
|
queries,
|
||||||
|
short_queries,
|
||||||
|
floor(query_max, 3),
|
||||||
|
floor(real / queries, 3) avg_real_per_query,
|
||||||
|
floor(query_min, 3)
|
||||||
|
from test_time
|
||||||
|
-- wall clock times are also measured for skipped tests, so don't
|
||||||
|
-- do full join
|
||||||
|
left join wall_clock_time_per_test using test
|
||||||
|
order by avg_real_per_query desc;
|
||||||
|
|
||||||
|
-- report for all queries page, only main metric
|
||||||
|
create table all_tests_report engine File(TSV, 'report/all-queries.tsv') as
|
||||||
|
select changed_fail, unstable_fail,
|
||||||
|
left, right, diff,
|
||||||
|
floor(left > right ? left / right : right / left, 3),
|
||||||
|
stat_threshold, test, query_index, query_display_name
|
||||||
|
from queries order by test, query_index;
|
||||||
|
|
||||||
|
-- queries for which we will build flamegraphs (see below)
|
||||||
|
create table queries_for_flamegraph engine File(TSVWithNamesAndTypes,
|
||||||
|
'report/queries-for-flamegraph.tsv') as
|
||||||
|
select test, query_index from queries where unstable_show or changed_show
|
||||||
|
;
|
||||||
|
|
||||||
|
-- List of queries that have 'short' duration, but are not marked as 'short' by
|
||||||
|
-- the test author (we report them).
|
||||||
|
create table unmarked_short_queries_report
|
||||||
|
engine File(TSV, 'report/unmarked-short-queries.tsv')
|
||||||
|
as select time, test, query_index, query_display_name
|
||||||
|
from (
|
||||||
|
select right time, test, query_index from queries where short
|
||||||
|
union all
|
||||||
|
select time_median, test, query_index from partial_query_times
|
||||||
|
where time_median < $short_query_threshold
|
||||||
|
) times
|
||||||
|
left join query_display_names
|
||||||
|
on times.test = query_display_names.test
|
||||||
|
and times.query_index = query_display_names.query_index
|
||||||
|
where (test, query_index) not in
|
||||||
|
(select * from file('analyze/marked-short-queries.tsv', TSV,
|
||||||
|
'test text, query_index int'))
|
||||||
|
order by test, query_index
|
||||||
|
;
|
||||||
|
|
||||||
|
--------------------------------------------------------------------------------
|
||||||
|
-- various compatibility data formats follow, not related to the main report
|
||||||
|
|
||||||
-- keep the table in old format so that we can analyze new and old data together
|
-- keep the table in old format so that we can analyze new and old data together
|
||||||
create table queries_old_format engine File(TSVWithNamesAndTypes, 'queries.rep')
|
create table queries_old_format engine File(TSVWithNamesAndTypes, 'queries.rep')
|
||||||
as select short, changed_fail, unstable_fail, left, right, diff,
|
as select short, changed_fail, unstable_fail, left, right, diff,
|
||||||
@ -512,101 +634,15 @@ create table all_query_runs_json engine File(JSON, 'report/all-query-runs.json')
|
|||||||
query_metric_stats.metric_name = 'server_time'
|
query_metric_stats.metric_name = 'server_time'
|
||||||
;
|
;
|
||||||
|
|
||||||
create table changed_perf_tsv engine File(TSV, 'report/changed-perf.tsv') as
|
|
||||||
select left, right, diff, stat_threshold, changed_fail, test, query_index, query_display_name
|
|
||||||
from queries where changed_show order by abs(diff) desc;
|
|
||||||
|
|
||||||
create table unstable_queries_tsv engine File(TSV, 'report/unstable-queries.tsv') as
|
|
||||||
select left, right, diff, stat_threshold, unstable_fail, test, query_index, query_display_name
|
|
||||||
from queries where unstable_show order by stat_threshold desc;
|
|
||||||
|
|
||||||
create table queries_for_flamegraph engine File(TSVWithNamesAndTypes,
|
|
||||||
'report/queries-for-flamegraph.tsv') as
|
|
||||||
select test, query_index from queries where unstable_show or changed_show
|
|
||||||
;
|
|
||||||
|
|
||||||
create table test_time_changes_tsv engine File(TSV, 'report/test-time-changes.tsv') as
|
|
||||||
select test, queries, average_time_change from (
|
|
||||||
select test, count(*) queries,
|
|
||||||
sum(left) as left, sum(right) as right,
|
|
||||||
(right - left) / right average_time_change
|
|
||||||
from queries
|
|
||||||
group by test
|
|
||||||
order by abs(average_time_change) desc
|
|
||||||
)
|
|
||||||
;
|
|
||||||
|
|
||||||
create table unstable_tests_tsv engine File(TSV, 'report/unstable-tests.tsv') as
|
|
||||||
select test, sum(unstable_show) total_unstable, sum(changed_show) total_changed
|
|
||||||
from queries
|
|
||||||
group by test
|
|
||||||
order by total_unstable + total_changed desc
|
|
||||||
;
|
|
||||||
|
|
||||||
create table test_perf_changes_tsv engine File(TSV, 'report/test-perf-changes.tsv') as
|
|
||||||
select test,
|
|
||||||
queries,
|
|
||||||
coalesce(total_unstable, 0) total_unstable,
|
|
||||||
coalesce(total_changed, 0) total_changed,
|
|
||||||
total_unstable + total_changed total_bad,
|
|
||||||
coalesce(toString(floor(average_time_change, 3)), '??') average_time_change_str
|
|
||||||
from test_time_changes_tsv
|
|
||||||
full join unstable_tests_tsv
|
|
||||||
using test
|
|
||||||
where (abs(average_time_change) > 0.05 and queries > 5)
|
|
||||||
or (total_bad > 0)
|
|
||||||
order by total_bad desc, average_time_change desc
|
|
||||||
settings join_use_nulls = 1
|
|
||||||
;
|
|
||||||
|
|
||||||
create table query_time engine Memory as select *
|
|
||||||
from file('analyze/client-times.tsv', TSV,
|
|
||||||
'test text, query_index int, client float, server float');
|
|
||||||
|
|
||||||
create table wall_clock engine Memory as select *
|
|
||||||
from file('wall-clock-times.tsv', TSV, 'test text, real float, user float, system float');
|
|
||||||
|
|
||||||
create table slow_on_client_tsv engine File(TSV, 'report/slow-on-client.tsv') as
|
|
||||||
select client, server, floor(client/server, 3) p, test, query_display_name
|
|
||||||
from query_time left join query_display_names using (test, query_index)
|
|
||||||
where p > 1.02 order by p desc;
|
|
||||||
|
|
||||||
create table test_time engine Memory as
|
|
||||||
select test, sum(client) total_client_time,
|
|
||||||
maxIf(client, not short) query_max,
|
|
||||||
minIf(client, not short) query_min,
|
|
||||||
count(*) queries, sum(short) short_queries
|
|
||||||
from query_time full join queries using (test, query_index)
|
|
||||||
group by test;
|
|
||||||
|
|
||||||
create table test_times_tsv engine File(TSV, 'report/test-times.tsv') as
|
|
||||||
select wall_clock.test, real,
|
|
||||||
floor(total_client_time, 3),
|
|
||||||
queries,
|
|
||||||
short_queries,
|
|
||||||
floor(query_max, 3),
|
|
||||||
floor(real / queries, 3) avg_real_per_query,
|
|
||||||
floor(query_min, 3)
|
|
||||||
from test_time
|
|
||||||
-- wall clock times are also measured for skipped tests, so don't
|
|
||||||
-- do full join
|
|
||||||
left join wall_clock using test
|
|
||||||
order by avg_real_per_query desc;
|
|
||||||
|
|
||||||
-- report for all queries page, only main metric
|
|
||||||
create table all_tests_tsv engine File(TSV, 'report/all-queries.tsv') as
|
|
||||||
select changed_fail, unstable_fail,
|
|
||||||
left, right, diff,
|
|
||||||
floor(left > right ? left / right : right / left, 3),
|
|
||||||
stat_threshold, test, query_index, query_display_name
|
|
||||||
from queries order by test, query_index;
|
|
||||||
|
|
||||||
-- new report for all queries with all metrics (no page yet)
|
-- new report for all queries with all metrics (no page yet)
|
||||||
create table all_query_metrics_tsv engine File(TSV, 'report/all-query-metrics.tsv') as
|
create table all_query_metrics_tsv engine File(TSV, 'report/all-query-metrics.tsv') as
|
||||||
select metric_name, left, right, diff,
|
select metric_name, left, right, diff,
|
||||||
floor(left > right ? left / right : right / left, 3),
|
floor(left > right ? left / right : right / left, 3),
|
||||||
stat_threshold, test, query_index, query_display_name
|
stat_threshold, test, query_index, query_display_name
|
||||||
from query_metric_stats
|
from query_metric_stats
|
||||||
|
left join query_display_names
|
||||||
|
on query_metric_stats.test = query_display_names.test
|
||||||
|
and query_metric_stats.query_index = query_display_names.query_index
|
||||||
order by test, query_index;
|
order by test, query_index;
|
||||||
" 2> >(tee -a report/errors.log 1>&2)
|
" 2> >(tee -a report/errors.log 1>&2)
|
||||||
|
|
||||||
|
@ -37,21 +37,44 @@ available_parameters = {} # { 'table': ['hits_10m', 'hits_100m'], ... }
|
|||||||
for e in subst_elems:
|
for e in subst_elems:
|
||||||
available_parameters[e.find('name').text] = [v.text for v in e.findall('values/value')]
|
available_parameters[e.find('name').text] = [v.text for v in e.findall('values/value')]
|
||||||
|
|
||||||
# Take care to keep the order of queries -- sometimes we have DROP IF EXISTS
|
# Takes parallel lists of templates, substitutes them with all combos of
|
||||||
|
# parameters. The set of parameters is determined based on the first list.
|
||||||
|
# Note: keep the order of queries -- sometimes we have DROP IF EXISTS
|
||||||
# followed by CREATE in create queries section, so the order matters.
|
# followed by CREATE in create queries section, so the order matters.
|
||||||
def substitute_parameters(query_templates):
|
def substitute_parameters(query_templates, other_templates = []):
|
||||||
result = []
|
query_results = []
|
||||||
for q in query_templates:
|
other_results = [[]] * (len(other_templates))
|
||||||
|
for i, q in enumerate(query_templates):
|
||||||
keys = set(n for _, n, _, _ in string.Formatter().parse(q) if n)
|
keys = set(n for _, n, _, _ in string.Formatter().parse(q) if n)
|
||||||
values = [available_parameters[k] for k in keys]
|
values = [available_parameters[k] for k in keys]
|
||||||
result.extend([
|
combos = itertools.product(*values)
|
||||||
q.format(**dict(zip(keys, values_combo)))
|
for c in combos:
|
||||||
for values_combo in itertools.product(*values)])
|
with_keys = dict(zip(keys, c))
|
||||||
return result
|
query_results.append(q.format(**with_keys))
|
||||||
|
for j, t in enumerate(other_templates):
|
||||||
|
other_results[j].append(t[i].format(**with_keys))
|
||||||
|
if len(other_templates):
|
||||||
|
return query_results, other_results
|
||||||
|
else:
|
||||||
|
return query_results
|
||||||
|
|
||||||
|
|
||||||
|
# Build a list of test queries, substituting parameters to query templates,
|
||||||
|
# and reporting the queries marked as short.
|
||||||
|
test_queries = []
|
||||||
|
for e in root.findall('query'):
|
||||||
|
new_queries = []
|
||||||
|
if 'short' in e.attrib:
|
||||||
|
new_queries, [is_short] = substitute_parameters([e.text], [[e.attrib['short']]])
|
||||||
|
for i, s in enumerate(is_short):
|
||||||
|
# Don't print this if we only need to print the queries.
|
||||||
|
if eval(s) and not args.print_queries:
|
||||||
|
print(f'short\t{i + len(test_queries)}')
|
||||||
|
else:
|
||||||
|
new_queries = substitute_parameters([e.text])
|
||||||
|
|
||||||
|
test_queries += new_queries
|
||||||
|
|
||||||
# Build a list of test queries, processing all substitutions
|
|
||||||
test_query_templates = [q.text for q in root.findall('query')]
|
|
||||||
test_queries = substitute_parameters(test_query_templates)
|
|
||||||
|
|
||||||
# If we're only asked to print the queries, do that and exit
|
# If we're only asked to print the queries, do that and exit
|
||||||
if args.print_queries:
|
if args.print_queries:
|
||||||
@ -166,7 +189,7 @@ for conn_index, c in enumerate(connections):
|
|||||||
c.execute(q)
|
c.execute(q)
|
||||||
print(f'fill\t{conn_index}\t{c.last_query.elapsed}\t{tsv_escape(q)}')
|
print(f'fill\t{conn_index}\t{c.last_query.elapsed}\t{tsv_escape(q)}')
|
||||||
|
|
||||||
# Run test queries
|
# Run test queries.
|
||||||
for query_index, q in enumerate(test_queries):
|
for query_index, q in enumerate(test_queries):
|
||||||
query_prefix = f'{test_name}.query{query_index}'
|
query_prefix = f'{test_name}.query{query_index}'
|
||||||
|
|
||||||
|
@ -196,6 +196,12 @@ if args.report == 'main':
|
|||||||
['Client time, s', 'Server time, s', 'Ratio', 'Test', 'Query'],
|
['Client time, s', 'Server time, s', 'Ratio', 'Test', 'Query'],
|
||||||
slow_on_client_rows)
|
slow_on_client_rows)
|
||||||
|
|
||||||
|
unmarked_short_rows = tsvRows('report/unmarked-short-queries.tsv')
|
||||||
|
error_tests += len(unmarked_short_rows)
|
||||||
|
printSimpleTable('Short queries not marked as short',
|
||||||
|
['New client time, s', 'Test', '#', 'Query'],
|
||||||
|
unmarked_short_rows)
|
||||||
|
|
||||||
def print_partial():
|
def print_partial():
|
||||||
rows = tsvRows('report/partial-queries-report.tsv')
|
rows = tsvRows('report/partial-queries-report.tsv')
|
||||||
if not rows:
|
if not rows:
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
http://www.caida.org/data/active/ipv4_dnsnames_dataset.xml.
|
http://www.caida.org/data/active/ipv4_dnsnames_dataset.xml.
|
||||||
Randomly selected entries from first 50000 rows of dataset. -->
|
Randomly selected entries from first 50000 rows of dataset. -->
|
||||||
|
|
||||||
<fill_query> INSERT INTO ips_v4 VALUES ('116.253.40.133')('183.247.232.58')('116.106.34.242')('111.56.27.171')('183.245.137.140')('183.212.25.70')('162.144.2.57')('111.4.229.190')('59.52.3.168')('115.11.21.200')('121.28.97.113')('111.46.39.248')('120.192.122.34')('113.56.44.105')('116.66.238.92')('67.22.254.206')('115.0.24.191')('182.30.107.86')('223.73.153.243')('115.159.103.38')('36.186.75.121')('111.56.188.125')('115.14.93.25')('211.97.110.141')('61.58.96.173')('203.126.212.37')('192.220.125.142')('115.22.20.223')('121.25.160.80')('117.150.98.199')('183.211.172.143')('180.244.18.143')('209.131.3.252')('220.200.1.22')('171.225.130.45')('115.4.78.200')('36.183.59.29')('218.42.159.17')('115.13.39.164')('142.254.161.133')('116.2.211.43')('36.183.126.25')('66.150.171.196')('104.149.148.137')('120.239.82.212')('111.14.182.156')('115.6.63.224')('153.35.83.233')('113.142.1.1')('121.25.82.29')('62.151.203.189')('104.27.46.146')('36.189.46.88')('116.252.54.207')('64.77.240.1')('142.252.102.78')('36.82.224.170')('117.33.191.217')('144.12.164.251')('122.10.93.66')('104.25.84.59')('111.4.242.106')('222.216.51.186')('112.33.13.212')('115.9.240.116')('171.228.0.153')('45.3.47.158')('69.57.193.230')('115.6.104.199')('104.24.237.140')('199.17.84.108')('120.193.17.57')('112.40.38.145')('67.55.90.43')('180.253.57.249')('14.204.253.158')('1.83.241.116')('202.198.37.147')('115.6.31.95')('117.32.14.179')('23.238.237.26')('116.97.76.104')('1.80.2.248')('59.50.185.152')('42.117.228.166')('119.36.22.147')('210.66.18.184')('115.19.192.159')('112.15.128.113')('1.55.138.211')('210.183.19.113')('42.115.43.114')('58.16.171.31')('171.234.78.185')('113.56.43.134')('111.53.182.225')('107.160.215.141')('171.229.231.90')('58.19.84.138')('36.79.88.107')</fill_query>
|
<fill_query>INSERT INTO ips_v4 VALUES ('116.253.40.133')('183.247.232.58')('116.106.34.242')('111.56.27.171')('183.245.137.140')('183.212.25.70')('162.144.2.57')('111.4.229.190')('59.52.3.168')('115.11.21.200')('121.28.97.113')('111.46.39.248')('120.192.122.34')('113.56.44.105')('116.66.238.92')('67.22.254.206')('115.0.24.191')('182.30.107.86')('223.73.153.243')('115.159.103.38')('36.186.75.121')('111.56.188.125')('115.14.93.25')('211.97.110.141')('61.58.96.173')('203.126.212.37')('192.220.125.142')('115.22.20.223')('121.25.160.80')('117.150.98.199')('183.211.172.143')('180.244.18.143')('209.131.3.252')('220.200.1.22')('171.225.130.45')('115.4.78.200')('36.183.59.29')('218.42.159.17')('115.13.39.164')('142.254.161.133')('116.2.211.43')('36.183.126.25')('66.150.171.196')('104.149.148.137')('120.239.82.212')('111.14.182.156')('115.6.63.224')('153.35.83.233')('113.142.1.1')('121.25.82.29')('62.151.203.189')('104.27.46.146')('36.189.46.88')('116.252.54.207')('64.77.240.1')('142.252.102.78')('36.82.224.170')('117.33.191.217')('144.12.164.251')('122.10.93.66')('104.25.84.59')('111.4.242.106')('222.216.51.186')('112.33.13.212')('115.9.240.116')('171.228.0.153')('45.3.47.158')('69.57.193.230')('115.6.104.199')('104.24.237.140')('199.17.84.108')('120.193.17.57')('112.40.38.145')('67.55.90.43')('180.253.57.249')('14.204.253.158')('1.83.241.116')('202.198.37.147')('115.6.31.95')('117.32.14.179')('23.238.237.26')('116.97.76.104')('1.80.2.248')('59.50.185.152')('42.117.228.166')('119.36.22.147')('210.66.18.184')('115.19.192.159')('112.15.128.113')('1.55.138.211')('210.183.19.113')('42.115.43.114')('58.16.171.31')('171.234.78.185')('113.56.43.134')('111.53.182.225')('107.160.215.141')('171.229.231.90')('58.19.84.138')('36.79.88.107')</fill_query>
|
||||||
|
|
||||||
<fill_query>insert into ips_v4 select * from ips_v4</fill_query>
|
<fill_query>insert into ips_v4 select * from ips_v4</fill_query>
|
||||||
<fill_query>insert into ips_v4 select * from ips_v4</fill_query>
|
<fill_query>insert into ips_v4 select * from ips_v4</fill_query>
|
||||||
@ -21,6 +21,7 @@
|
|||||||
<fill_query>insert into ips_v4 select * from ips_v4</fill_query>
|
<fill_query>insert into ips_v4 select * from ips_v4</fill_query>
|
||||||
<fill_query>insert into ips_v4 select * from ips_v4</fill_query>
|
<fill_query>insert into ips_v4 select * from ips_v4</fill_query>
|
||||||
<fill_query>insert into ips_v4 select * from ips_v4</fill_query>
|
<fill_query>insert into ips_v4 select * from ips_v4</fill_query>
|
||||||
|
<fill_query>insert into ips_v4 select * from ips_v4</fill_query>
|
||||||
|
|
||||||
|
|
||||||
<query tag='IPv4StringToNum'>SELECT count() FROM ips_v4 WHERE NOT ignore(IPv4StringToNum(materialize(ip))) SETTINGS max_threads=1</query>
|
<query tag='IPv4StringToNum'>SELECT count() FROM ips_v4 WHERE NOT ignore(IPv4StringToNum(materialize(ip))) SETTINGS max_threads=1</query>
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<test>
|
<test>
|
||||||
|
<settings><max_threads>1</max_threads></settings>
|
||||||
|
|
||||||
<!-- The CAIDA UCSD IPv4 Routed /24 DNS Names Dataset - 20181130,
|
<!-- The CAIDA UCSD IPv4 Routed /24 DNS Names Dataset - 20181130,
|
||||||
http://www.caida.org/data/active/ipv4_dnsnames_dataset.xml.
|
http://www.caida.org/data/active/ipv4_dnsnames_dataset.xml.
|
||||||
@ -22,6 +22,7 @@
|
|||||||
<fill_query>insert into ips_v6 select * from ips_v6</fill_query>
|
<fill_query>insert into ips_v6 select * from ips_v6</fill_query>
|
||||||
<fill_query>insert into ips_v6 select * from ips_v6</fill_query>
|
<fill_query>insert into ips_v6 select * from ips_v6</fill_query>
|
||||||
<fill_query>insert into ips_v6 select * from ips_v6</fill_query>
|
<fill_query>insert into ips_v6 select * from ips_v6</fill_query>
|
||||||
|
<fill_query>insert into ips_v6 select * from ips_v6</fill_query>
|
||||||
|
|
||||||
<query tag="IPv6StringToNum">SELECT count() FROM ips_v6 WHERE NOT ignore(IPv6StringToNum(materialize(ip)))</query>
|
<query tag="IPv6StringToNum">SELECT count() FROM ips_v6 WHERE NOT ignore(IPv6StringToNum(materialize(ip)))</query>
|
||||||
<query tag="IPv6NumToString+IPv6StringToNum">SELECT count() FROM ips_v6 WHERE NOT ignore(IPv6NumToString(IPv6StringToNum(materialize(ip))))</query>
|
<query tag="IPv6NumToString+IPv6StringToNum">SELECT count() FROM ips_v6 WHERE NOT ignore(IPv6NumToString(IPv6StringToNum(materialize(ip))))</query>
|
||||||
|
@ -3,90 +3,90 @@
|
|||||||
<table_exists>hits_100m_single</table_exists>
|
<table_exists>hits_100m_single</table_exists>
|
||||||
</preconditions>
|
</preconditions>
|
||||||
|
|
||||||
<query>select min(Title) from hits_100m_single where Title != '' group by intHash32(UserID) % 1000000 FORMAT Null</query>
|
<substitutions>
|
||||||
<query>select max(Title) from hits_100m_single where Title != '' group by intHash32(UserID) % 1000000 FORMAT Null</query>
|
<substitution>
|
||||||
<query>select any(Title) from hits_100m_single where Title != '' group by intHash32(UserID) % 1000000 FORMAT Null</query>
|
<name>group_scale</name>
|
||||||
<query>select anyHeavy(Title) from hits_100m_single where Title != '' group by intHash32(UserID) % 1000000 FORMAT Null</query>
|
<value>1000000</value>
|
||||||
<query>select min(URL) from hits_100m_single where URL != '' group by intHash32(UserID) % 1000000 FORMAT Null</query>
|
</substitution>
|
||||||
<query>select max(URL) from hits_100m_single where URL != '' group by intHash32(UserID) % 1000000 FORMAT Null</query>
|
</substitutions>
|
||||||
<query>select any(URL) from hits_100m_single where URL != '' group by intHash32(UserID) % 1000000 FORMAT Null</query>
|
|
||||||
<query>select anyHeavy(URL) from hits_100m_single where URL != '' group by intHash32(UserID) % 1000000 FORMAT Null</query>
|
<query>select min(Title) from hits_100m_single where Title != '' group by intHash32(UserID) % {group_scale} FORMAT Null</query>
|
||||||
<query>select min(Referer) from hits_100m_single where Referer != '' group by intHash32(UserID) % 1000000 FORMAT Null</query>
|
<query>select max(Title) from hits_100m_single where Title != '' group by intHash32(UserID) % {group_scale} FORMAT Null</query>
|
||||||
<query>select max(Referer) from hits_100m_single where Referer != '' group by intHash32(UserID) % 1000000 FORMAT Null</query>
|
<query>select any(Title) from hits_100m_single where Title != '' group by intHash32(UserID) % {group_scale} FORMAT Null</query>
|
||||||
<query>select any(Referer) from hits_100m_single where Referer != '' group by intHash32(UserID) % 1000000 FORMAT Null</query>
|
<query>select anyHeavy(Title) from hits_100m_single where Title != '' group by intHash32(UserID) % {group_scale} FORMAT Null</query>
|
||||||
<query>select anyHeavy(Referer) from hits_100m_single where Referer != '' group by intHash32(UserID) % 1000000 FORMAT Null</query>
|
<query>select min(URL) from hits_100m_single where URL != '' group by intHash32(UserID) % {group_scale} FORMAT Null</query>
|
||||||
<query>select min(FlashMinor2) from hits_100m_single where FlashMinor2 != '' group by intHash32(UserID) % 1000000 FORMAT Null</query>
|
<query>select max(URL) from hits_100m_single where URL != '' group by intHash32(UserID) % {group_scale} FORMAT Null</query>
|
||||||
<query>select max(FlashMinor2) from hits_100m_single where FlashMinor2 != '' group by intHash32(UserID) % 1000000 FORMAT Null</query>
|
<query>select any(URL) from hits_100m_single where URL != '' group by intHash32(UserID) % {group_scale} FORMAT Null</query>
|
||||||
<query>select any(FlashMinor2) from hits_100m_single where FlashMinor2 != '' group by intHash32(UserID) % 1000000 FORMAT Null</query>
|
<query>select anyHeavy(URL) from hits_100m_single where URL != '' group by intHash32(UserID) % {group_scale} FORMAT Null</query>
|
||||||
<query>select anyHeavy(FlashMinor2) from hits_100m_single where FlashMinor2 != '' group by intHash32(UserID) % 1000000 FORMAT Null</query>
|
<query>select min(Referer) from hits_100m_single where Referer != '' group by intHash32(UserID) % {group_scale} FORMAT Null</query>
|
||||||
<query>select min(MobilePhoneModel) from hits_100m_single where MobilePhoneModel != '' group by intHash32(UserID) % 1000000 FORMAT Null</query>
|
<query>select max(Referer) from hits_100m_single where Referer != '' group by intHash32(UserID) % {group_scale} FORMAT Null</query>
|
||||||
<query>select max(MobilePhoneModel) from hits_100m_single where MobilePhoneModel != '' group by intHash32(UserID) % 1000000 FORMAT Null</query>
|
<query>select any(Referer) from hits_100m_single where Referer != '' group by intHash32(UserID) % {group_scale} FORMAT Null</query>
|
||||||
<query>select any(MobilePhoneModel) from hits_100m_single where MobilePhoneModel != '' group by intHash32(UserID) % 1000000 FORMAT Null</query>
|
<query>select anyHeavy(Referer) from hits_100m_single where Referer != '' group by intHash32(UserID) % {group_scale} FORMAT Null</query>
|
||||||
<query>select anyHeavy(MobilePhoneModel) from hits_100m_single where MobilePhoneModel != '' group by intHash32(UserID) % 1000000 FORMAT Null</query>
|
<query>select min(FlashMinor2) from hits_100m_single where FlashMinor2 != '' group by intHash32(UserID) % {group_scale} FORMAT Null</query>
|
||||||
<query>select min(Params) from hits_100m_single where Params != '' group by intHash32(UserID) % 1000000 FORMAT Null</query>
|
<query>select max(FlashMinor2) from hits_100m_single where FlashMinor2 != '' group by intHash32(UserID) % {group_scale} FORMAT Null</query>
|
||||||
<query>select max(Params) from hits_100m_single where Params != '' group by intHash32(UserID) % 1000000 FORMAT Null</query>
|
<query>select any(FlashMinor2) from hits_100m_single where FlashMinor2 != '' group by intHash32(UserID) % {group_scale} FORMAT Null</query>
|
||||||
<query>select any(Params) from hits_100m_single where Params != '' group by intHash32(UserID) % 1000000 FORMAT Null</query>
|
<query>select anyHeavy(FlashMinor2) from hits_100m_single where FlashMinor2 != '' group by intHash32(UserID) % {group_scale} FORMAT Null</query>
|
||||||
<query>select anyHeavy(Params) from hits_100m_single where Params != '' group by intHash32(UserID) % 1000000 FORMAT Null</query>
|
<query>select min(MobilePhoneModel) from hits_100m_single where MobilePhoneModel != '' group by intHash32(UserID) % {group_scale} FORMAT Null</query>
|
||||||
<query>select min(SearchPhrase) from hits_100m_single where SearchPhrase != '' group by intHash32(UserID) % 1000000 FORMAT Null</query>
|
<query>select max(MobilePhoneModel) from hits_100m_single where MobilePhoneModel != '' group by intHash32(UserID) % {group_scale} FORMAT Null</query>
|
||||||
<query>select max(SearchPhrase) from hits_100m_single where SearchPhrase != '' group by intHash32(UserID) % 1000000 FORMAT Null</query>
|
<query>select any(MobilePhoneModel) from hits_100m_single where MobilePhoneModel != '' group by intHash32(UserID) % {group_scale} FORMAT Null</query>
|
||||||
<query>select any(SearchPhrase) from hits_100m_single where SearchPhrase != '' group by intHash32(UserID) % 1000000 FORMAT Null</query>
|
<query>select anyHeavy(MobilePhoneModel) from hits_100m_single where MobilePhoneModel != '' group by intHash32(UserID) % {group_scale} FORMAT Null</query>
|
||||||
<query>select anyHeavy(SearchPhrase) from hits_100m_single where SearchPhrase != '' group by intHash32(UserID) % 1000000 FORMAT Null</query>
|
<query>select min(Params) from hits_100m_single where Params != '' group by intHash32(UserID) % {group_scale} FORMAT Null</query>
|
||||||
<query>select min(PageCharset) from hits_100m_single where PageCharset != '' group by intHash32(UserID) % 1000000 FORMAT Null</query>
|
<query>select max(Params) from hits_100m_single where Params != '' group by intHash32(UserID) % {group_scale} FORMAT Null</query>
|
||||||
<query>select max(PageCharset) from hits_100m_single where PageCharset != '' group by intHash32(UserID) % 1000000 FORMAT Null</query>
|
<query>select any(Params) from hits_100m_single where Params != '' group by intHash32(UserID) % {group_scale} FORMAT Null</query>
|
||||||
<query>select any(PageCharset) from hits_100m_single where PageCharset != '' group by intHash32(UserID) % 1000000 FORMAT Null</query>
|
<query>select anyHeavy(Params) from hits_100m_single where Params != '' group by intHash32(UserID) % {group_scale} FORMAT Null</query>
|
||||||
<query>select anyHeavy(PageCharset) from hits_100m_single where PageCharset != '' group by intHash32(UserID) % 1000000 FORMAT Null</query>
|
<query>select min(SearchPhrase) from hits_100m_single where SearchPhrase != '' group by intHash32(UserID) % {group_scale} FORMAT Null</query>
|
||||||
<query>select min(SocialNetwork) from hits_100m_single where SocialNetwork != '' group by intHash32(UserID) % 1000000 FORMAT Null</query>
|
<query>select max(SearchPhrase) from hits_100m_single where SearchPhrase != '' group by intHash32(UserID) % {group_scale} FORMAT Null</query>
|
||||||
<query>select max(SocialNetwork) from hits_100m_single where SocialNetwork != '' group by intHash32(UserID) % 1000000 FORMAT Null</query>
|
<query>select any(SearchPhrase) from hits_100m_single where SearchPhrase != '' group by intHash32(UserID) % {group_scale} FORMAT Null</query>
|
||||||
<query>select any(SocialNetwork) from hits_100m_single where SocialNetwork != '' group by intHash32(UserID) % 1000000 FORMAT Null</query>
|
<query>select anyHeavy(SearchPhrase) from hits_100m_single where SearchPhrase != '' group by intHash32(UserID) % {group_scale} FORMAT Null</query>
|
||||||
<query>select anyHeavy(SocialNetwork) from hits_100m_single where SocialNetwork != '' group by intHash32(UserID) % 1000000 FORMAT Null</query>
|
<query>select min(PageCharset) from hits_100m_single where PageCharset != '' group by intHash32(UserID) % {group_scale} FORMAT Null</query>
|
||||||
<!-- SocialAction is always empty in hits_100m_single, don't test it -->
|
<query>select max(PageCharset) from hits_100m_single where PageCharset != '' group by intHash32(UserID) % {group_scale} FORMAT Null</query>
|
||||||
<query>select min(SocialSourcePage) from hits_100m_single where SocialSourcePage != '' group by intHash32(UserID) % 1000000 FORMAT Null</query>
|
<query>select any(PageCharset) from hits_100m_single where PageCharset != '' group by intHash32(UserID) % {group_scale} FORMAT Null</query>
|
||||||
<query>select max(SocialSourcePage) from hits_100m_single where SocialSourcePage != '' group by intHash32(UserID) % 1000000 FORMAT Null</query>
|
<query>select anyHeavy(PageCharset) from hits_100m_single where PageCharset != '' group by intHash32(UserID) % {group_scale} FORMAT Null</query>
|
||||||
<query>select any(SocialSourcePage) from hits_100m_single where SocialSourcePage != '' group by intHash32(UserID) % 1000000 FORMAT Null</query>
|
<!-- SocialAction and SocialNetwork is always empty in hits_100m_single, don't test it -->
|
||||||
<query>select anyHeavy(SocialSourcePage) from hits_100m_single where SocialSourcePage != '' group by intHash32(UserID) % 1000000 FORMAT Null</query>
|
<query>select min(SocialSourcePage) from hits_100m_single where SocialSourcePage != '' group by intHash32(UserID) % {group_scale} FORMAT Null</query>
|
||||||
<query>select min(ParamOrderID) from hits_100m_single where ParamOrderID != '' group by intHash32(UserID) % 1000000 FORMAT Null</query>
|
<query>select max(SocialSourcePage) from hits_100m_single where SocialSourcePage != '' group by intHash32(UserID) % {group_scale} FORMAT Null</query>
|
||||||
<query>select max(ParamOrderID) from hits_100m_single where ParamOrderID != '' group by intHash32(UserID) % 1000000 FORMAT Null</query>
|
<query>select any(SocialSourcePage) from hits_100m_single where SocialSourcePage != '' group by intHash32(UserID) % {group_scale} FORMAT Null</query>
|
||||||
<query>select any(ParamOrderID) from hits_100m_single where ParamOrderID != '' group by intHash32(UserID) % 1000000 FORMAT Null</query>
|
<query>select anyHeavy(SocialSourcePage) from hits_100m_single where SocialSourcePage != '' group by intHash32(UserID) % {group_scale} FORMAT Null</query>
|
||||||
<query>select anyHeavy(ParamOrderID) from hits_100m_single where ParamOrderID != '' group by intHash32(UserID) % 1000000 FORMAT Null</query>
|
<!-- ParamOrderID is almost always empty in hits_100m_single (3k nonempty rows), don't test it -->
|
||||||
<query>select min(OpenstatServiceName) from hits_100m_single where OpenstatServiceName != '' group by intHash32(UserID) % 1000000 FORMAT Null</query>
|
<query>select min(OpenstatServiceName) from hits_100m_single where OpenstatServiceName != '' group by intHash32(UserID) % {group_scale} FORMAT Null</query>
|
||||||
<query>select max(OpenstatServiceName) from hits_100m_single where OpenstatServiceName != '' group by intHash32(UserID) % 1000000 FORMAT Null</query>
|
<query>select max(OpenstatServiceName) from hits_100m_single where OpenstatServiceName != '' group by intHash32(UserID) % {group_scale} FORMAT Null</query>
|
||||||
<query>select any(OpenstatServiceName) from hits_100m_single where OpenstatServiceName != '' group by intHash32(UserID) % 1000000 FORMAT Null</query>
|
<query>select any(OpenstatServiceName) from hits_100m_single where OpenstatServiceName != '' group by intHash32(UserID) % {group_scale} FORMAT Null</query>
|
||||||
<query>select anyHeavy(OpenstatServiceName) from hits_100m_single where OpenstatServiceName != '' group by intHash32(UserID) % 1000000 FORMAT Null</query>
|
<query>select anyHeavy(OpenstatServiceName) from hits_100m_single where OpenstatServiceName != '' group by intHash32(UserID) % {group_scale} FORMAT Null</query>
|
||||||
<query>select min(OpenstatCampaignID) from hits_100m_single where OpenstatCampaignID != '' group by intHash32(UserID) % 1000000 FORMAT Null</query>
|
<query>select min(OpenstatCampaignID) from hits_100m_single where OpenstatCampaignID != '' group by intHash32(UserID) % {group_scale} FORMAT Null</query>
|
||||||
<query>select max(OpenstatCampaignID) from hits_100m_single where OpenstatCampaignID != '' group by intHash32(UserID) % 1000000 FORMAT Null</query>
|
<query>select max(OpenstatCampaignID) from hits_100m_single where OpenstatCampaignID != '' group by intHash32(UserID) % {group_scale} FORMAT Null</query>
|
||||||
<query>select any(OpenstatCampaignID) from hits_100m_single where OpenstatCampaignID != '' group by intHash32(UserID) % 1000000 FORMAT Null</query>
|
<query>select any(OpenstatCampaignID) from hits_100m_single where OpenstatCampaignID != '' group by intHash32(UserID) % {group_scale} FORMAT Null</query>
|
||||||
<query>select anyHeavy(OpenstatCampaignID) from hits_100m_single where OpenstatCampaignID != '' group by intHash32(UserID) % 1000000 FORMAT Null</query>
|
<query>select anyHeavy(OpenstatCampaignID) from hits_100m_single where OpenstatCampaignID != '' group by intHash32(UserID) % {group_scale} FORMAT Null</query>
|
||||||
<query>select min(OpenstatAdID) from hits_100m_single where OpenstatAdID != '' group by intHash32(UserID) % 1000000 FORMAT Null</query>
|
<query>select min(OpenstatAdID) from hits_100m_single where OpenstatAdID != '' group by intHash32(UserID) % {group_scale} FORMAT Null</query>
|
||||||
<query>select max(OpenstatAdID) from hits_100m_single where OpenstatAdID != '' group by intHash32(UserID) % 1000000 FORMAT Null</query>
|
<query>select max(OpenstatAdID) from hits_100m_single where OpenstatAdID != '' group by intHash32(UserID) % {group_scale} FORMAT Null</query>
|
||||||
<query>select any(OpenstatAdID) from hits_100m_single where OpenstatAdID != '' group by intHash32(UserID) % 1000000 FORMAT Null</query>
|
<query>select any(OpenstatAdID) from hits_100m_single where OpenstatAdID != '' group by intHash32(UserID) % {group_scale} FORMAT Null</query>
|
||||||
<query>select anyHeavy(OpenstatAdID) from hits_100m_single where OpenstatAdID != '' group by intHash32(UserID) % 1000000 FORMAT Null</query>
|
<query>select anyHeavy(OpenstatAdID) from hits_100m_single where OpenstatAdID != '' group by intHash32(UserID) % {group_scale} FORMAT Null</query>
|
||||||
<query>select min(OpenstatSourceID) from hits_100m_single where OpenstatSourceID != '' group by intHash32(UserID) % 1000000 FORMAT Null</query>
|
<query>select min(OpenstatSourceID) from hits_100m_single where OpenstatSourceID != '' group by intHash32(UserID) % {group_scale} FORMAT Null</query>
|
||||||
<query>select max(OpenstatSourceID) from hits_100m_single where OpenstatSourceID != '' group by intHash32(UserID) % 1000000 FORMAT Null</query>
|
<query>select max(OpenstatSourceID) from hits_100m_single where OpenstatSourceID != '' group by intHash32(UserID) % {group_scale} FORMAT Null</query>
|
||||||
<query>select any(OpenstatSourceID) from hits_100m_single where OpenstatSourceID != '' group by intHash32(UserID) % 1000000 FORMAT Null</query>
|
<query>select any(OpenstatSourceID) from hits_100m_single where OpenstatSourceID != '' group by intHash32(UserID) % {group_scale} FORMAT Null</query>
|
||||||
<query>select anyHeavy(OpenstatSourceID) from hits_100m_single where OpenstatSourceID != '' group by intHash32(UserID) % 1000000 FORMAT Null</query>
|
<query>select anyHeavy(OpenstatSourceID) from hits_100m_single where OpenstatSourceID != '' group by intHash32(UserID) % {group_scale} FORMAT Null</query>
|
||||||
<query>select min(UTMSource) from hits_100m_single where UTMSource != '' group by intHash32(UserID) % 1000000 FORMAT Null</query>
|
<query>select min(UTMSource) from hits_100m_single where UTMSource != '' group by intHash32(UserID) % {group_scale} FORMAT Null</query>
|
||||||
<query>select max(UTMSource) from hits_100m_single where UTMSource != '' group by intHash32(UserID) % 1000000 FORMAT Null</query>
|
<query>select max(UTMSource) from hits_100m_single where UTMSource != '' group by intHash32(UserID) % {group_scale} FORMAT Null</query>
|
||||||
<query>select any(UTMSource) from hits_100m_single where UTMSource != '' group by intHash32(UserID) % 1000000 FORMAT Null</query>
|
<query>select any(UTMSource) from hits_100m_single where UTMSource != '' group by intHash32(UserID) % {group_scale} FORMAT Null</query>
|
||||||
<query>select anyHeavy(UTMSource) from hits_100m_single where UTMSource != '' group by intHash32(UserID) % 1000000 FORMAT Null</query>
|
<query>select anyHeavy(UTMSource) from hits_100m_single where UTMSource != '' group by intHash32(UserID) % {group_scale} FORMAT Null</query>
|
||||||
<query>select min(UTMMedium) from hits_100m_single where UTMMedium != '' group by intHash32(UserID) % 1000000 FORMAT Null</query>
|
<query>select min(UTMMedium) from hits_100m_single where UTMMedium != '' group by intHash32(UserID) % {group_scale} FORMAT Null</query>
|
||||||
<query>select max(UTMMedium) from hits_100m_single where UTMMedium != '' group by intHash32(UserID) % 1000000 FORMAT Null</query>
|
<query>select max(UTMMedium) from hits_100m_single where UTMMedium != '' group by intHash32(UserID) % {group_scale} FORMAT Null</query>
|
||||||
<query>select any(UTMMedium) from hits_100m_single where UTMMedium != '' group by intHash32(UserID) % 1000000 FORMAT Null</query>
|
<query>select any(UTMMedium) from hits_100m_single where UTMMedium != '' group by intHash32(UserID) % {group_scale} FORMAT Null</query>
|
||||||
<query>select anyHeavy(UTMMedium) from hits_100m_single where UTMMedium != '' group by intHash32(UserID) % 1000000 FORMAT Null</query>
|
<query>select anyHeavy(UTMMedium) from hits_100m_single where UTMMedium != '' group by intHash32(UserID) % {group_scale} FORMAT Null</query>
|
||||||
<query>select min(UTMCampaign) from hits_100m_single where UTMCampaign != '' group by intHash32(UserID) % 1000000 FORMAT Null</query>
|
<query>select min(UTMCampaign) from hits_100m_single where UTMCampaign != '' group by intHash32(UserID) % {group_scale} FORMAT Null</query>
|
||||||
<query>select max(UTMCampaign) from hits_100m_single where UTMCampaign != '' group by intHash32(UserID) % 1000000 FORMAT Null</query>
|
<query>select max(UTMCampaign) from hits_100m_single where UTMCampaign != '' group by intHash32(UserID) % {group_scale} FORMAT Null</query>
|
||||||
<query>select any(UTMCampaign) from hits_100m_single where UTMCampaign != '' group by intHash32(UserID) % 1000000 FORMAT Null</query>
|
<query>select any(UTMCampaign) from hits_100m_single where UTMCampaign != '' group by intHash32(UserID) % {group_scale} FORMAT Null</query>
|
||||||
<query>select anyHeavy(UTMCampaign) from hits_100m_single where UTMCampaign != '' group by intHash32(UserID) % 1000000 FORMAT Null</query>
|
<query>select anyHeavy(UTMCampaign) from hits_100m_single where UTMCampaign != '' group by intHash32(UserID) % {group_scale} FORMAT Null</query>
|
||||||
<query>select min(UTMContent) from hits_100m_single where UTMContent != '' group by intHash32(UserID) % 1000000 FORMAT Null</query>
|
<query>select min(UTMContent) from hits_100m_single where UTMContent != '' group by intHash32(UserID) % {group_scale} FORMAT Null</query>
|
||||||
<query>select max(UTMContent) from hits_100m_single where UTMContent != '' group by intHash32(UserID) % 1000000 FORMAT Null</query>
|
<query>select max(UTMContent) from hits_100m_single where UTMContent != '' group by intHash32(UserID) % {group_scale} FORMAT Null</query>
|
||||||
<query>select any(UTMContent) from hits_100m_single where UTMContent != '' group by intHash32(UserID) % 1000000 FORMAT Null</query>
|
<query>select any(UTMContent) from hits_100m_single where UTMContent != '' group by intHash32(UserID) % {group_scale} FORMAT Null</query>
|
||||||
<query>select anyHeavy(UTMContent) from hits_100m_single where UTMContent != '' group by intHash32(UserID) % 1000000 FORMAT Null</query>
|
<query>select anyHeavy(UTMContent) from hits_100m_single where UTMContent != '' group by intHash32(UserID) % {group_scale} FORMAT Null</query>
|
||||||
<query>select min(UTMTerm) from hits_100m_single where UTMTerm != '' group by intHash32(UserID) % 1000000 FORMAT Null</query>
|
<query>select min(UTMTerm) from hits_100m_single where UTMTerm != '' group by intHash32(UserID) % {group_scale} FORMAT Null</query>
|
||||||
<query>select max(UTMTerm) from hits_100m_single where UTMTerm != '' group by intHash32(UserID) % 1000000 FORMAT Null</query>
|
<query>select max(UTMTerm) from hits_100m_single where UTMTerm != '' group by intHash32(UserID) % {group_scale} FORMAT Null</query>
|
||||||
<query>select any(UTMTerm) from hits_100m_single where UTMTerm != '' group by intHash32(UserID) % 1000000 FORMAT Null</query>
|
<query>select any(UTMTerm) from hits_100m_single where UTMTerm != '' group by intHash32(UserID) % {group_scale} FORMAT Null</query>
|
||||||
<query>select anyHeavy(UTMTerm) from hits_100m_single where UTMTerm != '' group by intHash32(UserID) % 1000000 FORMAT Null</query>
|
<query>select anyHeavy(UTMTerm) from hits_100m_single where UTMTerm != '' group by intHash32(UserID) % {group_scale} FORMAT Null</query>
|
||||||
<query>select min(FromTag) from hits_100m_single where FromTag != '' group by intHash32(UserID) % 1000000 FORMAT Null</query>
|
<query>select min(FromTag) from hits_100m_single where FromTag != '' group by intHash32(UserID) % {group_scale} FORMAT Null</query>
|
||||||
<query>select max(FromTag) from hits_100m_single where FromTag != '' group by intHash32(UserID) % 1000000 FORMAT Null</query>
|
<query>select max(FromTag) from hits_100m_single where FromTag != '' group by intHash32(UserID) % {group_scale} FORMAT Null</query>
|
||||||
<query>select any(FromTag) from hits_100m_single where FromTag != '' group by intHash32(UserID) % 1000000 FORMAT Null</query>
|
<query>select any(FromTag) from hits_100m_single where FromTag != '' group by intHash32(UserID) % {group_scale} FORMAT Null</query>
|
||||||
<query>select anyHeavy(FromTag) from hits_100m_single where FromTag != '' group by intHash32(UserID) % 1000000 FORMAT Null</query>
|
<query>select anyHeavy(FromTag) from hits_100m_single where FromTag != '' group by intHash32(UserID) % {group_scale} FORMAT Null</query>
|
||||||
|
|
||||||
</test>
|
</test>
|
||||||
|
File diff suppressed because one or more lines are too long
@ -1,13 +1,13 @@
|
|||||||
<test>
|
<test>
|
||||||
<query>SELECT max(-1 * (((-2 * (number * -3)) * -4) * -5)) FROM numbers(500000)</query>
|
<query>SELECT max(-1 * (((-2 * (number * -3)) * -4) * -5)) FROM numbers(50000000)</query>
|
||||||
|
|
||||||
<query>SELECT min(-1 * (((-2 * (number * -3)) * -4) * -5)) FROM numbers(500000)</query>
|
<query>SELECT min(-1 * (((-2 * (number * -3)) * -4) * -5)) FROM numbers(50000000)</query>
|
||||||
|
|
||||||
<query>SELECT sum(-1 * (((-2 * (number * -3)) * -4) * -5)) FROM numbers(500000)</query>
|
<query>SELECT sum(-1 * (((-2 * (number * -3)) * -4) * -5)) FROM numbers(50000000)</query>
|
||||||
|
|
||||||
<query>SELECT min(-1 + (((-2 + (number + -3)) + -4) + -5)) FROM numbers(500000)</query>
|
<query>SELECT min(-1 + (((-2 + (number + -3)) + -4) + -5)) FROM numbers(50000000)</query>
|
||||||
|
|
||||||
<query>SELECT max(-1 + (((-2 + (number + -3)) + -4) + -5)) FROM numbers(500000)</query>
|
<query>SELECT max(-1 + (((-2 + (number + -3)) + -4) + -5)) FROM numbers(50000000)</query>
|
||||||
|
|
||||||
<query>SELECT max(((((number) * 10) * -2) * 3) * 2) + min(((((number) * 10) * -2) * 3) * 2) FROM numbers(500000)</query>
|
<query>SELECT max(((((number) * 10) * -2) * 3) * 2) + min(((((number) * 10) * -2) * 3) * 2) FROM numbers(50000000)</query>
|
||||||
</test>
|
</test>
|
||||||
|
@ -1,6 +1,4 @@
|
|||||||
<test>
|
<test>
|
||||||
|
<query>SELECT boundingRatio(number, number) FROM numbers(100000000)</query>
|
||||||
|
<query>SELECT (argMax(number, number) - argMin(number, number)) / (max(number) - min(number)) FROM numbers(100000000)</query>
|
||||||
<query>SELECT boundingRatio(number, number) FROM numbers(1000000)</query>
|
|
||||||
<query>SELECT (argMax(number, number) - argMin(number, number)) / (max(number) - min(number)) FROM numbers(1000000)</query>
|
|
||||||
</test>
|
</test>
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
<test>
|
<test>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<preconditions>
|
<preconditions>
|
||||||
<table_exists>test.hits</table_exists>
|
<table_exists>test.hits</table_exists>
|
||||||
</preconditions>
|
</preconditions>
|
||||||
|
<settings>
|
||||||
|
<max_threads>1</max_threads>
|
||||||
|
</settings>
|
||||||
|
|
||||||
<query>SELECT count() FROM test.hits WHERE NOT ignore(IPv4CIDRToRange(ClientIP, rand() % 33))</query>
|
<query>SELECT count() FROM test.hits WHERE NOT ignore(IPv4CIDRToRange(ClientIP, rand() % 33))</query>
|
||||||
<query>SELECT count() FROM test.hits WHERE NOT ignore(IPv6CIDRToRange(ClientIP6, rand() % 33))</query>
|
<query>SELECT count() FROM test.hits WHERE NOT ignore(IPv6CIDRToRange(ClientIP6, rand() % 33))</query>
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
<test>
|
<!-- FIXME this instability is abysmal, investigate the unstable queries -->
|
||||||
|
<test max_ignored_relative_change="1.5">
|
||||||
<settings>
|
<settings>
|
||||||
<allow_suspicious_codecs>1</allow_suspicious_codecs>
|
<allow_suspicious_codecs>1</allow_suspicious_codecs>
|
||||||
</settings>
|
</settings>
|
||||||
@ -31,18 +32,20 @@
|
|||||||
<substitution>
|
<substitution>
|
||||||
<name>num_rows</name>
|
<name>num_rows</name>
|
||||||
<values>
|
<values>
|
||||||
<value>1000000</value>
|
<value>20000000</value>
|
||||||
</values>
|
</values>
|
||||||
</substitution>
|
</substitution>
|
||||||
</substitutions>
|
</substitutions>
|
||||||
|
|
||||||
<create_query>CREATE TABLE IF NOT EXISTS codec_{seq_type}_{type}_{codec} (n {type} CODEC({codec})) ENGINE = MergeTree PARTITION BY tuple() ORDER BY tuple();</create_query>
|
<create_query>CREATE TABLE IF NOT EXISTS codec_{seq_type}_{type}_{codec} (n {type} CODEC({codec})) ENGINE = MergeTree PARTITION BY tuple() ORDER BY tuple();</create_query>
|
||||||
|
<create_query>system stop merges</create_query>
|
||||||
|
|
||||||
<!-- Using limit to make query finite, allowing it to be run multiple times in a loop, reducing mean error -->
|
<!-- Using limit to make query finite, allowing it to be run multiple times in a loop, reducing mean error -->
|
||||||
<query>INSERT INTO codec_seq_{type}_{codec} (n) SELECT number/pi() FROM system.numbers LIMIT {num_rows} SETTINGS max_threads=1</query>
|
<query>INSERT INTO codec_seq_{type}_{codec} (n) SELECT number/pi() FROM system.numbers LIMIT {num_rows} SETTINGS max_threads=1</query>
|
||||||
<query>INSERT INTO codec_mon_{type}_{codec} (n) SELECT number+sin(number) FROM system.numbers LIMIT {num_rows} SETTINGS max_threads=1</query>
|
<query>INSERT INTO codec_mon_{type}_{codec} (n) SELECT number+sin(number) FROM system.numbers LIMIT {num_rows} SETTINGS max_threads=1</query>
|
||||||
<query>INSERT INTO codec_rnd_{type}_{codec} (n) SELECT (intHash64(number) - 4294967295)/pi() FROM system.numbers LIMIT {num_rows} SETTINGS max_threads=1</query>
|
<query>INSERT INTO codec_rnd_{type}_{codec} (n) SELECT (intHash64(number) - 4294967295)/pi() FROM system.numbers LIMIT {num_rows} SETTINGS max_threads=1</query>
|
||||||
|
|
||||||
|
<drop_query>system start merges</drop_query>
|
||||||
<drop_query>DROP TABLE IF EXISTS codec_{seq_type}_{type}_{codec}</drop_query>
|
<drop_query>DROP TABLE IF EXISTS codec_{seq_type}_{type}_{codec}</drop_query>
|
||||||
|
|
||||||
</test>
|
</test>
|
||||||
|
@ -31,7 +31,7 @@
|
|||||||
<substitution>
|
<substitution>
|
||||||
<name>num_rows</name>
|
<name>num_rows</name>
|
||||||
<values>
|
<values>
|
||||||
<value>1000000</value>
|
<value>20000000</value>
|
||||||
</values>
|
</values>
|
||||||
</substitution>
|
</substitution>
|
||||||
</substitutions>
|
</substitutions>
|
||||||
@ -41,6 +41,7 @@
|
|||||||
<fill_query>INSERT INTO codec_seq_{type}_{codec} (n) SELECT number/pi() FROM system.numbers LIMIT {num_rows} SETTINGS max_threads=1</fill_query>
|
<fill_query>INSERT INTO codec_seq_{type}_{codec} (n) SELECT number/pi() FROM system.numbers LIMIT {num_rows} SETTINGS max_threads=1</fill_query>
|
||||||
<fill_query>INSERT INTO codec_mon_{type}_{codec} (n) SELECT number+sin(number) FROM system.numbers LIMIT {num_rows} SETTINGS max_threads=1</fill_query>
|
<fill_query>INSERT INTO codec_mon_{type}_{codec} (n) SELECT number+sin(number) FROM system.numbers LIMIT {num_rows} SETTINGS max_threads=1</fill_query>
|
||||||
<fill_query>INSERT INTO codec_rnd_{type}_{codec} (n) SELECT (intHash64(number) - 4294967295)/pi() FROM system.numbers LIMIT {num_rows} SETTINGS max_threads=1</fill_query>
|
<fill_query>INSERT INTO codec_rnd_{type}_{codec} (n) SELECT (intHash64(number) - 4294967295)/pi() FROM system.numbers LIMIT {num_rows} SETTINGS max_threads=1</fill_query>
|
||||||
|
<fill_query>optimize table codec_{seq_type}_{type}_{codec} settings optimize_throw_if_noop = 1</fill_query>
|
||||||
|
|
||||||
<query>SELECT count(n) FROM codec_{seq_type}_{type}_{codec} WHERE ignore(n) == 0 LIMIT {num_rows} SETTINGS max_threads=1</query>
|
<query>SELECT count(n) FROM codec_{seq_type}_{type}_{codec} WHERE ignore(n) == 0 LIMIT {num_rows} SETTINGS max_threads=1</query>
|
||||||
|
|
||||||
|
@ -33,7 +33,7 @@
|
|||||||
<substitution>
|
<substitution>
|
||||||
<name>num_rows</name>
|
<name>num_rows</name>
|
||||||
<values>
|
<values>
|
||||||
<value>1000000</value>
|
<value>20000000</value>
|
||||||
</values>
|
</values>
|
||||||
</substitution>
|
</substitution>
|
||||||
</substitutions>
|
</substitutions>
|
||||||
@ -43,6 +43,7 @@
|
|||||||
<fill_query>INSERT INTO codec_seq_{type}_{codec} (n) SELECT number FROM system.numbers LIMIT {num_rows} SETTINGS max_threads=1</fill_query>
|
<fill_query>INSERT INTO codec_seq_{type}_{codec} (n) SELECT number FROM system.numbers LIMIT {num_rows} SETTINGS max_threads=1</fill_query>
|
||||||
<fill_query>INSERT INTO codec_mon_{type}_{codec} (n) SELECT number*512+(intHash64(number)%512) FROM system.numbers LIMIT {num_rows} SETTINGS max_threads=1</fill_query>
|
<fill_query>INSERT INTO codec_mon_{type}_{codec} (n) SELECT number*512+(intHash64(number)%512) FROM system.numbers LIMIT {num_rows} SETTINGS max_threads=1</fill_query>
|
||||||
<fill_query>INSERT INTO codec_rnd_{type}_{codec} (n) SELECT intHash64(number) FROM system.numbers LIMIT {num_rows} SETTINGS max_threads=1</fill_query>
|
<fill_query>INSERT INTO codec_rnd_{type}_{codec} (n) SELECT intHash64(number) FROM system.numbers LIMIT {num_rows} SETTINGS max_threads=1</fill_query>
|
||||||
|
<fill_query>optimize table codec_{seq_type}_{type}_{codec} settings optimize_throw_if_noop = 1</fill_query>
|
||||||
|
|
||||||
<query>SELECT count(n) FROM codec_{seq_type}_{type}_{codec} WHERE ignore(n) == 0 LIMIT {num_rows} SETTINGS max_threads=1</query>
|
<query>SELECT count(n) FROM codec_{seq_type}_{type}_{codec} WHERE ignore(n) == 0 LIMIT {num_rows} SETTINGS max_threads=1</query>
|
||||||
|
|
||||||
|
@ -8,24 +8,23 @@
|
|||||||
</preconditions>
|
</preconditions>
|
||||||
|
|
||||||
|
|
||||||
|
<query short="1"><![CDATA[SELECT count() FROM hits_100m_single WHERE URL < URL]]></query>
|
||||||
<query><![CDATA[SELECT count() FROM hits_100m_single WHERE URL < URL]]></query>
|
|
||||||
<query><![CDATA[SELECT count() FROM hits_100m_single WHERE URL < PageCharset]]></query>
|
<query><![CDATA[SELECT count() FROM hits_100m_single WHERE URL < PageCharset]]></query>
|
||||||
<query><![CDATA[SELECT count() FROM hits_100m_single WHERE SearchPhrase < SearchPhrase SETTINGS max_threads = 2]]></query>
|
<query short="1"><![CDATA[SELECT count() FROM hits_100m_single WHERE SearchPhrase < SearchPhrase SETTINGS max_threads = 2]]></query>
|
||||||
<query><![CDATA[SELECT count() FROM hits_100m_single WHERE SearchPhrase < URL]]></query>
|
<query><![CDATA[SELECT count() FROM hits_100m_single WHERE SearchPhrase < URL]]></query>
|
||||||
<query><![CDATA[SELECT count() FROM hits_100m_single WHERE SearchPhrase < PageCharset SETTINGS max_threads = 2]]></query>
|
<query><![CDATA[SELECT count() FROM hits_100m_single WHERE SearchPhrase < PageCharset SETTINGS max_threads = 2]]></query>
|
||||||
<query><![CDATA[SELECT count() FROM hits_100m_single WHERE notEmpty(SearchPhrase) AND SearchPhrase < SearchPhrase SETTINGS max_threads = 2]]></query>
|
<query short="1"><![CDATA[SELECT count() FROM hits_100m_single WHERE notEmpty(SearchPhrase) AND SearchPhrase < SearchPhrase SETTINGS max_threads = 2]]></query>
|
||||||
<query><![CDATA[SELECT count() FROM hits_100m_single WHERE notEmpty(SearchPhrase) AND SearchPhrase < URL]]></query>
|
<query><![CDATA[SELECT count() FROM hits_100m_single WHERE notEmpty(SearchPhrase) AND SearchPhrase < URL]]></query>
|
||||||
<query><![CDATA[SELECT count() FROM hits_100m_single WHERE notEmpty(SearchPhrase) AND SearchPhrase < PageCharset SETTINGS max_threads = 2]]></query>
|
<query><![CDATA[SELECT count() FROM hits_100m_single WHERE notEmpty(SearchPhrase) AND SearchPhrase < PageCharset SETTINGS max_threads = 2]]></query>
|
||||||
<query><![CDATA[SELECT count() FROM hits_100m_single WHERE MobilePhoneModel < MobilePhoneModel SETTINGS max_threads = 1]]></query>
|
<query short="1"><![CDATA[SELECT count() FROM hits_100m_single WHERE MobilePhoneModel < MobilePhoneModel SETTINGS max_threads = 1]]></query>
|
||||||
<query><![CDATA[SELECT count() FROM hits_100m_single WHERE MobilePhoneModel < URL]]></query>
|
<query><![CDATA[SELECT count() FROM hits_100m_single WHERE MobilePhoneModel < URL]]></query>
|
||||||
<query><![CDATA[SELECT count() FROM hits_100m_single WHERE MobilePhoneModel < PageCharset SETTINGS max_threads = 2]]></query>
|
<query><![CDATA[SELECT count() FROM hits_100m_single WHERE MobilePhoneModel < PageCharset SETTINGS max_threads = 2]]></query>
|
||||||
<query><![CDATA[SELECT count() FROM hits_100m_single WHERE notEmpty(MobilePhoneModel) AND MobilePhoneModel < MobilePhoneModel SETTINGS max_threads = 1]]></query>
|
<query short="1"><![CDATA[SELECT count() FROM hits_100m_single WHERE notEmpty(MobilePhoneModel) AND MobilePhoneModel < MobilePhoneModel SETTINGS max_threads = 1]]></query>
|
||||||
<query><![CDATA[SELECT count() FROM hits_100m_single WHERE notEmpty(MobilePhoneModel) AND MobilePhoneModel < URL]]></query>
|
<query><![CDATA[SELECT count() FROM hits_100m_single WHERE notEmpty(MobilePhoneModel) AND MobilePhoneModel < URL]]></query>
|
||||||
<query><![CDATA[SELECT count() FROM hits_100m_single WHERE notEmpty(MobilePhoneModel) AND MobilePhoneModel < PageCharset SETTINGS max_threads = 2]]></query>
|
<query><![CDATA[SELECT count() FROM hits_100m_single WHERE notEmpty(MobilePhoneModel) AND MobilePhoneModel < PageCharset SETTINGS max_threads = 2]]></query>
|
||||||
<query><![CDATA[SELECT count() FROM hits_100m_single WHERE PageCharset < PageCharset SETTINGS max_threads = 2]]></query>
|
<query short="1"><![CDATA[SELECT count() FROM hits_100m_single WHERE PageCharset < PageCharset SETTINGS max_threads = 2]]></query>
|
||||||
<query><![CDATA[SELECT count() FROM hits_100m_single WHERE PageCharset < URL]]></query>
|
<query><![CDATA[SELECT count() FROM hits_100m_single WHERE PageCharset < URL]]></query>
|
||||||
<query><![CDATA[SELECT count() FROM hits_100m_single WHERE Title < Title]]></query>
|
<query short="1"><![CDATA[SELECT count() FROM hits_100m_single WHERE Title < Title]]></query>
|
||||||
<query><![CDATA[SELECT count() FROM hits_100m_single WHERE Title < URL]]></query>
|
<query><![CDATA[SELECT count() FROM hits_100m_single WHERE Title < URL]]></query>
|
||||||
<query><![CDATA[SELECT count() FROM hits_100m_single WHERE Title < PageCharset]]></query>
|
<query><![CDATA[SELECT count() FROM hits_100m_single WHERE Title < PageCharset]]></query>
|
||||||
|
|
||||||
|
@ -1,7 +1,4 @@
|
|||||||
<test>
|
<test>
|
||||||
|
<query>SELECT count() FROM zeros(10000000) WHERE NOT ignore([[zero], [zero]])</query>
|
||||||
|
<query>SELECT count() FROM zeros(10000000) WHERE NOT ignore([[], [zero]])</query>
|
||||||
|
|
||||||
<query>SELECT count() FROM zeros(1000000) WHERE NOT ignore([[zero], [zero]])</query>
|
|
||||||
<query>SELECT count() FROM zeros(1000000) WHERE NOT ignore([[], [zero]])</query>
|
|
||||||
</test>
|
</test>
|
||||||
|
@ -1,35 +1,35 @@
|
|||||||
<test>
|
<test>
|
||||||
<preconditions>
|
<preconditions>
|
||||||
<table_exists>test.hits</table_exists>
|
<table_exists>hits_100m_single</table_exists>
|
||||||
</preconditions>
|
</preconditions>
|
||||||
|
|
||||||
<query>SELECT count() FROM test.hits WHERE NOT ignore(concat(URL, URL))</query>
|
<query>SELECT count() FROM hits_100m_single WHERE NOT ignore(concat(URL, URL))</query>
|
||||||
<query>SELECT count() FROM test.hits WHERE NOT ignore(concat(URL, SearchPhrase))</query>
|
<query>SELECT count() FROM hits_100m_single WHERE NOT ignore(concat(URL, SearchPhrase))</query>
|
||||||
<query>SELECT count() FROM test.hits WHERE NOT ignore(concat(MobilePhoneModel, SearchPhrase))</query>
|
<query>SELECT count() FROM hits_100m_single WHERE NOT ignore(concat(MobilePhoneModel, SearchPhrase))</query>
|
||||||
<query>SELECT count() FROM test.hits WHERE NOT ignore(concat(URL, 'Hello'))</query>
|
<query>SELECT count() FROM hits_100m_single WHERE NOT ignore(concat(URL, 'Hello'))</query>
|
||||||
<query>SELECT count() FROM test.hits WHERE NOT ignore(concat('World', SearchPhrase))</query>
|
<query>SELECT count() FROM hits_100m_single WHERE NOT ignore(concat('World', SearchPhrase))</query>
|
||||||
<query>SELECT count() FROM test.hits WHERE NOT ignore(concat(MobilePhoneModel, 'Hello'))</query>
|
<query>SELECT count() FROM hits_100m_single WHERE NOT ignore(concat(MobilePhoneModel, 'Hello'))</query>
|
||||||
<query>SELECT count() FROM test.hits WHERE NOT ignore(concat(PageCharset, 'a'))</query>
|
<query>SELECT count() FROM hits_100m_single WHERE NOT ignore(concat(PageCharset, 'a'))</query>
|
||||||
|
|
||||||
<query>SELECT count() FROM test.hits WHERE NOT ignore(format('{{}}{{}}', URL, URL))</query>
|
<query>SELECT count() FROM hits_100m_single WHERE NOT ignore(format('{{}}{{}}', URL, URL))</query>
|
||||||
<query>SELECT count() FROM test.hits WHERE NOT ignore(format('{{}}{{}}', URL, SearchPhrase))</query>
|
<query>SELECT count() FROM hits_100m_single WHERE NOT ignore(format('{{}}{{}}', URL, SearchPhrase))</query>
|
||||||
<query>SELECT count() FROM test.hits WHERE NOT ignore(format('{{}}{{}}', MobilePhoneModel, SearchPhrase))</query>
|
<query>SELECT count() FROM hits_100m_single WHERE NOT ignore(format('{{}}{{}}', MobilePhoneModel, SearchPhrase))</query>
|
||||||
<query>SELECT count() FROM test.hits WHERE NOT ignore(format('{{}}Hello', URL))</query>
|
<query>SELECT count() FROM hits_100m_single WHERE NOT ignore(format('{{}}Hello', URL))</query>
|
||||||
<query>SELECT count() FROM test.hits WHERE NOT ignore(format('World{{}}', SearchPhrase))</query>
|
<query>SELECT count() FROM hits_100m_single WHERE NOT ignore(format('World{{}}', SearchPhrase))</query>
|
||||||
<query>SELECT count() FROM test.hits WHERE NOT ignore(format('{{}}Hello', MobilePhoneModel))</query>
|
<query>SELECT count() FROM hits_100m_single WHERE NOT ignore(format('{{}}Hello', MobilePhoneModel))</query>
|
||||||
<query>SELECT count() FROM test.hits WHERE NOT ignore(format('{{}}a', PageCharset))</query>
|
<query>SELECT count() FROM hits_100m_single WHERE NOT ignore(format('{{}}a', PageCharset))</query>
|
||||||
|
|
||||||
<query>SELECT count() FROM test.hits WHERE NOT ignore(concat(URL, URL, URL))</query>
|
<query>SELECT count() FROM hits_100m_single WHERE NOT ignore(concat(URL, URL, URL))</query>
|
||||||
<query>SELECT count() FROM test.hits WHERE NOT ignore(concat(URL, SearchPhrase, MobilePhoneModel))</query>
|
<query>SELECT count() FROM hits_100m_single WHERE NOT ignore(concat(URL, SearchPhrase, MobilePhoneModel))</query>
|
||||||
<query>SELECT count() FROM test.hits WHERE NOT ignore(concat(URL, 'Hello', URL))</query>
|
<query>SELECT count() FROM hits_100m_single WHERE NOT ignore(concat(URL, 'Hello', URL))</query>
|
||||||
<query>SELECT count() FROM test.hits WHERE NOT ignore(concat('Hello', SearchPhrase, 'World'))</query>
|
<query>SELECT count() FROM hits_100m_single WHERE NOT ignore(concat('Hello', SearchPhrase, 'World'))</query>
|
||||||
<query>SELECT count() FROM test.hits WHERE NOT ignore(concat(MobilePhoneModel, 'Hello', PageCharset))</query>
|
<query>SELECT count() FROM hits_100m_single WHERE NOT ignore(concat(MobilePhoneModel, 'Hello', PageCharset))</query>
|
||||||
<query>SELECT count() FROM test.hits WHERE NOT ignore(concat('a', PageCharset, 'b'))</query>
|
<query>SELECT count() FROM hits_100m_single WHERE NOT ignore(concat('a', PageCharset, 'b'))</query>
|
||||||
|
|
||||||
<query>SELECT count() FROM test.hits WHERE NOT ignore(format('{{}}{{}}{{}}', URL, URL, URL))</query>
|
<query>SELECT count() FROM hits_100m_single WHERE NOT ignore(format('{{}}{{}}{{}}', URL, URL, URL))</query>
|
||||||
<query>SELECT count() FROM test.hits WHERE NOT ignore(format('{{}}{{}}{{}}', URL, SearchPhrase, MobilePhoneModel))</query>
|
<query>SELECT count() FROM hits_100m_single WHERE NOT ignore(format('{{}}{{}}{{}}', URL, SearchPhrase, MobilePhoneModel))</query>
|
||||||
<query>SELECT count() FROM test.hits WHERE NOT ignore(format('{{}}Hello{{}}', URL, URL))</query>
|
<query>SELECT count() FROM hits_100m_single WHERE NOT ignore(format('{{}}Hello{{}}', URL, URL))</query>
|
||||||
<query>SELECT count() FROM test.hits WHERE NOT ignore(format('Hello{{}}World', SearchPhrase))</query>
|
<query>SELECT count() FROM hits_100m_single WHERE NOT ignore(format('Hello{{}}World', SearchPhrase))</query>
|
||||||
<query>SELECT count() FROM test.hits WHERE NOT ignore(format('{{}}Hello{{}}', MobilePhoneModel, PageCharset))</query>
|
<query>SELECT count() FROM hits_100m_single WHERE NOT ignore(format('{{}}Hello{{}}', MobilePhoneModel, PageCharset))</query>
|
||||||
<query>SELECT count() FROM test.hits WHERE NOT ignore(format('a{{}}b', PageCharset))</query>
|
<query>SELECT count() FROM hits_100m_single WHERE NOT ignore(format('a{{}}b', PageCharset))</query>
|
||||||
</test>
|
</test>
|
||||||
|
@ -1,13 +1,11 @@
|
|||||||
<test>
|
<test>
|
||||||
|
<query>SELECT count() FROM zeros(10000000) WHERE NOT ignore(if(rand() % 2, toDateTime('2019-02-04 01:24:31'), toDate('2019-02-04')))</query>
|
||||||
|
<query>SELECT count() FROM zeros(10000000) WHERE NOT ignore(multiIf(rand() % 2, toDateTime('2019-02-04 01:24:31'), toDate('2019-02-04')))</query>
|
||||||
|
<query>SELECT count() FROM zeros(10000000) WHERE NOT ignore(if(rand() % 2, [toDateTime('2019-02-04 01:24:31')], [toDate('2019-02-04')]))</query>
|
||||||
|
<query>SELECT count() FROM zeros(10000000) WHERE NOT ignore(multiIf(rand() % 2, [toDateTime('2019-02-04 01:24:31')], [toDate('2019-02-04')]))</query>
|
||||||
|
|
||||||
|
<query>SELECT count() FROM zeros(10000000) WHERE NOT ignore(if(rand() % 2, toDateTime(rand()), toDate(rand())))</query>
|
||||||
<query>SELECT count() FROM zeros(1000000) WHERE NOT ignore(if(rand() % 2, toDateTime('2019-02-04 01:24:31'), toDate('2019-02-04')))</query>
|
<query>SELECT count() FROM zeros(10000000) WHERE NOT ignore(multiIf(rand() % 2, toDateTime(rand()), toDate(rand())))</query>
|
||||||
<query>SELECT count() FROM zeros(1000000) WHERE NOT ignore(multiIf(rand() % 2, toDateTime('2019-02-04 01:24:31'), toDate('2019-02-04')))</query>
|
<query>SELECT count() FROM zeros(10000000) WHERE NOT ignore(if(rand() % 2, [toDateTime(rand())], [toDate(rand())]))</query>
|
||||||
<query>SELECT count() FROM zeros(1000000) WHERE NOT ignore(if(rand() % 2, [toDateTime('2019-02-04 01:24:31')], [toDate('2019-02-04')]))</query>
|
<query>SELECT count() FROM zeros(10000000) WHERE NOT ignore(multiIf(rand() % 2, [toDateTime(rand())], [toDate(rand())]))</query>
|
||||||
<query>SELECT count() FROM zeros(1000000) WHERE NOT ignore(multiIf(rand() % 2, [toDateTime('2019-02-04 01:24:31')], [toDate('2019-02-04')]))</query>
|
|
||||||
|
|
||||||
<query>SELECT count() FROM zeros(1000000) WHERE NOT ignore(if(rand() % 2, toDateTime(rand()), toDate(rand())))</query>
|
|
||||||
<query>SELECT count() FROM zeros(1000000) WHERE NOT ignore(multiIf(rand() % 2, toDateTime(rand()), toDate(rand())))</query>
|
|
||||||
<query>SELECT count() FROM zeros(1000000) WHERE NOT ignore(if(rand() % 2, [toDateTime(rand())], [toDate(rand())]))</query>
|
|
||||||
<query>SELECT count() FROM zeros(1000000) WHERE NOT ignore(multiIf(rand() % 2, [toDateTime(rand())], [toDate(rand())]))</query>
|
|
||||||
</test>
|
</test>
|
||||||
|
@ -1,7 +1,4 @@
|
|||||||
<test>
|
<test>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<substitutions>
|
<substitutions>
|
||||||
<substitution>
|
<substitution>
|
||||||
<name>hash_func</name>
|
<name>hash_func</name>
|
||||||
@ -20,8 +17,8 @@
|
|||||||
</substitution>
|
</substitution>
|
||||||
</substitutions>
|
</substitutions>
|
||||||
|
|
||||||
<query>SELECT {hash_func}(number, {buckets}) FROM numbers(1000000) FORMAT Null</query>
|
<query short="{buckets} < 10">SELECT {hash_func}(number, {buckets}) FROM numbers(10000000) FORMAT Null</query>
|
||||||
|
|
||||||
<!-- sumbur with high bucket numbers is very slow, so only test two buckers -->
|
<!-- sumbur with high bucket numbers is very slow, so only test two buckers -->
|
||||||
<query>SELECT sumburConsistentHash(toUInt32(number), 2) FROM numbers(1000000) FORMAT Null</query>
|
<query short="1">SELECT sumburConsistentHash(toUInt32(number), 2) FROM numbers(10000000) FORMAT Null</query>
|
||||||
</test>
|
</test>
|
||||||
|
@ -1,13 +1,9 @@
|
|||||||
<test>
|
<test>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<create_query>CREATE TABLE data(k UInt64, v UInt64) ENGINE = MergeTree ORDER BY k</create_query>
|
<create_query>CREATE TABLE data(k UInt64, v UInt64) ENGINE = MergeTree ORDER BY k</create_query>
|
||||||
|
|
||||||
<fill_query>INSERT INTO data SELECT number, 1 from numbers(10000000)</fill_query>
|
<fill_query>INSERT INTO data SELECT number, 1 from numbers(10000000)</fill_query>
|
||||||
|
|
||||||
<query tag='count_10M'>SELECT count() FROM data</query>
|
<query tag='count_10M' short='1'>SELECT count() FROM data</query>
|
||||||
|
|
||||||
<drop_query>DROP TABLE IF EXISTS data</drop_query>
|
<drop_query>DROP TABLE IF EXISTS data</drop_query>
|
||||||
</test>
|
</test>
|
||||||
|
@ -52,17 +52,13 @@ PageCharset тоже почти всегда непуст, но его сред
|
|||||||
<query>SELECT count() FROM hits_10m_single WHERE NOT ignore(cutQueryString(URL)) SETTINGS max_threads = 1</query>
|
<query>SELECT count() FROM hits_10m_single WHERE NOT ignore(cutQueryString(URL)) SETTINGS max_threads = 1</query>
|
||||||
<query>SELECT count() FROM hits_100m_single WHERE NOT ignore(cutQueryString(URL))</query>
|
<query>SELECT count() FROM hits_100m_single WHERE NOT ignore(cutQueryString(URL))</query>
|
||||||
<!-- 38. Разные алгоритмы вычисления квантилей. -->
|
<!-- 38. Разные алгоритмы вычисления квантилей. -->
|
||||||
<query>SELECT quantilesIf(0.5, 0.9)(SendTiming, SendTiming > 0) FROM hits_10m_single SETTINGS max_threads = 1</query>
|
<query>SELECT quantilesIf(0.5, 0.9)(SendTiming, SendTiming > 0) FROM hits_100m_single SETTINGS max_threads = 1</query>
|
||||||
<query>SELECT quantilesIf(0.5, 0.9)(SendTiming, SendTiming > 0) FROM hits_100m_single</query>
|
|
||||||
<!-- 39. Разные алгоритмы вычисления квантилей. -->
|
<!-- 39. Разные алгоритмы вычисления квантилей. -->
|
||||||
<query>SELECT quantilesTimingIf(0.5, 0.9)(SendTiming, SendTiming > 0) FROM hits_10m_single SETTINGS max_threads = 1</query>
|
<query>SELECT quantilesTimingIf(0.5, 0.9)(SendTiming, SendTiming > 0) FROM hits_100m_single SETTINGS max_threads = 1</query>
|
||||||
<query>SELECT quantilesTimingIf(0.5, 0.9)(SendTiming, SendTiming > 0) FROM hits_100m_single</query>
|
|
||||||
<!-- 40. Разные алгоритмы вычисления квантилей. -->
|
<!-- 40. Разные алгоритмы вычисления квантилей. -->
|
||||||
<query>SELECT quantilesExactIf(0.5, 0.9)(SendTiming, SendTiming > 0) FROM hits_10m_single SETTINGS max_threads = 1</query>
|
<query>SELECT quantilesExactIf(0.5, 0.9)(SendTiming, SendTiming > 0) FROM hits_100m_single SETTINGS max_threads = 1</query>
|
||||||
<query>SELECT quantilesExactIf(0.5, 0.9)(SendTiming, SendTiming > 0) FROM hits_100m_single</query>
|
|
||||||
<!-- 41. Разные алгоритмы вычисления квантилей. -->
|
<!-- 41. Разные алгоритмы вычисления квантилей. -->
|
||||||
<query>SELECT quantilesTDigestIf(0.5, 0.9)(SendTiming, SendTiming > 0) FROM hits_10m_single SETTINGS max_threads = 1</query>
|
<query>SELECT quantilesTDigestIf(0.5, 0.9)(SendTiming, SendTiming > 0) FROM hits_100m_single SETTINGS max_threads = 1</query>
|
||||||
<query>SELECT quantilesTDigestIf(0.5, 0.9)(SendTiming, SendTiming > 0) FROM hits_100m_single</query>
|
|
||||||
<!-- 42. Разные алгоритмы вычисления кардинальности. -->
|
<!-- 42. Разные алгоритмы вычисления кардинальности. -->
|
||||||
<query>SELECT uniq(UserID) FROM hits_10m_single SETTINGS max_threads = 1</query>
|
<query>SELECT uniq(UserID) FROM hits_10m_single SETTINGS max_threads = 1</query>
|
||||||
<query>SELECT uniq(UserID) FROM hits_100m_single</query>
|
<query>SELECT uniq(UserID) FROM hits_100m_single</query>
|
||||||
|
@ -1,46 +1,60 @@
|
|||||||
<test max_ignored_relative_change="1.0">
|
<test max_ignored_relative_change="1.0">
|
||||||
<substitutions>
|
<substitutions>
|
||||||
<substitution>
|
<substitution>
|
||||||
<name>crypto_hash_func</name>
|
<name>hash_slow</name>
|
||||||
<values>
|
<values>
|
||||||
<value>MD5</value>
|
<value>MD5</value>
|
||||||
<value>SHA1</value>
|
<value>SHA1</value>
|
||||||
<value>SHA224</value>
|
<value>SHA224</value>
|
||||||
<value>SHA256</value>
|
<value>SHA256</value>
|
||||||
<value>halfMD5</value>
|
<value>halfMD5</value>
|
||||||
|
</values>
|
||||||
|
</substitution>
|
||||||
|
<substitution>
|
||||||
|
<name>hash_fast</name>
|
||||||
|
<values>
|
||||||
<value>sipHash64</value>
|
<value>sipHash64</value>
|
||||||
<value>sipHash128</value>
|
<value>sipHash128</value>
|
||||||
</values>
|
</values>
|
||||||
</substitution>
|
</substitution>
|
||||||
<substitution>
|
<substitution>
|
||||||
<name>string</name>
|
<name>string_small</name>
|
||||||
<values>
|
<values>
|
||||||
<value>materialize('')</value>
|
<value>materialize('')</value>
|
||||||
<value>toString(1000000000+number)</value>
|
<value>toString(1000000000+number)</value>
|
||||||
</values>
|
</values>
|
||||||
</substitution>
|
</substitution>
|
||||||
<substitution>
|
<substitution>
|
||||||
<name>string_slow</name>
|
<name>string_large</name>
|
||||||
<values>
|
<values>
|
||||||
<value>materialize('Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris sollicitudin nisi ac erat mollis dapibus. Maecenas leo purus, bibendum eu erat eget, iaculis molestie tortor. Phasellus maximus odio nec mauris ultrices dictum. Morbi efficitur nisl eget congue mollis. Vestibulum pharetra diam vitae urna interdum, eget ultricies justo sollicitudin. Nunc sit amet purus id leo tempus dignissim. Donec ac lacus ut orci tempus scelerisque quis ultricies nibh. Nullam lobortis, erat ac ullamcorper interdum, odio nisl elementum quam, ut malesuada massa nunc eget quam. Nam suscipit neque quis sapien ultricies imperdiet. Maecenas augue libero, finibus tristique sagittis et, semper nec arcu. Morbi non tortor ultrices, sollicitudin justo sed, accumsan ligula. Nullam at ipsum in nibh auctor ullamcorper. Nullam laoreet neque id lorem condimentum tincidunt. Nullam vel orci nibh. Ut sit amet sem faucibus, fringilla orci at, lacinia enim. Mauris imperdiet ex id scelerisque eleifend. Ut tincidunt massa nibh, viverra pharetra metus')</value>
|
<value>materialize('Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris sollicitudin nisi ac erat mollis dapibus. Maecenas leo purus, bibendum eu erat eget, iaculis molestie tortor. Phasellus maximus odio nec mauris ultrices dictum. Morbi efficitur nisl eget congue mollis. Vestibulum pharetra diam vitae urna interdum, eget ultricies justo sollicitudin. Nunc sit amet purus id leo tempus dignissim. Donec ac lacus ut orci tempus scelerisque quis ultricies nibh. Nullam lobortis, erat ac ullamcorper interdum, odio nisl elementum quam, ut malesuada massa nunc eget quam. Nam suscipit neque quis sapien ultricies imperdiet. Maecenas augue libero, finibus tristique sagittis et, semper nec arcu. Morbi non tortor ultrices, sollicitudin justo sed, accumsan ligula. Nullam at ipsum in nibh auctor ullamcorper. Nullam laoreet neque id lorem condimentum tincidunt. Nullam vel orci nibh. Ut sit amet sem faucibus, fringilla orci at, lacinia enim. Mauris imperdiet ex id scelerisque eleifend. Ut tincidunt massa nibh, viverra pharetra metus')</value>
|
||||||
</values>
|
</values>
|
||||||
</substitution>
|
</substitution>
|
||||||
<substitution>
|
<substitution>
|
||||||
<name>table</name>
|
<name>numbers_small</name>
|
||||||
|
<values>
|
||||||
|
<value>numbers(100000)</value>
|
||||||
|
<value>numbers_mt(1000000)</value>
|
||||||
|
</values>
|
||||||
|
</substitution>
|
||||||
|
<substitution>
|
||||||
|
<name>numbers_medium</name>
|
||||||
<values>
|
<values>
|
||||||
<value>numbers(1000000)</value>
|
<value>numbers(1000000)</value>
|
||||||
<value>numbers_mt(10000000)</value>
|
<value>numbers_mt(10000000)</value>
|
||||||
</values>
|
</values>
|
||||||
</substitution>
|
</substitution>
|
||||||
<substitution>
|
<substitution>
|
||||||
<name>table_slow</name>
|
<name>numbers_large</name>
|
||||||
<values>
|
<values>
|
||||||
<value>zeros(100000)</value>
|
<value>numbers(10000000)</value>
|
||||||
<value>zeros_mt(1000000)</value>
|
<value>numbers_mt(100000000)</value>
|
||||||
</values>
|
</values>
|
||||||
</substitution>
|
</substitution>
|
||||||
</substitutions>
|
</substitutions>
|
||||||
|
|
||||||
<query>SELECT ignore({crypto_hash_func}({string})) FROM {table} FORMAT Null</query>
|
<query>SELECT ignore({hash_slow}({string_small})) FROM {numbers_medium} FORMAT Null</query>
|
||||||
<query>SELECT ignore({crypto_hash_func}({string_slow})) FROM {table_slow} FORMAT Null</query>
|
<query>SELECT ignore({hash_slow}({string_large})) FROM {numbers_small} FORMAT Null</query>
|
||||||
|
<query>SELECT ignore({hash_fast}({string_small})) FROM {numbers_large} FORMAT Null</query>
|
||||||
|
<query>SELECT ignore({hash_fast}({string_large})) FROM {numbers_medium} FORMAT Null</query>
|
||||||
</test>
|
</test>
|
||||||
|
@ -1,10 +1,7 @@
|
|||||||
<test>
|
<test>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<preconditions>
|
<preconditions>
|
||||||
<table_exists>test.hits</table_exists>
|
<table_exists>hits_100m_single</table_exists>
|
||||||
</preconditions>
|
</preconditions>
|
||||||
|
|
||||||
<query>SELECT count() FROM test.hits WHERE NOT ignore(toDate(toString(EventDate)))</query>
|
<query>SELECT count() FROM hits_100m_single WHERE NOT ignore(toDate(toString(EventDate)))</query>
|
||||||
</test>
|
</test>
|
||||||
|
@ -1,15 +1,16 @@
|
|||||||
<test>
|
<test>
|
||||||
|
|
||||||
<preconditions>
|
<preconditions>
|
||||||
<table_exists>hits_100m_single</table_exists>
|
<table_exists>hits_100m_single</table_exists>
|
||||||
</preconditions>
|
</preconditions>
|
||||||
|
|
||||||
|
<settings>
|
||||||
|
<max_threads>1</max_threads>
|
||||||
|
</settings>
|
||||||
|
|
||||||
<create_query>CREATE TABLE dt (x DateTime) ENGINE = MergeTree ORDER BY tuple()</create_query>
|
<create_query>CREATE TABLE dt (x DateTime) ENGINE = MergeTree ORDER BY tuple()</create_query>
|
||||||
<create_query>CREATE TABLE dt64 (x DateTime64(3)) ENGINE = MergeTree ORDER BY tuple()</create_query>
|
<create_query>CREATE TABLE dt64 (x DateTime64(3)) ENGINE = MergeTree ORDER BY tuple()</create_query>
|
||||||
<fill_query>INSERT INTO dt SELECT EventTime FROM hits_100m_single</fill_query>
|
<fill_query>INSERT INTO dt SELECT EventTime FROM hits_10m_single</fill_query>
|
||||||
<fill_query>INSERT INTO dt64 SELECT toDateTime64(toDecimal64(toUInt64(EventTime), 3) + toDecimal64((rand() % 1000) / 1000, 3), 3) FROM hits_100m_single</fill_query>
|
<fill_query>INSERT INTO dt64 SELECT toDateTime64(toDecimal64(toUInt64(EventTime), 3) + toDecimal64((rand() % 1000) / 1000, 3), 3) FROM hits_10m_single</fill_query>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<query>SELECT count() FROM dt where not ignore(x)</query>
|
<query>SELECT count() FROM dt where not ignore(x)</query>
|
||||||
|
@ -1,11 +1,18 @@
|
|||||||
<test>
|
<test>
|
||||||
|
<preconditions>
|
||||||
|
<!--FIXME disabled this test until I fix it -->
|
||||||
|
<table_exists>definitely_no_such_table</table_exists>
|
||||||
|
</preconditions>
|
||||||
|
|
||||||
|
<settings>
|
||||||
|
<max_memory_usage>20G</max_memory_usage>
|
||||||
|
</settings>
|
||||||
|
|
||||||
<create_query>CREATE TABLE t (x UInt64, d32 Decimal32(3), d64 Decimal64(4), d128 Decimal128(5)) ENGINE = Memory</create_query>
|
<create_query>CREATE TABLE t (x UInt64, d32 Decimal32(3), d64 Decimal64(4), d128 Decimal128(5)) ENGINE = Memory</create_query>
|
||||||
<fill_query>INSERT INTO t SELECT number AS x, x AS d32, x AS d64, x d128 FROM numbers(1000000)</fill_query>
|
<!-- use less threads to save memory -->
|
||||||
|
<fill_query>INSERT INTO t SELECT number AS x, x % 1000000 AS d32, x AS d64, x d128 FROM numbers_mt(200000000) SETTINGS max_threads = 8</fill_query>
|
||||||
<drop_query>DROP TABLE IF EXISTS t</drop_query>
|
<drop_query>DROP TABLE IF EXISTS t</drop_query>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<query>SELECT min(d32), max(d32), argMin(x, d32), argMax(x, d32) FROM t</query>
|
<query>SELECT min(d32), max(d32), argMin(x, d32), argMax(x, d32) FROM t</query>
|
||||||
<query>SELECT min(d64), max(d64), argMin(x, d64), argMax(x, d64) FROM t</query>
|
<query>SELECT min(d64), max(d64), argMin(x, d64), argMax(x, d64) FROM t</query>
|
||||||
<query>SELECT min(d128), max(d128), argMin(x, d128), argMax(x, d128) FROM t</query>
|
<query>SELECT min(d128), max(d128), argMin(x, d128), argMax(x, d128) FROM t</query>
|
||||||
@ -14,21 +21,21 @@
|
|||||||
<query>SELECT avg(d64), sum(d64), sumWithOverflow(d64) FROM t</query>
|
<query>SELECT avg(d64), sum(d64), sumWithOverflow(d64) FROM t</query>
|
||||||
<query>SELECT avg(d128), sum(d128), sumWithOverflow(d128) FROM t</query>
|
<query>SELECT avg(d128), sum(d128), sumWithOverflow(d128) FROM t</query>
|
||||||
|
|
||||||
<query>SELECT uniq(d32), uniqCombined(d32), uniqExact(d32), uniqHLL12(d32) FROM t</query>
|
<query>SELECT uniq(d32), uniqCombined(d32), uniqExact(d32), uniqHLL12(d32) FROM t LIMIT 100000</query>
|
||||||
<query>SELECT uniq(d64), uniqCombined(d64), uniqExact(d64), uniqHLL12(d64) FROM t</query>
|
<query>SELECT uniq(d64), uniqCombined(d64), uniqExact(d64), uniqHLL12(d64) FROM t LIMIT 100000</query>
|
||||||
<query>SELECT uniq(d128), uniqCombined(d128), uniqExact(d128), uniqHLL12(d128) FROM t</query>
|
<query>SELECT uniq(d128), uniqCombined(d128), uniqExact(d128), uniqHLL12(d128) FROM t LIMIT 100000</query>
|
||||||
|
|
||||||
<query>SELECT median(d32), medianExact(d32), medianExactWeighted(d32, 2) FROM t</query>
|
<query>SELECT median(d32), medianExact(d32), medianExactWeighted(d32, 2) FROM t LIMIT 100000</query>
|
||||||
<query>SELECT median(d64), medianExact(d64), medianExactWeighted(d64, 2) FROM t</query>
|
<query>SELECT median(d64), medianExact(d64), medianExactWeighted(d64, 2) FROM t LIMIT 100000</query>
|
||||||
<query>SELECT median(d128), medianExact(d128), medianExactWeighted(d128, 2) FROM t</query>
|
<query>SELECT median(d128), medianExact(d128), medianExactWeighted(d128, 2) FROM t LIMIT 100000</query>
|
||||||
|
|
||||||
<query>SELECT quantile(d32), quantileExact(d32), quantileExactWeighted(d32, 2) FROM t</query>
|
<query>SELECT quantile(d32), quantileExact(d32), quantileExactWeighted(d32, 2) FROM t LIMIT 100000</query>
|
||||||
<query>SELECT quantile(d64), quantileExact(d64), quantileExactWeighted(d64, 2) FROM t</query>
|
<query>SELECT quantile(d64), quantileExact(d64), quantileExactWeighted(d64, 2) FROM t LIMIT 100000</query>
|
||||||
<query>SELECT quantile(d128), quantileExact(d128), quantileExactWeighted(d128, 2) FROM t</query>
|
<query>SELECT quantile(d128), quantileExact(d128), quantileExactWeighted(d128, 2) FROM t LIMIT 100000</query>
|
||||||
|
|
||||||
<query>SELECT quantilesExact(0.1, 0.9)(d32), quantilesExactWeighted(0.1, 0.9)(d32, 2) FROM t</query>
|
<query>SELECT quantilesExact(0.1, 0.9)(d32), quantilesExactWeighted(0.1, 0.9)(d32, 2) FROM t LIMIT 100000</query>
|
||||||
<query>SELECT quantilesExact(0.1, 0.9)(d64), quantilesExactWeighted(0.1, 0.9)(d64, 2) FROM t</query>
|
<query>SELECT quantilesExact(0.1, 0.9)(d64), quantilesExactWeighted(0.1, 0.9)(d64, 2) FROM t LIMIT 100000</query>
|
||||||
<query>SELECT quantilesExact(0.1, 0.9)(d128), quantilesExactWeighted(0.1, 0.9)(d128, 2) FROM t</query>
|
<query>SELECT quantilesExact(0.1, 0.9)(d128), quantilesExactWeighted(0.1, 0.9)(d128, 2) FROM t LIMIT 100000</query>
|
||||||
|
|
||||||
<query>SELECT varPop(d32), varSamp(d32), stddevPop(d32) FROM t</query>
|
<query>SELECT varPop(d32), varSamp(d32), stddevPop(d32) FROM t</query>
|
||||||
<query>SELECT varPop(d64), varSamp(d64), stddevPop(d64) FROM t</query>
|
<query>SELECT varPop(d64), varSamp(d64), stddevPop(d64) FROM t</query>
|
||||||
|
@ -1,10 +1,11 @@
|
|||||||
<test>
|
<test>
|
||||||
<preconditions>
|
<preconditions>
|
||||||
<table_exists>hits_10m_single</table_exists>
|
<table_exists>hits_100m_single</table_exists>
|
||||||
</preconditions>
|
</preconditions>
|
||||||
|
<settings><max_threads>1</max_threads></settings>
|
||||||
|
|
||||||
|
<!-- FIXME this should have been an EXPLAIN test, no point in measuring performance to deduce that the query was rewritten -->
|
||||||
<query>SELECT * FROM (SELECT CounterID, EventDate FROM hits_10m_single ORDER BY CounterID DESC) ORDER BY EventDate, CounterID FORMAT Null</query>
|
<query>SELECT * FROM (SELECT CounterID, EventDate FROM hits_10m_single ORDER BY CounterID DESC) ORDER BY EventDate, CounterID FORMAT Null</query>
|
||||||
<query>SELECT DISTINCT * FROM (SELECT DISTINCT CounterID, EventDate FROM hits_10m_single) FORMAT Null</query>
|
<query>SELECT DISTINCT * FROM (SELECT DISTINCT CounterID, EventDate FROM hits_10m_single) FORMAT Null</query>
|
||||||
<query>SELECT DISTINCT * FROM (SELECT DISTINCT CounterID, EventDate FROM hits_10m_single ORDER BY CounterID DESC) ORDER BY toStartOfWeek(EventDate) FORMAT Null</query>
|
<query>SELECT DISTINCT * FROM (SELECT DISTINCT CounterID, EventDate FROM hits_10m_single ORDER BY CounterID DESC) ORDER BY toStartOfWeek(EventDate) FORMAT Null</query>
|
||||||
|
|
||||||
</test>
|
</test>
|
||||||
|
@ -1,10 +1,9 @@
|
|||||||
<test>
|
<test>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<preconditions>
|
<preconditions>
|
||||||
<table_exists>hits_100m_single</table_exists>
|
<table_exists>hits_100m_single</table_exists>
|
||||||
</preconditions>
|
</preconditions>
|
||||||
|
<settings><max_threads>1</max_threads></settings>
|
||||||
|
|
||||||
|
<!-- FIXME this should have been an EXPLAIN test -->
|
||||||
<query>SELECT count(JavaEnable) FROM hits_100m_single WHERE WatchID = 1 OR Title = 'next' OR URL = 'prev' OR OriginalURL = '???' OR 1</query>
|
<query>SELECT count(JavaEnable) FROM hits_100m_single WHERE WatchID = 1 OR Title = 'next' OR URL = 'prev' OR OriginalURL = '???' OR 1</query>
|
||||||
</test>
|
</test>
|
||||||
|
@ -1,14 +1,12 @@
|
|||||||
<test>
|
<test>
|
||||||
|
|
||||||
|
|
||||||
<!-- gcc-8 generates 20% faster code than gcc-9
|
<!-- gcc-8 generates 20% faster code than gcc-9
|
||||||
clang-8 generates more than two times slower code than gcc
|
clang-8 generates more than two times slower code than gcc
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<create_query>CREATE TABLE empty_strings (s String) ENGINE = Log;</create_query>
|
<create_query>CREATE TABLE empty_strings (s String) ENGINE = Log;</create_query>
|
||||||
<fill_query>INSERT INTO empty_strings SELECT '' FROM zeros_mt(100000000);</fill_query>
|
<fill_query>INSERT INTO empty_strings SELECT '' FROM zeros_mt(1000000000);</fill_query>
|
||||||
|
|
||||||
<query>SELECT count() FROM empty_strings</query>
|
<query>SELECT count() FROM empty_strings WHERE NOT ignore(s)</query>
|
||||||
|
|
||||||
<drop_query>DROP TABLE IF EXISTS empty_strings</drop_query>
|
<drop_query>DROP TABLE IF EXISTS empty_strings</drop_query>
|
||||||
</test>
|
</test>
|
||||||
|
@ -1,27 +1,16 @@
|
|||||||
<test>
|
<test>
|
||||||
|
|
||||||
<preconditions>
|
<preconditions>
|
||||||
<table_exists>test.hits</table_exists>
|
<table_exists>hits_100m_single</table_exists>
|
||||||
|
<table_exists>hits_10m_single</table_exists>
|
||||||
</preconditions>
|
</preconditions>
|
||||||
|
|
||||||
|
<query>SELECT entropy(SearchEngineID) FROM hits_100m_single settings max_threads = 1</query>
|
||||||
|
<query>SELECT entropy(SearchPhrase) FROM hits_10m_single</query>
|
||||||
<substitutions>
|
<query>SELECT entropy(MobilePhoneModel) FROM hits_100m_single</query>
|
||||||
<substitution>
|
<query>SELECT entropy(URL) FROM hits_10m_single</query>
|
||||||
<name>args</name>
|
<query>SELECT entropy(URLHash) FROM hits_10m_single</query>
|
||||||
<values>
|
<query>SELECT entropy(URL, URLHash) FROM hits_10m_single</query>
|
||||||
<value>SearchEngineID</value>
|
<query>SELECT entropy(ClientIP) FROM hits_10m_single</query>
|
||||||
<value>SearchPhrase</value>
|
<query>SELECT entropy(RegionID) FROM hits_100m_single settings max_threads = 1</query>
|
||||||
<value>MobilePhoneModel</value>
|
<query>SELECT entropy(ClientIP, RegionID) FROM hits_10m_single</query>
|
||||||
<value>URL</value>
|
|
||||||
<value>URLDomain</value>
|
|
||||||
<value>URL, URLDomain</value>
|
|
||||||
<value>ClientIP</value>
|
|
||||||
<value>RegionID</value>
|
|
||||||
<value>ClientIP, RegionID</value>
|
|
||||||
</values>
|
|
||||||
</substitution>
|
|
||||||
</substitutions>
|
|
||||||
|
|
||||||
<query>SELECT entropy({args}) FROM test.hits</query>
|
|
||||||
</test>
|
</test>
|
||||||
|
@ -7,8 +7,7 @@
|
|||||||
<table_exists>test.hits</table_exists>
|
<table_exists>test.hits</table_exists>
|
||||||
</preconditions>
|
</preconditions>
|
||||||
|
|
||||||
|
<settings><max_threads>1</max_threads></settings>
|
||||||
|
|
||||||
<query><![CDATA[SELECT count() FROM test.hits WHERE ClientIP6 < RemoteIP6]]></query>
|
<query><![CDATA[SELECT count() FROM test.hits WHERE ClientIP6 < RemoteIP6]]></query>
|
||||||
|
|
||||||
</test>
|
</test>
|
||||||
|
@ -22,6 +22,6 @@
|
|||||||
</substitution>
|
</substitution>
|
||||||
</substitutions>
|
</substitutions>
|
||||||
|
|
||||||
<query>SELECT count() FROM numbers(1000000) WHERE NOT ignore(toFloat64({expr}))</query>
|
<query>SELECT count() FROM numbers(10000000) WHERE NOT ignore(toFloat64({expr}))</query>
|
||||||
<query>SELECT count() FROM zeros(1000000) WHERE NOT ignore(toFloat64({expr_zero}))</query>
|
<query>SELECT count() FROM zeros(10000000) WHERE NOT ignore(toFloat64({expr_zero}))</query>
|
||||||
</test>
|
</test>
|
||||||
|
@ -1,9 +1,4 @@
|
|||||||
<test>
|
<test>
|
||||||
|
|
||||||
<tags>
|
|
||||||
</tags>
|
|
||||||
|
|
||||||
|
|
||||||
<substitutions>
|
<substitutions>
|
||||||
<substitution>
|
<substitution>
|
||||||
<name>format</name>
|
<name>format</name>
|
||||||
@ -18,5 +13,5 @@
|
|||||||
</substitution>
|
</substitution>
|
||||||
</substitutions>
|
</substitutions>
|
||||||
|
|
||||||
<query>SELECT count() FROM numbers(1000000) WHERE NOT ignore(toDateTime('2017-01-01 00:00:00') + number % 100000000 + rand() % 100000 AS t, formatDateTime(t, '{format}'))</query>
|
<query>SELECT count() FROM numbers(10000000) WHERE NOT ignore(toDateTime('2017-01-01 00:00:00') + number % 100000000 + rand() % 100000 AS t, formatDateTime(t, '{format}'))</query>
|
||||||
</test>
|
</test>
|
||||||
|
@ -1,8 +1,6 @@
|
|||||||
<test>
|
<test>
|
||||||
|
<query>SELECT count() FROM numbers(100000000) WHERE NOT ignore(MACNumToString(number))</query>
|
||||||
|
<query>SELECT count() FROM numbers(100000000) WHERE NOT ignore(MACStringToNum(MACNumToString(number)))</query>
|
||||||
<query>SELECT count() FROM numbers(1000000) WHERE NOT ignore(MACNumToString(number))</query>
|
<query>SELECT count() FROM zeros_mt(1000000000) WHERE NOT ignore(MACNumToString(rand64()))</query>
|
||||||
<query>SELECT count() FROM numbers(1000000) WHERE NOT ignore(MACStringToNum(MACNumToString(number)))</query>
|
<query>SELECT count() FROM zeros_mt(1000000000) WHERE NOT ignore(MACStringToNum(MACNumToString(rand64())))</query>
|
||||||
<query>SELECT count() FROM zeros_mt(10000000) WHERE NOT ignore(MACNumToString(rand64()))</query>
|
|
||||||
<query>SELECT count() FROM zeros_mt(10000000) WHERE NOT ignore(MACStringToNum(MACNumToString(rand64())))</query>
|
|
||||||
</test>
|
</test>
|
||||||
|
@ -1,21 +1,21 @@
|
|||||||
<test>
|
<test>
|
||||||
<query>SELECT sum(NOT ignore(*)) FROM (SELECT * FROM generateRandom('ui64 UInt64, i64 Int64, ui32 UInt32, i32 Int32, ui16 UInt16, i16 Int16, ui8 UInt8, i8 Int8') LIMIT 10000000);</query>
|
<query>SELECT sum(NOT ignore(*)) FROM (SELECT * FROM generateRandom('ui64 UInt64, i64 Int64, ui32 UInt32, i32 Int32, ui16 UInt16, i16 Int16, ui8 UInt8, i8 Int8') LIMIT 1000000000);</query>
|
||||||
<query>SELECT sum(NOT ignore(*)) FROM (SELECT * FROM generateRandom('ui64 UInt64, i64 Int64, ui32 UInt32, i32 Int32, ui16 UInt16, i16 Int16, ui8 UInt8, i8 Int8', 0, 10, 10) LIMIT 10000000);</query>
|
<query>SELECT sum(NOT ignore(*)) FROM (SELECT * FROM generateRandom('ui64 UInt64, i64 Int64, ui32 UInt32, i32 Int32, ui16 UInt16, i16 Int16, ui8 UInt8, i8 Int8', 0, 10, 10) LIMIT 1000000000);</query>
|
||||||
<query>SELECT sum(NOT ignore(*)) FROM (SELECT * FROM generateRandom('i Enum8(\'hello\' = 1, \'world\' = 5)', 0, 10, 10) LIMIT 10000000);</query>
|
<query>SELECT sum(NOT ignore(*)) FROM (SELECT * FROM generateRandom('i Enum8(\'hello\' = 1, \'world\' = 5)', 0, 10, 10) LIMIT 1000000000);</query>
|
||||||
<query>SELECT sum(NOT ignore(*)) FROM (SELECT * FROM generateRandom('i Array(Nullable(Enum8(\'hello\' = 1, \'world\' = 5)))', 0, 10, 10) LIMIT 10000000);</query>
|
<query>SELECT sum(NOT ignore(*)) FROM (SELECT * FROM generateRandom('i Array(Nullable(Enum8(\'hello\' = 1, \'world\' = 5)))', 0, 10, 10) LIMIT 100000000);</query>
|
||||||
<query>SELECT sum(NOT ignore(*)) FROM (SELECT * FROM generateRandom('i Nullable(Enum16(\'h\' = 1, \'w\' = 5 , \'o\' = -200))', 0, 10, 10) LIMIT 10000000);</query>
|
<query>SELECT sum(NOT ignore(*)) FROM (SELECT * FROM generateRandom('i Nullable(Enum16(\'h\' = 1, \'w\' = 5 , \'o\' = -200))', 0, 10, 10) LIMIT 1000000000);</query>
|
||||||
<query>SELECT sum(NOT ignore(*)) FROM (SELECT * FROM generateRandom('d Date, dt DateTime, dtm DateTime(\'Europe/Moscow\')', 0, 10, 10) LIMIT 10000000);</query>
|
<query>SELECT sum(NOT ignore(*)) FROM (SELECT * FROM generateRandom('d Date, dt DateTime, dtm DateTime(\'Europe/Moscow\')', 0, 10, 10) LIMIT 1000000000);</query>
|
||||||
<query>SELECT sum(NOT ignore(*)) FROM (SELECT * FROM generateRandom('dt64 DateTime64, dts64 DateTime64(6), dtms64 DateTime64(6 ,\'Europe/Moscow\')', 0, 10, 10) LIMIT 10000000);</query>
|
<query>SELECT sum(NOT ignore(*)) FROM (SELECT * FROM generateRandom('dt64 DateTime64, dts64 DateTime64(6), dtms64 DateTime64(6 ,\'Europe/Moscow\')', 0, 10, 10) LIMIT 1000000000);</query>
|
||||||
<query>SELECT sum(NOT ignore(*)) FROM (SELECT * FROM generateRandom('f32 Float32, f64 Float64', 0, 10, 10) LIMIT 10000000);</query>
|
<query>SELECT sum(NOT ignore(*)) FROM (SELECT * FROM generateRandom('f32 Float32, f64 Float64', 0, 10, 10) LIMIT 1000000000);</query>
|
||||||
<query>SELECT sum(NOT ignore(*)) FROM (SELECT * FROM generateRandom('d32 Decimal32(4), d64 Decimal64(8), d128 Decimal128(16)', 0, 10, 10) LIMIT 10000000);</query>
|
<query>SELECT sum(NOT ignore(*)) FROM (SELECT * FROM generateRandom('d32 Decimal32(4), d64 Decimal64(8), d128 Decimal128(16)', 0, 10, 10) LIMIT 1000000000);</query>
|
||||||
<query>SELECT sum(NOT ignore(*)) FROM (SELECT * FROM generateRandom('i Tuple(Int32, Int64)', 0, 10, 10) LIMIT 10000000);</query>
|
<query>SELECT sum(NOT ignore(*)) FROM (SELECT * FROM generateRandom('i Tuple(Int32, Int64)', 0, 10, 10) LIMIT 1000000000);</query>
|
||||||
<query>SELECT sum(NOT ignore(*)) FROM (SELECT * FROM generateRandom('i Array(Int8)', 0, 10, 10) LIMIT 10000000);</query>
|
<query>SELECT sum(NOT ignore(*)) FROM (SELECT * FROM generateRandom('i Array(Int8)', 0, 10, 10) LIMIT 100000000);</query>
|
||||||
<query>SELECT sum(NOT ignore(*)) FROM (SELECT * FROM generateRandom('i Array(Nullable(Int32))', 0, 10, 10) LIMIT 10000000);</query>
|
<query>SELECT sum(NOT ignore(*)) FROM (SELECT * FROM generateRandom('i Array(Nullable(Int32))', 0, 10, 10) LIMIT 100000000);</query>
|
||||||
<query>SELECT sum(NOT ignore(*)) FROM (SELECT * FROM generateRandom('i Tuple(Int32, Array(Int64))', 0, 10, 10) LIMIT 10000000);</query>
|
<query>SELECT sum(NOT ignore(*)) FROM (SELECT * FROM generateRandom('i Tuple(Int32, Array(Int64))', 0, 10, 10) LIMIT 1000000000);</query>
|
||||||
<query>SELECT sum(NOT ignore(*)) FROM (SELECT * FROM generateRandom('i Nullable(String)', 0, 10, 10) LIMIT 10000000);</query>
|
<query>SELECT sum(NOT ignore(*)) FROM (SELECT * FROM generateRandom('i Nullable(String)', 0, 10, 10) LIMIT 1000000000);</query>
|
||||||
<query>SELECT sum(NOT ignore(*)) FROM (SELECT * FROM generateRandom('i Array(String)', 0, 10, 10) LIMIT 10000000);</query>
|
<query>SELECT sum(NOT ignore(*)) FROM (SELECT * FROM generateRandom('i Array(String)', 0, 10, 10) LIMIT 100000000);</query>
|
||||||
<query>SELECT sum(NOT ignore(*)) FROM (SELECT * FROM generateRandom('i UUID', 0, 10, 10) LIMIT 10000000);</query>
|
<query>SELECT sum(NOT ignore(*)) FROM (SELECT * FROM generateRandom('i UUID', 0, 10, 10) LIMIT 1000000000);</query>
|
||||||
<query>SELECT sum(NOT ignore(*)) FROM (SELECT * FROM generateRandom('i Array(Nullable(UUID))', 0, 10, 10) LIMIT 10000000);</query>
|
<query>SELECT sum(NOT ignore(*)) FROM (SELECT * FROM generateRandom('i Array(Nullable(UUID))', 0, 10, 10) LIMIT 100000000);</query>
|
||||||
<query>SELECT sum(NOT ignore(*)) FROM (SELECT * FROM generateRandom('i FixedString(4)', 0, 10, 10) LIMIT 10000000);</query>
|
<query>SELECT sum(NOT ignore(*)) FROM (SELECT * FROM generateRandom('i FixedString(4)', 0, 10, 10) LIMIT 1000000000);</query>
|
||||||
<query>SELECT sum(NOT ignore(*)) FROM (SELECT * FROM generateRandom('i String', 0, 10, 10) LIMIT 10000000);</query>
|
<query>SELECT sum(NOT ignore(*)) FROM (SELECT * FROM generateRandom('i String', 0, 10, 10) LIMIT 1000000000);</query>
|
||||||
</test>
|
</test>
|
||||||
|
@ -1,8 +1,6 @@
|
|||||||
<test>
|
<test>
|
||||||
|
<query>SELECT count() FROM zeros(100000000) WHERE NOT ignore(rand() % 2 ? 'hello' : 'world')</query>
|
||||||
|
<query>SELECT count() FROM zeros(100000000) WHERE NOT ignore(rand() % 2 ? 'hello' : '')</query>
|
||||||
<query>SELECT count() FROM zeros(1000000) WHERE NOT ignore(rand() % 2 ? 'hello' : 'world')</query>
|
<query>SELECT count() FROM zeros(100000000) WHERE NOT ignore(rand() % 2 ? toFixedString('hello', 5) : toFixedString('world', 5))</query>
|
||||||
<query>SELECT count() FROM zeros(1000000) WHERE NOT ignore(rand() % 2 ? 'hello' : '')</query>
|
<query>SELECT count() FROM zeros(100000000) WHERE NOT ignore(rand() % 2 ? '' : toFixedString('world', 5))</query>
|
||||||
<query>SELECT count() FROM zeros(1000000) WHERE NOT ignore(rand() % 2 ? toFixedString('hello', 5) : toFixedString('world', 5))</query>
|
|
||||||
<query>SELECT count() FROM zeros(1000000) WHERE NOT ignore(rand() % 2 ? '' : toFixedString('world', 5))</query>
|
|
||||||
</test>
|
</test>
|
||||||
|
@ -1,13 +1,10 @@
|
|||||||
<test>
|
<test>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<preconditions>
|
<preconditions>
|
||||||
<table_exists>test.hits</table_exists>
|
<table_exists>hits_100m_single</table_exists>
|
||||||
</preconditions>
|
</preconditions>
|
||||||
|
|
||||||
<query>SELECT count() FROM test.hits WHERE NOT ignore(rand() % 2 ? URL : Referer)</query>
|
<query>SELECT count() FROM hits_100m_single WHERE NOT ignore(rand() % 2 ? URL : Referer)</query>
|
||||||
<query>SELECT count() FROM test.hits WHERE NOT ignore(rand() % 2 ? URL : '')</query>
|
<query>SELECT count() FROM hits_100m_single WHERE NOT ignore(rand() % 2 ? URL : '')</query>
|
||||||
<query>SELECT count() FROM test.hits WHERE NOT ignore(rand() % 2 ? SearchPhrase : MobilePhoneModel)</query>
|
<query>SELECT count() FROM hits_100m_single WHERE NOT ignore(rand() % 2 ? SearchPhrase : MobilePhoneModel)</query>
|
||||||
<query>SELECT count() FROM test.hits WHERE NOT ignore(rand() % 2 ? '' : PageCharset)</query>
|
<query>SELECT count() FROM hits_100m_single WHERE NOT ignore(rand() % 2 ? '' : PageCharset)</query>
|
||||||
</test>
|
</test>
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
<test>
|
<test>
|
||||||
<query><![CDATA[ WITH number AS x SELECT sum(x < 1 ? 1 : (x < 5 ? 2 : 3)) FROM numbers(1000000) ]]></query>
|
<query><![CDATA[ WITH number AS x SELECT sum(x < 1 ? 1 : (x < 5 ? 2 : 3)) FROM numbers(100000000) ]]></query>
|
||||||
<query><![CDATA[ WITH number AS x SELECT any(x < 1 ? '1' : (x < 5 ? '2' : '3')) FROM numbers(1000000) ]]></query>
|
<query><![CDATA[ WITH number AS x SELECT any(x < 1 ? '1' : (x < 5 ? '2' : '3')) FROM numbers(100000000) ]]></query>
|
||||||
<query><![CDATA[ WITH number AS x SELECT sum(x < 1 ? 1 : (x < 5 ? 2 : (x < 10 ? 3 : (x % 2 ? 4 : 5)))) FROM numbers(1000000) ]]></query>
|
<query><![CDATA[ WITH number AS x SELECT sum(x < 1 ? 1 : (x < 5 ? 2 : (x < 10 ? 3 : (x % 2 ? 4 : 5)))) FROM numbers(100000000) ]]></query>
|
||||||
<query><![CDATA[ WITH number AS x SELECT any(x < 1 ? '1' : (x < 5 ? '2' : (x < 10 ? '3' : (x % 2 ? '4' : '5')))) FROM numbers(1000000) ]]></query>
|
<query><![CDATA[ WITH number AS x SELECT any(x < 1 ? '1' : (x < 5 ? '2' : (x < 10 ? '3' : (x % 2 ? '4' : '5')))) FROM numbers(100000000) ]]></query>
|
||||||
<query><![CDATA[
|
<query><![CDATA[
|
||||||
WITH number AS x, x = 1 ? 1 : (x = 2 ? 2 : (x = 3 ? 3 : (x = 4 ? 4 : (x = 5 ? 5 : (x = 6 ? 6 : (x = 7 ? 7 : (x = 8 ? 8 : (x = 9 ? 9 : (x = 10 ? 10 : (x = 11 ? 11 : (x = 12 ? 12 : (x = 13 ? 13 : (x = 14 ? 14 : (x = 15 ? 15 : (x = 16 ? 16 : (x = 17 ? 17 : (x = 18 ? 18 : (x = 19 ? 19 : 20)))))))))))))))))) AS res SELECT sum(res) FROM numbers(1000000)
|
WITH number AS x, x = 1 ? 1 : (x = 2 ? 2 : (x = 3 ? 3 : (x = 4 ? 4 : (x = 5 ? 5 : (x = 6 ? 6 : (x = 7 ? 7 : (x = 8 ? 8 : (x = 9 ? 9 : (x = 10 ? 10 : (x = 11 ? 11 : (x = 12 ? 12 : (x = 13 ? 13 : (x = 14 ? 14 : (x = 15 ? 15 : (x = 16 ? 16 : (x = 17 ? 17 : (x = 18 ? 18 : (x = 19 ? 19 : 20)))))))))))))))))) AS res SELECT sum(res) FROM numbers(10000000)
|
||||||
]]></query>
|
]]></query>
|
||||||
</test>
|
</test>
|
||||||
|
@ -1,8 +1,4 @@
|
|||||||
<test>
|
<test>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<query>
|
<query>
|
||||||
WITH
|
WITH
|
||||||
bitXor(number, 0x4CF2D2BAAE6DA887) AS x0,
|
bitXor(number, 0x4CF2D2BAAE6DA887) AS x0,
|
||||||
@ -11,7 +7,7 @@
|
|||||||
bitXor(x2, bitShiftRight(x2, 33)) AS x3,
|
bitXor(x2, bitShiftRight(x2, 33)) AS x3,
|
||||||
x3 * 0xc4ceb9fe1a85ec53 AS x4,
|
x3 * 0xc4ceb9fe1a85ec53 AS x4,
|
||||||
bitXor(x4, bitShiftRight(x4, 33)) AS x5
|
bitXor(x4, bitShiftRight(x4, 33)) AS x5
|
||||||
SELECT count() FROM numbers(10000000) WHERE NOT ignore(x5)
|
SELECT count() FROM numbers(100000000) WHERE NOT ignore(x5)
|
||||||
SETTINGS
|
SETTINGS
|
||||||
compile_expressions = 0
|
compile_expressions = 0
|
||||||
</query>
|
</query>
|
||||||
@ -24,7 +20,7 @@
|
|||||||
bitXor(x2, bitShiftRight(x2, 33)) AS x3,
|
bitXor(x2, bitShiftRight(x2, 33)) AS x3,
|
||||||
x3 * 0xc4ceb9fe1a85ec53 AS x4,
|
x3 * 0xc4ceb9fe1a85ec53 AS x4,
|
||||||
bitXor(x4, bitShiftRight(x4, 33)) AS x5
|
bitXor(x4, bitShiftRight(x4, 33)) AS x5
|
||||||
SELECT count() FROM numbers(10000000) WHERE NOT ignore(x5)
|
SELECT count() FROM numbers(100000000) WHERE NOT ignore(x5)
|
||||||
SETTINGS
|
SETTINGS
|
||||||
compile_expressions = 1,
|
compile_expressions = 1,
|
||||||
min_count_to_compile_expression = 1
|
min_count_to_compile_expression = 1
|
||||||
@ -32,6 +28,6 @@
|
|||||||
|
|
||||||
<!-- The same expression written as ClickHouse builtin function. -->
|
<!-- The same expression written as ClickHouse builtin function. -->
|
||||||
<query>
|
<query>
|
||||||
SELECT count() FROM numbers(10000000) WHERE NOT ignore(intHash64(number))
|
SELECT count() FROM numbers(100000000) WHERE NOT ignore(intHash64(number))
|
||||||
</query>
|
</query>
|
||||||
</test>
|
</test>
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
<test>
|
<test>
|
||||||
<preconditions>
|
<preconditions>
|
||||||
<table_exists>test.hits</table_exists>
|
<table_exists>hits_100m_single</table_exists>
|
||||||
</preconditions>
|
</preconditions>
|
||||||
|
|
||||||
<query>SELECT count() FROM test.hits WHERE NOT ignore(least(URL, Referer))</query>
|
<query>SELECT count() FROM hits_100m_single WHERE NOT ignore(least(URL, Referer))</query>
|
||||||
<query>SELECT count() FROM test.hits WHERE NOT ignore(greatest(URL, Referer, Title))</query>
|
<query>SELECT count() FROM hits_10m_single WHERE NOT ignore(greatest(URL, Referer, Title))</query>
|
||||||
<query>SELECT count() FROM test.hits WHERE NOT ignore(greatest(ClientIP, RemoteIP))</query>
|
<query>SELECT count() FROM hits_100m_single WHERE NOT ignore(greatest(ClientIP, RemoteIP))</query>
|
||||||
</test>
|
</test>
|
||||||
|
@ -2,12 +2,13 @@
|
|||||||
<preconditions>
|
<preconditions>
|
||||||
<table_exists>hits_100m_single</table_exists>
|
<table_exists>hits_100m_single</table_exists>
|
||||||
</preconditions>
|
</preconditions>
|
||||||
|
<settings><max_threads>1</max_threads></settings>
|
||||||
|
|
||||||
<query><![CDATA[SELECT max(length(MobilePhoneModel)) FROM hits_100m_single]]></query>
|
<query><![CDATA[SELECT max(length(MobilePhoneModel)) FROM hits_100m_single]]></query>
|
||||||
<query><![CDATA[SELECT max(length(Params)) FROM hits_100m_single]]></query>
|
<query><![CDATA[SELECT max(length(Params)) FROM hits_100m_single]]></query>
|
||||||
<query><![CDATA[SELECT max(length(Title)) FROM hits_100m_single]]></query>
|
<query><![CDATA[SELECT max(length(Title)) FROM hits_10m_single]]></query>
|
||||||
<query><![CDATA[SELECT max(length(PageCharset)) FROM hits_100m_single]]></query>
|
<query><![CDATA[SELECT max(length(PageCharset)) FROM hits_100m_single]]></query>
|
||||||
<query><![CDATA[SELECT max(length(Referer)) FROM hits_100m_single]]></query>
|
<query><![CDATA[SELECT max(length(Referer)) FROM hits_10m_single]]></query>
|
||||||
<query><![CDATA[SELECT max(length(URL)) FROM hits_100m_single]]></query>
|
<query><![CDATA[SELECT max(length(URL)) FROM hits_10m_single]]></query>
|
||||||
<query><![CDATA[SELECT max(length(UTMSource)) FROM hits_100m_single]]></query>
|
<query><![CDATA[SELECT max(length(UTMSource)) FROM hits_100m_single]]></query>
|
||||||
</test>
|
</test>
|
||||||
|
@ -1,6 +1,4 @@
|
|||||||
<test>
|
<test>
|
||||||
|
|
||||||
|
|
||||||
<create_query>
|
<create_query>
|
||||||
CREATE TABLE huge_pk ENGINE = MergeTree ORDER BY (
|
CREATE TABLE huge_pk ENGINE = MergeTree ORDER BY (
|
||||||
c001, c002, c003, c004, c005, c006, c007, c008, c009, c010, c011, c012, c013, c014, c015, c016, c017, c018, c019, c020,
|
c001, c002, c003, c004, c005, c006, c007, c008, c009, c010, c011, c012, c013, c014, c015, c016, c017, c018, c019, c020,
|
||||||
@ -185,11 +183,11 @@
|
|||||||
</create_query>
|
</create_query>
|
||||||
|
|
||||||
<!-- some queries with PK conditions -->
|
<!-- some queries with PK conditions -->
|
||||||
<query><![CDATA[SELECT count() FROM huge_pk WHERE c001 > 10]]></query>
|
<query short="1"><![CDATA[SELECT count() FROM huge_pk WHERE c001 > 10]]></query>
|
||||||
<query><![CDATA[SELECT count() FROM huge_pk WHERE c001 in (2,3) and c400 in (10,0) and c100 < 2]]></query>
|
<query short="1"><![CDATA[SELECT count() FROM huge_pk WHERE c001 in (2,3) and c400 in (10,0) and c100 < 2]]></query>
|
||||||
<query><![CDATA[SELECT count() FROM huge_pk WHERE c700 > 10]]></query>
|
<query short="1"><![CDATA[SELECT count() FROM huge_pk WHERE c700 > 10]]></query>
|
||||||
<!-- column c701 is not in PK-->
|
<!-- column c701 is not in PK-->
|
||||||
<query><![CDATA[SELECT count() FROM huge_pk WHERE c701 > 10]]></query>
|
<query short="1"><![CDATA[SELECT count() FROM huge_pk WHERE c701 > 10]]></query>
|
||||||
|
|
||||||
<drop_query>DROP TABLE IF EXISTS huge_pk</drop_query>
|
<drop_query>DROP TABLE IF EXISTS huge_pk</drop_query>
|
||||||
</test>
|
</test>
|
||||||
|
@ -1,15 +1,12 @@
|
|||||||
<test>
|
<test>
|
||||||
|
|
||||||
<create_query>CREATE TABLE bad_partitions (x UInt64) ENGINE = MergeTree PARTITION BY x ORDER BY x</create_query>
|
<create_query>CREATE TABLE bad_partitions (x UInt64) ENGINE = MergeTree PARTITION BY x ORDER BY x</create_query>
|
||||||
<fill_query>INSERT INTO bad_partitions SELECT * FROM numbers(10000)</fill_query>
|
<fill_query>INSERT INTO bad_partitions SELECT * FROM numbers(10000)</fill_query>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<settings>
|
<settings>
|
||||||
<max_partitions_per_insert_block>0</max_partitions_per_insert_block>
|
<max_partitions_per_insert_block>0</max_partitions_per_insert_block>
|
||||||
</settings>
|
</settings>
|
||||||
|
|
||||||
<query>SELECT count() FROM bad_partitions</query>
|
<query short="1">SELECT count() FROM bad_partitions</query>
|
||||||
|
|
||||||
<drop_query>DROP TABLE IF EXISTS bad_partitions</drop_query>
|
<drop_query>DROP TABLE IF EXISTS bad_partitions</drop_query>
|
||||||
</test>
|
</test>
|
||||||
|
@ -1,12 +1,9 @@
|
|||||||
<test>
|
<test>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<create_query>CREATE TABLE simple_mergetree (EventDate Date, x UInt64) ENGINE = MergeTree ORDER BY x</create_query>
|
<create_query>CREATE TABLE simple_mergetree (EventDate Date, x UInt64) ENGINE = MergeTree ORDER BY x</create_query>
|
||||||
<fill_query>INSERT INTO simple_mergetree SELECT number, today() + intDiv(number, 10000000) FROM numbers_mt(100000000)</fill_query>
|
<fill_query>INSERT INTO simple_mergetree SELECT number, today() + intDiv(number, 10000000) FROM numbers_mt(100000000)</fill_query>
|
||||||
<fill_query>OPTIMIZE TABLE simple_mergetree FINAL</fill_query>
|
<fill_query>OPTIMIZE TABLE simple_mergetree FINAL</fill_query>
|
||||||
|
|
||||||
<query>SELECT count() FROM simple_mergetree</query>
|
<query short="1">SELECT count() FROM simple_mergetree</query>
|
||||||
|
|
||||||
<drop_query>DROP TABLE IF EXISTS simple_mergetree</drop_query>
|
<drop_query>DROP TABLE IF EXISTS simple_mergetree</drop_query>
|
||||||
</test>
|
</test>
|
||||||
|
@ -12,7 +12,7 @@
|
|||||||
<query>SELECT number AS n FROM numbers_mt(200000000) ORDER BY n DESC LIMIT 10000 FORMAT Null</query>
|
<query>SELECT number AS n FROM numbers_mt(200000000) ORDER BY n DESC LIMIT 10000 FORMAT Null</query>
|
||||||
<query>SELECT number AS n FROM numbers_mt(200000000) ORDER BY n DESC LIMIT 65535 settings max_block_size = 65536 FORMAT Null</query>
|
<query>SELECT number AS n FROM numbers_mt(200000000) ORDER BY n DESC LIMIT 65535 settings max_block_size = 65536 FORMAT Null</query>
|
||||||
|
|
||||||
<query>SELECT intHash64(number) AS n FROM numbers_mt(200000000) ORDER BY n LIMIT 10 FORMAT Null</query>
|
<query>SELECT intHash64(number) AS n FROM numbers_mt(500000000) ORDER BY n LIMIT 10 FORMAT Null</query>
|
||||||
<query>SELECT intHash64(number) AS n FROM numbers_mt(200000000) ORDER BY n LIMIT 100 FORMAT Null</query>
|
<query>SELECT intHash64(number) AS n FROM numbers_mt(200000000) ORDER BY n LIMIT 100 FORMAT Null</query>
|
||||||
<query>SELECT intHash64(number) AS n FROM numbers_mt(200000000) ORDER BY n LIMIT 1500 FORMAT Null</query>
|
<query>SELECT intHash64(number) AS n FROM numbers_mt(200000000) ORDER BY n LIMIT 1500 FORMAT Null</query>
|
||||||
<query>SELECT intHash64(number) AS n FROM numbers_mt(200000000) ORDER BY n LIMIT 3000 FORMAT Null</query>
|
<query>SELECT intHash64(number) AS n FROM numbers_mt(200000000) ORDER BY n LIMIT 3000 FORMAT Null</query>
|
||||||
|
File diff suppressed because one or more lines are too long
@ -1,9 +1,6 @@
|
|||||||
<test>
|
<test>
|
||||||
|
<query>SELECT count() FROM zeros(100000000) WHERE NOT ignore(randomFixedString(10))</query>
|
||||||
|
<query>SELECT count() FROM zeros(10000000) WHERE NOT ignore(randomFixedString(100))</query>
|
||||||
|
|
||||||
<query>SELECT count() FROM zeros(1000000) WHERE NOT ignore(randomFixedString(10))</query>
|
|
||||||
<query>SELECT count() FROM zeros(1000000) WHERE NOT ignore(randomFixedString(100))</query>
|
|
||||||
<query>SELECT count() FROM zeros(100000) WHERE NOT ignore(randomFixedString(1000))</query>
|
<query>SELECT count() FROM zeros(100000) WHERE NOT ignore(randomFixedString(1000))</query>
|
||||||
<query>SELECT count() FROM zeros(10000) WHERE NOT ignore(randomFixedString(10000))</query>
|
<query>SELECT count() FROM zeros(10000) WHERE NOT ignore(randomFixedString(10000))</query>
|
||||||
</test>
|
</test>
|
||||||
|
@ -1,9 +1,6 @@
|
|||||||
<test>
|
<test>
|
||||||
|
<query>SELECT count() FROM zeros(10000000) WHERE NOT ignore(randomPrintableASCII(10))</query>
|
||||||
|
<query>SELECT count() FROM zeros(10000000) WHERE NOT ignore(randomPrintableASCII(100))</query>
|
||||||
|
|
||||||
<query>SELECT count() FROM zeros(1000000) WHERE NOT ignore(randomPrintableASCII(10))</query>
|
|
||||||
<query>SELECT count() FROM zeros(1000000) WHERE NOT ignore(randomPrintableASCII(100))</query>
|
|
||||||
<query>SELECT count() FROM zeros(100000) WHERE NOT ignore(randomPrintableASCII(1000))</query>
|
<query>SELECT count() FROM zeros(100000) WHERE NOT ignore(randomPrintableASCII(1000))</query>
|
||||||
<query>SELECT count() FROM zeros(10000) WHERE NOT ignore(randomPrintableASCII(10000))</query>
|
<query>SELECT count() FROM zeros(10000) WHERE NOT ignore(randomPrintableASCII(10000))</query>
|
||||||
<query>SELECT count() FROM zeros(10000000) WHERE NOT ignore(randomPrintableASCII(rand() % 10))</query>
|
<query>SELECT count() FROM zeros(10000000) WHERE NOT ignore(randomPrintableASCII(rand() % 10))</query>
|
||||||
|
@ -1,9 +1,6 @@
|
|||||||
<test>
|
<test>
|
||||||
|
<query>SELECT count() FROM zeros(10000000) WHERE NOT ignore(randomString(10))</query>
|
||||||
|
<query>SELECT count() FROM zeros(10000000) WHERE NOT ignore(randomString(100))</query>
|
||||||
|
|
||||||
<query>SELECT count() FROM zeros(1000000) WHERE NOT ignore(randomString(10))</query>
|
|
||||||
<query>SELECT count() FROM zeros(1000000) WHERE NOT ignore(randomString(100))</query>
|
|
||||||
<query>SELECT count() FROM zeros(100000) WHERE NOT ignore(randomString(1000))</query>
|
<query>SELECT count() FROM zeros(100000) WHERE NOT ignore(randomString(1000))</query>
|
||||||
<query>SELECT count() FROM zeros(10000) WHERE NOT ignore(randomString(10000))</query>
|
<query>SELECT count() FROM zeros(10000) WHERE NOT ignore(randomString(10000))</query>
|
||||||
<query>SELECT count() FROM zeros(10000000) WHERE NOT ignore(randomString(rand() % 10))</query>
|
<query>SELECT count() FROM zeros(10000000) WHERE NOT ignore(randomString(rand() % 10))</query>
|
||||||
|
@ -2,31 +2,27 @@
|
|||||||
<settings>
|
<settings>
|
||||||
<optimize_aggregation_in_order>1</optimize_aggregation_in_order>
|
<optimize_aggregation_in_order>1</optimize_aggregation_in_order>
|
||||||
<optimize_read_in_order>1</optimize_read_in_order>
|
<optimize_read_in_order>1</optimize_read_in_order>
|
||||||
<max_partitions_per_insert_block>200</max_partitions_per_insert_block>
|
<max_partitions_per_insert_block>2000</max_partitions_per_insert_block>
|
||||||
<max_threads>8</max_threads>
|
<max_threads>8</max_threads>
|
||||||
</settings>
|
</settings>
|
||||||
|
|
||||||
<substitutions>
|
<substitutions>
|
||||||
<substitution>
|
<substitution>
|
||||||
<name>table</name>
|
<name>parts</name>
|
||||||
<values>
|
<values>
|
||||||
<value>mt_20_parts</value>
|
<value>100</value>
|
||||||
<value>mt_200_parts</value>
|
<value>1000</value>
|
||||||
</values>
|
</values>
|
||||||
</substitution>
|
</substitution>
|
||||||
</substitutions>
|
</substitutions>
|
||||||
|
|
||||||
<create_query>CREATE TABLE mt_20_parts(id UInt32, val1 UInt32, val2 UInt32) ENGINE = MergeTree ORDER BY val1 PARTITION BY id % 20</create_query>
|
<create_query>CREATE TABLE mt_{parts}_parts(id UInt32, val1 UInt32, val2 UInt32) ENGINE = MergeTree ORDER BY val1 PARTITION BY id % {parts}</create_query>
|
||||||
<create_query>CREATE TABLE mt_200_parts(id UInt32, val1 UInt32, val2 UInt32) ENGINE = MergeTree ORDER BY val1 PARTITION BY id % 200</create_query>
|
<fill_query>INSERT INTO mt_{parts}_parts SELECT number, rand() % 10000, rand() FROM numbers_mt(100000000)</fill_query>
|
||||||
|
<fill_query>OPTIMIZE TABLE mt_{parts}_parts FINAL</fill_query>
|
||||||
|
|
||||||
<fill_query>INSERT INTO mt_20_parts SELECT number, rand() % 10000, rand() FROM numbers_mt(100000000)</fill_query>
|
<query>SELECT val2 FROM mt_{parts}_parts ORDER BY val1 LIMIT 10000 FORMAT Null</query>
|
||||||
<fill_query>INSERT INTO mt_200_parts SELECT number, rand() % 10000, rand() FROM numbers_mt(100000000)</fill_query>
|
<query>SELECT val2 FROM mt_{parts}_parts ORDER BY val1 LIMIT 100000 FORMAT Null</query>
|
||||||
<fill_query>OPTIMIZE TABLE mt_20_parts FINAL</fill_query>
|
<query>SELECT sum(val2) FROM mt_{parts}_parts GROUP BY val1 FORMAT Null</query>
|
||||||
<fill_query>OPTIMIZE TABLE mt_200_parts FINAL</fill_query>
|
|
||||||
|
|
||||||
<query>SELECT val2 FROM {table} ORDER BY val1 LIMIT 100 FORMAT Null</query>
|
<drop_query>DROP TABLE IF EXISTS mt_{parts}_parts</drop_query>
|
||||||
<query>SELECT val2 FROM {table} ORDER BY val1 LIMIT 100000 FORMAT Null</query>
|
|
||||||
<query>SELECT sum(val2) FROM {table} GROUP BY val1 FORMAT Null</query>
|
|
||||||
|
|
||||||
<drop_query>DROP TABLE IF EXISTS {table}</drop_query>
|
|
||||||
</test>
|
</test>
|
||||||
|
@ -1,22 +1,19 @@
|
|||||||
<test>
|
<test>
|
||||||
|
<query>SELECT count() FROM numbers(100000000) WHERE NOT ignore(round(toInt64(number), -2))</query>
|
||||||
|
<query>SELECT count() FROM numbers(100000000) WHERE NOT ignore(roundBankers(toInt64(number), -2))</query>
|
||||||
|
<query>SELECT count() FROM numbers(100000000) WHERE NOT ignore(floor(toInt64(number), -2))</query>
|
||||||
|
<query>SELECT count() FROM numbers(100000000) WHERE NOT ignore(ceil(toInt64(number), -2))</query>
|
||||||
|
<query>SELECT count() FROM numbers(100000000) WHERE NOT ignore(trunc(toInt64(number), -2))</query>
|
||||||
|
|
||||||
|
<query>SELECT count() FROM numbers(100000000) WHERE NOT ignore(round(toFloat64(number), -2))</query>
|
||||||
|
<query>SELECT count() FROM numbers(100000000) WHERE NOT ignore(roundBankers(toFloat64(number), -2))</query>
|
||||||
|
<query>SELECT count() FROM numbers(100000000) WHERE NOT ignore(floor(toFloat64(number), -2))</query>
|
||||||
|
<query>SELECT count() FROM numbers(100000000) WHERE NOT ignore(ceil(toFloat64(number), -2))</query>
|
||||||
|
<query>SELECT count() FROM numbers(100000000) WHERE NOT ignore(trunc(toFloat64(number), -2))</query>
|
||||||
|
|
||||||
|
<query>SELECT count() FROM numbers(10000000) WHERE NOT ignore(round(toDecimal128(number, 0), -2))</query>
|
||||||
<query>SELECT count() FROM numbers(1000000) WHERE NOT ignore(round(toInt64(number), -2))</query>
|
<query>SELECT count() FROM numbers(10000000) WHERE NOT ignore(roundBankers(toDecimal128(number, 0), -2))</query>
|
||||||
<query>SELECT count() FROM numbers(1000000) WHERE NOT ignore(roundBankers(toInt64(number), -2))</query>
|
<query>SELECT count() FROM numbers(10000000) WHERE NOT ignore(floor(toDecimal128(number, 0), -2))</query>
|
||||||
<query>SELECT count() FROM numbers(1000000) WHERE NOT ignore(floor(toInt64(number), -2))</query>
|
<query>SELECT count() FROM numbers(10000000) WHERE NOT ignore(ceil(toDecimal128(number, 0), -2))</query>
|
||||||
<query>SELECT count() FROM numbers(1000000) WHERE NOT ignore(ceil(toInt64(number), -2))</query>
|
<query>SELECT count() FROM numbers(10000000) WHERE NOT ignore(trunc(toDecimal128(number, 0), -2))</query>
|
||||||
<query>SELECT count() FROM numbers(1000000) WHERE NOT ignore(trunc(toInt64(number), -2))</query>
|
|
||||||
|
|
||||||
<query>SELECT count() FROM numbers(1000000) WHERE NOT ignore(round(toFloat64(number), -2))</query>
|
|
||||||
<query>SELECT count() FROM numbers(1000000) WHERE NOT ignore(roundBankers(toFloat64(number), -2))</query>
|
|
||||||
<query>SELECT count() FROM numbers(1000000) WHERE NOT ignore(floor(toFloat64(number), -2))</query>
|
|
||||||
<query>SELECT count() FROM numbers(1000000) WHERE NOT ignore(ceil(toFloat64(number), -2))</query>
|
|
||||||
<query>SELECT count() FROM numbers(1000000) WHERE NOT ignore(trunc(toFloat64(number), -2))</query>
|
|
||||||
|
|
||||||
<query>SELECT count() FROM numbers(1000000) WHERE NOT ignore(round(toDecimal128(number, 0), -2))</query>
|
|
||||||
<query>SELECT count() FROM numbers(1000000) WHERE NOT ignore(roundBankers(toDecimal128(number, 0), -2))</query>
|
|
||||||
<query>SELECT count() FROM numbers(1000000) WHERE NOT ignore(floor(toDecimal128(number, 0), -2))</query>
|
|
||||||
<query>SELECT count() FROM numbers(1000000) WHERE NOT ignore(ceil(toDecimal128(number, 0), -2))</query>
|
|
||||||
<query>SELECT count() FROM numbers(1000000) WHERE NOT ignore(trunc(toDecimal128(number, 0), -2))</query>
|
|
||||||
</test>
|
</test>
|
||||||
|
File diff suppressed because one or more lines are too long
@ -1,11 +1,8 @@
|
|||||||
<test>
|
<test>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<preconditions>
|
<preconditions>
|
||||||
<table_exists>test.hits</table_exists>
|
<table_exists>hits_100m_single</table_exists>
|
||||||
</preconditions>
|
</preconditions>
|
||||||
|
|
||||||
<query>SELECT count() FROM test.hits WHERE NOT ignore(substring(URL, 10, 20))</query>
|
<query>SELECT count() FROM hits_100m_single WHERE NOT ignore(substring(URL, 10, 20))</query>
|
||||||
<query>SELECT count() FROM test.hits WHERE NOT ignore(substring(PageCharset, 1, 2))</query>
|
<query>SELECT count() FROM hits_100m_single WHERE NOT ignore(substring(PageCharset, 1, 2))</query>
|
||||||
</test>
|
</test>
|
||||||
|
@ -4,8 +4,6 @@
|
|||||||
<table_exists>hits_100m_single</table_exists>
|
<table_exists>hits_100m_single</table_exists>
|
||||||
</preconditions>
|
</preconditions>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<substitutions>
|
<substitutions>
|
||||||
<substitution>
|
<substitution>
|
||||||
<name>str1</name>
|
<name>str1</name>
|
||||||
@ -37,19 +35,18 @@
|
|||||||
<query><![CDATA[SELECT {str1} FROM hits_100m_single ORDER BY {str1} LIMIT 2000 format Null]]></query>
|
<query><![CDATA[SELECT {str1} FROM hits_100m_single ORDER BY {str1} LIMIT 2000 format Null]]></query>
|
||||||
<query><![CDATA[SELECT {str1} FROM hits_100m_single ORDER BY {str1} LIMIT 5000 format Null]]></query>
|
<query><![CDATA[SELECT {str1} FROM hits_100m_single ORDER BY {str1} LIMIT 5000 format Null]]></query>
|
||||||
<query><![CDATA[SELECT {str1} FROM hits_100m_single ORDER BY {str1} LIMIT 10000 format Null]]></query>
|
<query><![CDATA[SELECT {str1} FROM hits_100m_single ORDER BY {str1} LIMIT 10000 format Null]]></query>
|
||||||
<query><![CDATA[SELECT {str1} FROM hits_10m_single ORDER BY {str1} LIMIT 65535 format Null settings max_block_size = 65536]]></query>
|
<query><![CDATA[SELECT {str1} FROM hits_100m_single ORDER BY {str1} LIMIT 65535 format Null settings max_block_size = 65536]]></query>
|
||||||
|
|
||||||
<query><![CDATA[SELECT {str1} FROM hits_100m_single ORDER BY {str1}, CounterID LIMIT 10 format Null]]></query>
|
<query><![CDATA[SELECT {str1} FROM hits_100m_single ORDER BY {str1}, CounterID LIMIT 10 format Null]]></query>
|
||||||
<query><![CDATA[SELECT {str1} FROM hits_100m_single ORDER BY {str1}, CounterID LIMIT 300 format Null]]></query>
|
<query><![CDATA[SELECT {str1} FROM hits_100m_single ORDER BY {str1}, CounterID LIMIT 300 format Null]]></query>
|
||||||
<query><![CDATA[SELECT {str1} FROM hits_10m_single ORDER BY {str1}, CounterID LIMIT 1500 format Null]]></query>
|
<query><![CDATA[SELECT {str1} FROM hits_100m_single ORDER BY {str1}, CounterID LIMIT 1500 format Null]]></query>
|
||||||
<query><![CDATA[SELECT {str1} FROM hits_10m_single ORDER BY {str1}, CounterID LIMIT 2000 format Null]]></query>
|
<query><![CDATA[SELECT {str1} FROM hits_100m_single ORDER BY {str1}, CounterID LIMIT 2000 format Null]]></query>
|
||||||
<query><![CDATA[SELECT {str1} FROM hits_10m_single ORDER BY {str1}, CounterID LIMIT 5000 format Null]]></query>
|
<query><![CDATA[SELECT {str1} FROM hits_100m_single ORDER BY {str1}, CounterID LIMIT 5000 format Null]]></query>
|
||||||
<query><![CDATA[SELECT {str1} FROM hits_10m_single ORDER BY {str1}, CounterID LIMIT 10000 format Null]]></query>
|
<query><![CDATA[SELECT {str1} FROM hits_100m_single ORDER BY {str1}, CounterID LIMIT 10000 format Null]]></query>
|
||||||
<query><![CDATA[SELECT {str1} FROM hits_10m_single ORDER BY {str1}, CounterID LIMIT 65535 format Null settings max_block_size = 65536]]></query>
|
<query><![CDATA[SELECT {str1} FROM hits_10m_single ORDER BY {str1}, CounterID LIMIT 65535 format Null settings max_block_size = 65536]]></query>
|
||||||
|
|
||||||
<query><![CDATA[SELECT {str1} FROM hits_10m_single ORDER BY {str1} LIMIT 9000000, 10]]></query>
|
<query><![CDATA[SELECT {str1} FROM hits_10m_single ORDER BY {str1} LIMIT 9000000, 10 FORMAT Null]]></query>
|
||||||
|
|
||||||
<query><![CDATA[SELECT {str1}, {str2} FROM hits_100m_single ORDER BY {str1}, {str2} LIMIT 10]]></query>
|
|
||||||
<query><![CDATA[SELECT {str1}, {str2} FROM hits_10m_single ORDER BY {str1}, {str2} LIMIT 9000000, 10]]></query>
|
|
||||||
|
|
||||||
|
<query><![CDATA[SELECT {str1}, {str2} FROM hits_100m_single ORDER BY {str1}, {str2} LIMIT 10 FORMAT Null]]></query>
|
||||||
|
<query><![CDATA[SELECT {str1}, {str2} FROM hits_10m_single ORDER BY {str1}, {str2} LIMIT 9000000, 10 FORMAT Null]]></query>
|
||||||
</test>
|
</test>
|
||||||
|
@ -19,14 +19,14 @@
|
|||||||
</substitution>
|
</substitution>
|
||||||
</substitutions>
|
</substitutions>
|
||||||
|
|
||||||
<query>SELECT count() FROM {table}</query>
|
<query short="1">SELECT count() FROM {table}</query>
|
||||||
<query>SELECT count() FROM hits_10m_single WHERE AdvEngineID != 0</query>
|
<query short="1">SELECT count() FROM hits_10m_single WHERE AdvEngineID != 0</query>
|
||||||
<query>SELECT sum(AdvEngineID), count(), avg(ResolutionWidth) FROM {table}</query>
|
<query short="1">SELECT sum(AdvEngineID), count(), avg(ResolutionWidth) FROM {table}</query>
|
||||||
<query>SELECT sum(UserID) FROM {table}</query>
|
<query short="1">SELECT sum(UserID) FROM {table}</query>
|
||||||
<query>SELECT uniq(UserID) FROM {table} FORMAT Null</query>
|
<query>SELECT uniq(UserID) FROM {table} FORMAT Null</query>
|
||||||
<query>SELECT uniq(SearchPhrase) FROM {table} FORMAT Null</query>
|
<query>SELECT uniq(SearchPhrase) FROM {table} FORMAT Null</query>
|
||||||
<query>SELECT min(EventDate), max(EventDate) FROM {table}</query>
|
<query short="1">SELECT min(EventDate), max(EventDate) FROM {table}</query>
|
||||||
<query>SELECT AdvEngineID, count() FROM hits_10m_single WHERE AdvEngineID != 0 GROUP BY AdvEngineID ORDER BY count() DESC LIMIT 10</query>
|
<query short="1">SELECT AdvEngineID, count() FROM hits_100m_single WHERE AdvEngineID != 0 GROUP BY AdvEngineID ORDER BY count() DESC LIMIT 10</query>
|
||||||
<query>SELECT RegionID, uniq(UserID) AS u FROM {table} GROUP BY RegionID ORDER BY u DESC LIMIT 10</query>
|
<query>SELECT RegionID, uniq(UserID) AS u FROM {table} GROUP BY RegionID ORDER BY u DESC LIMIT 10</query>
|
||||||
<query>SELECT RegionID, sum(AdvEngineID), count() AS c, avg(ResolutionWidth), uniq(UserID) FROM {table} GROUP BY RegionID ORDER BY c DESC LIMIT 10</query>
|
<query>SELECT RegionID, sum(AdvEngineID), count() AS c, avg(ResolutionWidth), uniq(UserID) FROM {table} GROUP BY RegionID ORDER BY c DESC LIMIT 10</query>
|
||||||
<query>SELECT MobilePhoneModel, uniq(UserID) AS u FROM hits_100m_single WHERE MobilePhoneModel != '' GROUP BY MobilePhoneModel ORDER BY u DESC LIMIT 10</query>
|
<query>SELECT MobilePhoneModel, uniq(UserID) AS u FROM hits_100m_single WHERE MobilePhoneModel != '' GROUP BY MobilePhoneModel ORDER BY u DESC LIMIT 10</query>
|
||||||
@ -38,7 +38,7 @@
|
|||||||
<query>SELECT UserID, SearchPhrase, count() FROM {table} GROUP BY UserID, SearchPhrase ORDER BY count() DESC LIMIT 10</query>
|
<query>SELECT UserID, SearchPhrase, count() FROM {table} GROUP BY UserID, SearchPhrase ORDER BY count() DESC LIMIT 10</query>
|
||||||
<query>SELECT UserID, SearchPhrase, count() FROM {table} GROUP BY UserID, SearchPhrase LIMIT 10</query>
|
<query>SELECT UserID, SearchPhrase, count() FROM {table} GROUP BY UserID, SearchPhrase LIMIT 10</query>
|
||||||
<query>SELECT UserID, toMinute(EventTime) AS m, SearchPhrase, count() FROM {table} GROUP BY UserID, m, SearchPhrase ORDER BY count() DESC LIMIT 10</query>
|
<query>SELECT UserID, toMinute(EventTime) AS m, SearchPhrase, count() FROM {table} GROUP BY UserID, m, SearchPhrase ORDER BY count() DESC LIMIT 10</query>
|
||||||
<query>SELECT count() FROM hits_10m_single WHERE UserID = 12345678901234567890</query>
|
<query short="1">SELECT count() FROM hits_100m_single WHERE UserID = 12345678901234567890</query>
|
||||||
<query>SELECT count() FROM hits_100m_single WHERE URL LIKE '%metrika%'</query>
|
<query>SELECT count() FROM hits_100m_single WHERE URL LIKE '%metrika%'</query>
|
||||||
<query>SELECT SearchPhrase, any(URL), count() AS c FROM hits_100m_single WHERE URL LIKE '%metrika%' AND SearchPhrase != '' GROUP BY SearchPhrase ORDER BY c DESC LIMIT 10</query>
|
<query>SELECT SearchPhrase, any(URL), count() AS c FROM hits_100m_single WHERE URL LIKE '%metrika%' AND SearchPhrase != '' GROUP BY SearchPhrase ORDER BY c DESC LIMIT 10</query>
|
||||||
<query>SELECT SearchPhrase, any(URL), any(Title), count() AS c, uniq(UserID) FROM {table} WHERE Title LIKE '%Яндекс%' AND URL NOT LIKE '%.yandex.%' AND SearchPhrase != '' GROUP BY SearchPhrase ORDER BY c DESC LIMIT 10</query>
|
<query>SELECT SearchPhrase, any(URL), any(Title), count() AS c, uniq(UserID) FROM {table} WHERE Title LIKE '%Яндекс%' AND URL NOT LIKE '%.yandex.%' AND SearchPhrase != '' GROUP BY SearchPhrase ORDER BY c DESC LIMIT 10</query>
|
||||||
@ -59,8 +59,8 @@
|
|||||||
<query>SELECT Title, count() AS PageViews FROM {table} WHERE CounterID = 34 AND EventDate >= '2013-07-01' AND EventDate <= '2013-07-31' AND NOT DontCountHits AND NOT Refresh AND notEmpty(Title) GROUP BY Title ORDER BY PageViews DESC LIMIT 10</query>
|
<query>SELECT Title, count() AS PageViews FROM {table} WHERE CounterID = 34 AND EventDate >= '2013-07-01' AND EventDate <= '2013-07-31' AND NOT DontCountHits AND NOT Refresh AND notEmpty(Title) GROUP BY Title ORDER BY PageViews DESC LIMIT 10</query>
|
||||||
<query>SELECT URL, count() AS PageViews FROM {table} WHERE CounterID = 34 AND EventDate >= '2013-07-01' AND EventDate <= '2013-07-31' AND NOT Refresh AND IsLink AND NOT IsDownload GROUP BY URL ORDER BY PageViews DESC LIMIT 1000</query>
|
<query>SELECT URL, count() AS PageViews FROM {table} WHERE CounterID = 34 AND EventDate >= '2013-07-01' AND EventDate <= '2013-07-31' AND NOT Refresh AND IsLink AND NOT IsDownload GROUP BY URL ORDER BY PageViews DESC LIMIT 1000</query>
|
||||||
<query>SELECT TraficSourceID, SearchEngineID, AdvEngineID, ((SearchEngineID = 0 AND AdvEngineID = 0) ? Referer : '') AS Src, URL AS Dst, count() AS PageViews FROM {table} WHERE CounterID = 34 AND EventDate >= '2013-07-01' AND EventDate <= '2013-07-31' AND NOT Refresh GROUP BY TraficSourceID, SearchEngineID, AdvEngineID, Src, Dst ORDER BY PageViews DESC LIMIT 1000</query>
|
<query>SELECT TraficSourceID, SearchEngineID, AdvEngineID, ((SearchEngineID = 0 AND AdvEngineID = 0) ? Referer : '') AS Src, URL AS Dst, count() AS PageViews FROM {table} WHERE CounterID = 34 AND EventDate >= '2013-07-01' AND EventDate <= '2013-07-31' AND NOT Refresh GROUP BY TraficSourceID, SearchEngineID, AdvEngineID, Src, Dst ORDER BY PageViews DESC LIMIT 1000</query>
|
||||||
<query>SELECT URLHash, EventDate, count() AS PageViews FROM {table} WHERE CounterID = 34 AND EventDate >= '2013-07-01' AND EventDate <= '2013-07-31' AND NOT Refresh AND TraficSourceID IN (-1, 6) AND RefererHash = halfMD5('http://example.ru/') GROUP BY URLHash, EventDate ORDER BY PageViews DESC LIMIT 100</query>
|
<query short="1">SELECT URLHash, EventDate, count() AS PageViews FROM {table} WHERE CounterID = 34 AND EventDate >= '2013-07-01' AND EventDate <= '2013-07-31' AND NOT Refresh AND TraficSourceID IN (-1, 6) AND RefererHash = halfMD5('http://example.ru/') GROUP BY URLHash, EventDate ORDER BY PageViews DESC LIMIT 100</query>
|
||||||
<query>SELECT WindowClientWidth, WindowClientHeight, count() AS PageViews FROM hits_100m_single WHERE CounterID = 34 AND EventDate >= '2013-07-01' AND EventDate <= '2013-07-31' AND NOT Refresh AND NOT DontCountHits AND URLHash = halfMD5('http://example.ru/') GROUP BY WindowClientWidth, WindowClientHeight ORDER BY PageViews DESC LIMIT 10000 FORMAT Null</query>
|
<query short="1">SELECT WindowClientWidth, WindowClientHeight, count() AS PageViews FROM {table} WHERE CounterID = 34 AND EventDate >= '2013-07-01' AND EventDate <= '2013-07-31' AND NOT Refresh AND NOT DontCountHits AND URLHash = halfMD5('http://example.ru/') GROUP BY WindowClientWidth, WindowClientHeight ORDER BY PageViews DESC LIMIT 10000 FORMAT Null</query>
|
||||||
<query>SELECT toStartOfMinute(EventTime) AS Minute, count() AS PageViews FROM {table} WHERE CounterID = 34 AND EventDate >= '2013-07-01' AND EventDate <= '2013-07-02' AND NOT Refresh AND NOT DontCountHits GROUP BY Minute ORDER BY Minute FORMAT Null</query>
|
<query short="1">SELECT toStartOfMinute(EventTime) AS Minute, count() AS PageViews FROM {table} WHERE CounterID = 34 AND EventDate >= '2013-07-01' AND EventDate <= '2013-07-02' AND NOT Refresh AND NOT DontCountHits GROUP BY Minute ORDER BY Minute FORMAT Null</query>
|
||||||
|
|
||||||
</test>
|
</test>
|
||||||
|
Loading…
Reference in New Issue
Block a user