forked from dolthub/go-mysql-server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
rule_ids.go
135 lines (128 loc) · 6.88 KB
/
rule_ids.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
package analyzer
//go:generate stringer -type=RuleId -linecomment
type RuleId int
const (
// once before
applyDefaultSelectLimitId RuleId = iota // applyDefaultSelectLimit
validateOffsetAndLimitId //validateOffsetAndLimit
validateCreateTableId // validateCreateTable
validateExprSemId // validateExprSem
resolveVariablesId // resolveVariables
resolveNamedWindowsId // resolveNamedWindows
resolveSetVariablesId // resolveSetVariables
resolveViewsId // resolveViews
liftCtesId // liftCtes
resolveCtesId // resolveCtes
liftRecursiveCtesId // liftRecursiveCtes
resolveDatabasesId // resolveDatabases
resolveTablesId // resolveTables
loadStoredProceduresId // loadStoredProcedures
validateDropTablesId // validateDropTables
setTargetSchemasId // setTargetSchemas
resolveCreateLikeId // resolveCreateLike
parseColumnDefaultsId // parseColumnDefaults
resolveDropConstraintId // resolveDropConstraint
validateDropConstraintId // validateDropConstraint
loadCheckConstraintsId // loadCheckConstraints
assignCatalogId // assignCatalog
resolveAnalyzeTablesId //resolveAnalyzeTables
resolveCreateSelectId // resolveCreateSelect
resolveSubqueriesId // resolveSubqueries
setViewTargetSchemaId // setViewTargetSchema
resolveUnionsId // resolveUnions
resolveDescribeQueryId // resolveDescribeQuery
checkUniqueTableNamesId // checkUniqueTableNames
resolveTableFunctionsId // resolveTableFunctions
resolveDeclarationsId // resolveDeclarations
resolveColumnDefaultsId // resolveColumnDefaults
validateColumnDefaultsId // validateColumnDefaults
validateCreateTriggerId // validateCreateTrigger
validateCreateProcedureId // validateCreateProcedure
loadInfoSchemaId // loadInfoSchema
validateReadOnlyDatabaseId // validateReadOnlyDatabase
validateReadOnlyTransactionId // validateReadOnlyTransaction
validateDatabaseSetId // validateDatabaseSet
validatePrivilegesId // validatePrivileges
reresolveTablesId // reresolveTables
setInsertColumnsId // setInsertColumns
validateJoinComplexityId // validateJoinComplexity
applyBinlogReplicaControllerId // applyBinlogReplicaController
// default
resolveNaturalJoinsId // resolveNaturalJoins
resolveOrderbyLiteralsId // resolveOrderbyLiterals
resolveFunctionsId // resolveFunctions
flattenTableAliasesId // flattenTableAliases
pushdownSortId // pushdownSort
pushdownGroupbyAliasesId // pushdownGroupbyAliases
pushdownSubqueryAliasFiltersId // pushdownSubqueryAliasFilters
qualifyColumnsId // qualifyColumns
resolveColumnsId // resolveColumns
validateCheckConstraintId // validateCheckConstraint
resolveBarewordSetVariablesId // resolveBarewordSetVariables
replaceCountStarId // replaceCountStar
expandStarsId // expandStars
transposeRightJoinsId // transposeRightJoins
resolveHavingId // resolveHaving
mergeUnionSchemasId // mergeUnionSchemas
flattenAggregationExprsId // flattenAggregationExprs
reorderProjectionId // reorderProjection
resolveSubqueryExprsId // resolveSubqueryExprs
replaceCrossJoinsId // replaceCrossJoins
moveJoinCondsToFilterId // moveJoinCondsToFilter
evalFilterId // evalFilter
optimizeDistinctId // optimizeDistinct
// after default
hoistOutOfScopeFiltersId // hoistOutOfScopeFilters
transformJoinApplyId // transformJoinApply
hoistSelectExistsId // hoistSelectExists
finalizeSubqueriesId // finalizeSubqueries
finalizeUnionsId // finalizeUnions
loadTriggersId // loadTriggers
processTruncateId // processTruncate
resolveAlterColumnId // resolveAlterColumn
resolveGeneratorsId // resolveGenerators
removeUnnecessaryConvertsId // removeUnnecessaryConverts
pruneColumnsId // pruneColumns
stripTableNameInDefaultsId // stripTableNamesFromColumnDefaults
optimizeJoinsId // optimizeJoins
concatFiltersId // concatFilters
pushdownFiltersId // pushdownFilters
subqueryIndexesId // subqueryIndexes
pruneTablesId // pruneTables
setJoinScopeLenId // setJoinScopeLen
eraseProjectionId // eraseProjection
replaceSortPkId // replaceSortPk
insertTopNId // insertTopN
applyHashInId // applyHashIn
resolveInsertRowsId // resolveInsertRows
resolvePreparedInsertId // resolvePreparedInsert
applyTriggersId // applyTriggers
applyProceduresId // applyProcedures
assignRoutinesId // assignRoutines
modifyUpdateExprsForJoinId // modifyUpdateExprsForJoin
applyRowUpdateAccumulatorsId // applyRowUpdateAccumulators
wrapWithRollbackId // rollback triggers
applyFKsId // applyFKs
// validate
validateResolvedId // validateResolved
validateOrderById // validateOrderBy
validateGroupById // validateGroupBy
validateSchemaSourceId // validateSchemaSource
validateIndexCreationId // validateIndexCreation
validateOperandsId // validateOperands
validateCaseResultTypesId // validateCaseResultTypes
validateIntervalUsageId // validateIntervalUsage
validateExplodeUsageId // validateExplodeUsage
validateSubqueryColumnsId // validateSubqueryColumns
validateUnionSchemasMatchId // validateUnionSchemasMatch
validateAggregationsId // validateAggregations
validateDeleteFromId // validateDeleteFrom
// after all
normalizeSelectSingleRelId // normalizeSelectSingleRel
cacheSubqueryResultsId // cacheSubqueryResults
cacheSubqueryAliasesInJoinsId // cacheSubqueryAliasesInJoins
AutocommitId // addAutocommitNode
TrackProcessId // trackProcess
parallelizeId // parallelize
clearWarningsId // clearWarnings
)