Skip to content

Commit 2de237f

Browse files
committed
move hoistOutOfScopeFilters to default rules
1 parent e0601da commit 2de237f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sql/analyzer/rules.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ var OnceBeforeDefault = []Rule{
5151
{Id: validateDeleteFromId, Apply: validateDeleteFrom},
5252
{Id: simplifyFiltersId, Apply: simplifyFilters}, //TODO inline?
5353
{Id: pushNotFiltersId, Apply: pushNotFilters}, //TODO inline?
54-
{Id: hoistOutOfScopeFiltersId, Apply: hoistOutOfScopeFilters},
5554
{Id: validateGroupById, Apply: validateGroupBy},
5655
}
5756

@@ -63,6 +62,7 @@ var AlwaysBeforeDefault []Rule
6362

6463
// DefaultRules to apply when analyzing nodes.
6564
var DefaultRules = []Rule{
65+
{Id: hoistOutOfScopeFiltersId, Apply: hoistOutOfScopeFilters},
6666
{Id: validateStarExpressionsId, Apply: validateStarExpressions}, //TODO
6767
{Id: replaceSubqueriesId, Apply: replaceSubqueries},
6868
{Id: pushdownSubqueryAliasFiltersId, Apply: pushdownSubqueryAliasFilters},

0 commit comments

Comments
 (0)