pt-online-schema-change add useless ORDER BY

Bug #898695 reported by Laurent Bigonville
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Percona Toolkit moved to https://jira.percona.com/projects/PT
Fix Released
Medium
Daniel Nichter
2.0
Won't Fix
Undecided
Unassigned
2.1
Fix Released
Medium
Daniel Nichter

Bug Description

Hi,

pt-online-schema-change is adding useless ORDER BY statement

"SELECT MIN(foo), MAX(foo) FROM `db`.`table` ORDER BY `foo`"

and also

"SELECT MAX(LENGTH(foo)) FROM table ORDER BY `foo`"

Maybe other queries are also impacted

Related branches

tags: added: pt-online-schema-change
tags: added: wrong-sql
Changed in percona-toolkit:
status: New → Confirmed
Revision history for this message
Daniel Nichter (daniel-nichter) wrote :

We need to update pt-online-schema-change to use NibbleIterator like pt-table-chekcsum 2.0. Currently, the tool uses the older, more complex table chunking code.

Changed in percona-toolkit:
importance: Undecided → Medium
assignee: nobody → Daniel Nichter (daniel-nichter)
milestone: none → 2.1.1
Revision history for this message
Baron Schwartz (baron-xaprb) wrote :
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-442

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.