Skip to content

Commit 769ecee

Browse files
committed
[ga-format-pr] Run ./format_repo.sh to fix formatting
1 parent a49d4f0 commit 769ecee

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

sql/planbuilder/factory.go

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -178,12 +178,14 @@ func (f *factory) buildTableAlias(name string, child sql.Node) (plan.TableIdNode
178178
}
179179
}
180180

181-
182181
// buildDistinct will wrap the child node in a distinct node depending on the Sort nodes and Projections there.
183182
// if the sort fields are a subset of the projection fields
184-
// sort(project(table)) -> sort(distinct(project(table)))
183+
//
184+
// sort(project(table)) -> sort(distinct(project(table)))
185+
//
185186
// else
186-
// sort(project(table)) -> distinct(sort(project(table)))
187+
//
188+
// sort(project(table)) -> distinct(sort(project(table)))
187189
func (f *factory) buildDistinct(child sql.Node) sql.Node {
188190
if proj, isProj := child.(*plan.Project); isProj {
189191
// TODO: if projection columns are just primary key, distinct is no-op

0 commit comments

Comments
 (0)