You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tests/queries/0_stateless/03801_autopr_input_bytes_estimation_query_with_subqueries.sql
+5-5Lines changed: 5 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -14,12 +14,12 @@ SET use_query_condition_cache=0;
14
14
createtablet(a UInt64) engine=MergeTree order by a;
15
15
insert into t selectnumberfrom numbers_mt(1e6);
16
16
17
-
SELECT a % 10000FROM t FORMAT Null SETTINGS log_comment='query_0';
17
+
SELECT a % 10000FROM t FORMAT Null SETTINGS log_comment='03801_autopr_input_bytes_estimation_query_with_subqueries_query_0';
18
18
19
19
-- `CounterID` is part of the PK
20
-
SELECT EventTime, CounterID, URL, Referer FROMtest.hitsWHERE CounterID IN (SELECT a % 10000FROM t) FORMAT Null SETTINGS log_comment='query_1';
20
+
SELECT EventTime, CounterID, URL, Referer FROMtest.hitsWHERE CounterID IN (SELECT a % 10000FROM t) FORMAT Null SETTINGS log_comment='03801_autopr_input_bytes_estimation_query_with_subqueries_query_1';
21
21
-- `WatchID` is not
22
-
SELECT EventTime, CounterID, URL, Referer FROMtest.hitsWHERE WatchID IN (SELECT a % 10000FROM t) FORMAT Null SETTINGS log_comment='query_1';
22
+
SELECT EventTime, CounterID, URL, Referer FROMtest.hitsWHERE WatchID IN (SELECT a % 10000FROM t) FORMAT Null SETTINGS log_comment='03801_autopr_input_bytes_estimation_query_with_subqueries_query_2';
23
23
24
24
SET enable_parallel_replicas=0, automatic_parallel_replicas_mode=0;
25
25
@@ -33,7 +33,7 @@ WITH (
33
33
SELECT
34
34
ProfileEvents['ReadCompressedBytes']
35
35
FROMsystem.query_log
36
-
WHERE (event_date >= yesterday()) AND (event_time >= NOW() - INTERVAL '15 MINUTES') AND (current_database = currentDatabase()) AND (log_comment LIKE'query_0') AND (type ='QueryFinish')
36
+
WHERE (event_date >= yesterday()) AND (event_time >= NOW() - INTERVAL '15 MINUTES') AND (current_database = currentDatabase()) AND (log_comment ='03801_autopr_input_bytes_estimation_query_with_subqueries_query_0') AND (type ='QueryFinish')
WHERE (event_date >= yesterday()) AND (event_time >= NOW() - INTERVAL '15 MINUTES') AND (current_database = currentDatabase()) AND (log_commentLIKE'query_1') AND (type ='QueryFinish')
46
+
WHERE (event_date >= yesterday()) AND (event_time >= NOW() - INTERVAL '15 MINUTES') AND (current_database = currentDatabase()) AND (match(log_comment, '03801_autopr_input_bytes_estimation_query_with_subqueries_query_[12]')) AND (type ='QueryFinish')
47
47
ORDER BY event_time_microseconds
48
48
)
49
49
WHERE greatest(compressed_bytes, statistics_input_bytes) / least(compressed_bytes, statistics_input_bytes) >2;
0 commit comments