Skip to content

Commit 0d773f7

Browse files
author
Shlomi Noach
authored
Merge pull request #701 from github/gh-ost/patch-1
inspect: remove redundant join conditions
2 parents e48844d + 93b88e2 commit 0d773f7

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

go/logic/inspect.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -622,8 +622,6 @@ func (this *Inspector) getCandidateUniqueKeys(tableName string) (uniqueKeys [](*
622622
GROUP BY TABLE_SCHEMA, TABLE_NAME, INDEX_NAME
623623
) AS UNIQUES
624624
ON (
625-
COLUMNS.TABLE_SCHEMA = UNIQUES.TABLE_SCHEMA AND
626-
COLUMNS.TABLE_NAME = UNIQUES.TABLE_NAME AND
627625
COLUMNS.COLUMN_NAME = UNIQUES.FIRST_COLUMN_NAME
628626
)
629627
WHERE

0 commit comments

Comments
 (0)