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/sqllogictests/suites/base/01_system/01_0002_system_query_log.test
+21Lines changed: 21 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -17,6 +17,17 @@ drop table if exists tbl_01_0002 all
17
17
statement ok
18
18
create table tbl_01_0002(a int)
19
19
20
+
statement ok
21
+
insert into tbl_01_0002 values (1)
22
+
23
+
statement error
24
+
insert into tbl_01_0002 values (?,?,?)
25
+
26
+
query TTT
27
+
select query_text, query_hash, query_parameterized_hash from system.query_log where query_text='INSERT INTO tbl_01_0002 VALUES (?,?,?)' limit 1;
28
+
----
29
+
INSERT INTO tbl_01_0002 VALUES (?,?,?) 56531330ce650af109dc38ae2fe2a6a3 56531330ce650af109dc38ae2fe2a6a3
30
+
20
31
statement ok
21
32
insert into tbl_01_0002 values(1)
22
33
@@ -56,6 +67,16 @@ select count(query_text)>1 from system.query_log where query_text like 'SELECT *
56
67
----
57
68
1
58
69
70
+
query TTT
71
+
select query_text, query_hash, query_parameterized_hash from system.query_log where query_hash='932d5555e275c38b46574f4adfa5e01b' limit 1;
72
+
----
73
+
INSERT INTO tbl_01_0002 VALUES (1) 932d5555e275c38b46574f4adfa5e01b 932d5555e275c38b46574f4adfa5e01b
74
+
75
+
query B
76
+
select count(query_text)>1 from system.query_log where query_text like 'INSERT INTO tbl_01_0002%' group by query_parameterized_hash having query_parameterized_hash='932d5555e275c38b46574f4adfa5e01b';
77
+
----
78
+
1
79
+
59
80
query TTT
60
81
select query_text, query_hash, query_parameterized_hash from system.query_log where query_text like 'SELECT * FROM tbl_01_0002 WHERE a = 200' and log_type_name='Finish' limit 1;
0 commit comments