Skip to content

Commit 2d4394d

Browse files
committed
vdiff: do not sort by table name in summary, it is not necessary
1 parent a49fba2 commit 2d4394d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

go/vt/vttablet/tabletmanager/vdiff/schema.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ const (
4040
vd.started_at as started_at, vdt.rows_compared as rows_compared, vd.completed_at as completed_at,
4141
IF(vdt.mismatch = 1, 1, 0) as has_mismatch, vdt.report as report
4242
from _vt.vdiff as vd left join _vt.vdiff_table as vdt on (vd.id = vdt.vdiff_id)
43-
where vd.id = %a order by table_name`
43+
where vd.id = %a`
4444
// sqlUpdateVDiffState has a penultimate placeholder for any additional columns you want to update, e.g. `, foo = 1`.
4545
// It also truncates the error if needed to ensure that we can save the state when the error text is very long.
4646
sqlUpdateVDiffState = "update _vt.vdiff set state = %s, last_error = left(%s, 1024) %s where id = %d"

0 commit comments

Comments
 (0)