Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion internal/rule/squashjoins.go
Original file line number Diff line number Diff line change
Expand Up @@ -1185,7 +1185,7 @@ func removeRedundantCompoundFilters(
// isRedundantFilter tells whether the given filter is redundant for joining
// t1 with t2. t1 MUST be higher in the table hierarchy than t2.
func isRedundantFilter(f sql.Expression, t1, t2 string) bool {
switch true {
switch {
case t1 == gitbase.RepositoriesTableName && t2 == gitbase.RemotesTableName:
return isEq(
isCol(gitbase.RepositoriesTableName, "repository_id"),
Expand Down