SUB.001, LIT.001 and LIT.002 are sensitive to program state

Bug #929046 reported by Baron Schwartz
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Percona Toolkit moved to https://jira.percona.com/projects/PT
Won't Fix
Medium
Brian Fraser

Bug Description

This query:

select * from t where id in (select id from t where col = 2010-20-12)

Only triggers these rules:

COL.001 LIT.002

It should also trigger SUB.001.

Related branches

Revision history for this message
Baron Schwartz (baron-xaprb) wrote :

I had to try several combinations to get all rules to trigger. This works:

select * from t where col > 2010-12-02 and id in (select id from t)

But this doesn't:

select * from t where id in (select id from t) and col > 2010-12-02

tags: added: query-rule
Brian Fraser (fraserbn)
summary: - pt-query-advisor only finds 2 out of 3 problems
+ SUB.001, LIT.001 and LIT.002 are sensitive to program state
Brian Fraser (fraserbn)
Changed in percona-toolkit:
assignee: nobody → Brian Fraser (fraserbn)
status: Confirmed → In Progress
milestone: none → 2.1.8
Changed in percona-toolkit:
milestone: 2.1.8 → none
Revision history for this message
Daniel Nichter (daniel-nichter) wrote :

We have decided to remove pt-query-advisor in 2.2. This issue has moved to https://github.com/percona/query-advisor/issues/22

Changed in percona-toolkit:
status: In Progress → Won't Fix
Revision history for this message
Shahriyar Rzayev (rzayev-sehriyar) wrote :

Percona now uses JIRA for bug reports so this bug report is migrated to: https://jira.percona.com/browse/PT-467

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.