Skip to content

Commit a6e0f2d

Browse files
author
James Cor
committed
rebase and field align
1 parent 04babc2 commit a6e0f2d

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

sql/analyzer/rules.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ var OnceBeforeDefault = []Rule{
5252
{Id: simplifyFiltersId, Apply: simplifyFilters}, //TODO inline?
5353
{Id: pushNotFiltersId, Apply: pushNotFilters}, //TODO inline?
5454
{Id: hoistOutOfScopeFiltersId, Apply: hoistOutOfScopeFilters},
55-
{validateGroupById, validateGroupBy},
55+
{Id: validateGroupById, Apply: validateGroupBy},
5656
}
5757

5858
// AlwaysBeforeDefault contains the rules to be applied just once before the

sql/plan/project.go

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,11 @@ import (
2626
// Project is a projection of certain expression from the children node.
2727
type Project struct {
2828
UnaryNode
29-
deps sql.ColSet
30-
sch sql.Schema
31-
29+
// AliasDeps maps string representations of projected GetField expressions to whether it is projected alias
30+
// dependency
31+
AliasDeps map[string]bool
32+
deps sql.ColSet
33+
sch sql.Schema
3234
// Projections are the expressions to be projected on the row returned by the child node
3335
Projections []sql.Expression
3436
// CanDefer is true when the projection evaluation can be deferred to row spooling, which allows us to avoid a
@@ -37,9 +39,6 @@ type Project struct {
3739
// IncludesNestedIters is true when the projection includes nested iterators because of expressions that return
3840
// a RowIter.
3941
IncludesNestedIters bool
40-
// AliasDeps maps string representations of projected GetField expressions to whether it is projected alias
41-
// dependency
42-
AliasDeps map[string]bool
4342
}
4443

4544
var _ sql.Expressioner = (*Project)(nil)

0 commit comments

Comments
 (0)