mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-28 08:51:44 +00:00
Add forked Maatkit tools in bin/ and their tests in t/.
This commit is contained in:
35
t/pt-query-advisor/samples/group-by-none-001.txt
Normal file
35
t/pt-query-advisor/samples/group-by-none-001.txt
Normal file
@@ -0,0 +1,35 @@
|
||||
|
||||
# Query ID 0xADCE32553F5D5859 at byte 0
|
||||
# WARN CLA.001 SELECT without WHERE.
|
||||
# NOTE COL.001 SELECT *.
|
||||
select * from tbl
|
||||
|
||||
# Query ID 0x63C84ABE631F3CD0 at byte 191
|
||||
# Also: CLA.001 COL.001
|
||||
select * from tbl order by a
|
||||
|
||||
# Query ID 0xB79802214165F670 at byte 297
|
||||
# NOTE COL.002 Blind INSERT.
|
||||
insert into tbl values (null, 1, 'foo')
|
||||
|
||||
# Query ID 0xEEA4D551871CCDC4 at byte 414
|
||||
# Also: COL.002
|
||||
replace into tbl2 values (1, '2', 'bar')
|
||||
|
||||
# Query ID 0x52BAD5F0BF97EA19 at byte 532
|
||||
# WARN RES.001 Non-deterministic GROUP BY.
|
||||
select a, b, c from x where id<1000 group by a, b
|
||||
|
||||
# Query ID 0x01BF72F436E936F1 at byte 659
|
||||
# Also: RES.001
|
||||
select x, y, z from foo where id>1000 group by x, y
|
||||
|
||||
# Profile
|
||||
# Query ID NOTE WARN CRIT Item
|
||||
# ================== ==== ==== ==== ==========================================
|
||||
# 0x01BF72F436E936F1 0 1 0 select x, y, z from foo where id>? group by x, y
|
||||
# 0x52BAD5F0BF97EA19 0 1 0 select a, b, c from x where id<? group by a, b
|
||||
# 0x63C84ABE631F3CD0 1 1 0 select * from tbl order by a
|
||||
# 0xADCE32553F5D5859 1 1 0 select * from tbl
|
||||
# 0xB79802214165F670 1 0 0 insert into tbl values(?+)
|
||||
# 0xEEA4D551871CCDC4 1 0 0 replace into tbl? values(?+)
|
Reference in New Issue
Block a user