github.com/dolthub/go-mysql-server@v0.18.0/sql/analyzer/rule_ids.go (about)

     1  package analyzer
     2  
     3  //go:generate stringer -type=RuleId -linecomment
     4  
     5  type RuleId int
     6  
     7  const (
     8  	// once before
     9  	applyDefaultSelectLimitId      RuleId = iota // applyDefaultSelectLimit
    10  	validateOffsetAndLimitId                     // validateOffsetAndLimit
    11  	validateStarExpressionsId                    // validateStarExpressions
    12  	validateCreateTableId                        // validateCreateTable
    13  	validateAlterTableId                         // validateAlterTable
    14  	validateExprSemId                            // validateExprSem
    15  	resolveVariablesId                           // resolveVariables
    16  	resolveNamedWindowsId                        // resolveNamedWindows
    17  	resolveSetVariablesId                        // resolveSetVariables
    18  	resolveViewsId                               // resolveViews
    19  	liftCtesId                                   // liftCtes
    20  	resolveCtesId                                // resolveCtes
    21  	liftRecursiveCtesId                          // liftRecursiveCtes
    22  	resolveDatabasesId                           // resolveDatabases
    23  	resolveTablesId                              // resolveTables
    24  	loadStoredProceduresId                       // loadStoredProcedures
    25  	validateDropTablesId                         // validateDropTables
    26  	pruneDropTablesId                            // pruneDropTables
    27  	setTargetSchemasId                           // setTargetSchemas
    28  	resolveCreateLikeId                          // resolveCreateLike
    29  	parseColumnDefaultsId                        // parseColumnDefaults
    30  	resolveDropConstraintId                      // resolveDropConstraint
    31  	validateDropConstraintId                     // validateDropConstraint
    32  	loadCheckConstraintsId                       // loadCheckConstraints
    33  	assignCatalogId                              // assignCatalog
    34  	resolveAnalyzeTablesId                       // resolveAnalyzeTables
    35  	resolveCreateSelectId                        // resolveCreateSelect
    36  	resolveSubqueriesId                          // resolveSubqueries
    37  	setViewTargetSchemaId                        // setViewTargetSchema
    38  	resolveUnionsId                              // resolveUnions
    39  	resolveDescribeQueryId                       // resolveDescribeQuery
    40  	checkUniqueTableNamesId                      // checkUniqueTableNames
    41  	resolveTableFunctionsId                      // resolveTableFunctions
    42  	resolveDeclarationsId                        // resolveDeclarations
    43  	resolveColumnDefaultsId                      // resolveColumnDefaults
    44  	validateColumnDefaultsId                     // validateColumnDefaults
    45  	validateCreateTriggerId                      // validateCreateTrigger
    46  	validateCreateProcedureId                    // validateCreateProcedure
    47  	resolveCreateProcedureId                     // resolveCreateProcedure
    48  	loadInfoSchemaId                             // loadInfoSchema
    49  	validateReadOnlyDatabaseId                   // validateReadOnlyDatabase
    50  	validateReadOnlyTransactionId                // validateReadOnlyTransaction
    51  	validateDatabaseSetId                        // validateDatabaseSet
    52  	validatePrivilegesId                         // validatePrivileges
    53  	reresolveTablesId                            // reresolveTables
    54  	setInsertColumnsId                           // setInsertColumns
    55  	validateJoinComplexityId                     // validateJoinComplexity
    56  	applyBinlogReplicaControllerId               // applyBinlogReplicaController
    57  	applyEventSchedulerId                        // applyEventScheduler
    58  
    59  	// default
    60  	resolveUsingJoinsId            // resolveUsingJoins
    61  	resolveOrderbyLiteralsId       // resolveOrderbyLiterals
    62  	resolveFunctionsId             // resolveFunctions
    63  	flattenTableAliasesId          // flattenTableAliases
    64  	pushdownSortId                 // pushdownSort
    65  	pushdownGroupbyAliasesId       // pushdownGroupbyAliases
    66  	pushdownSubqueryAliasFiltersId // pushdownSubqueryAliasFilters
    67  	qualifyColumnsId               // qualifyColumns
    68  	resolveColumnsId               // resolveColumns
    69  	validateCheckConstraintId      // validateCheckConstraint
    70  	resolveBarewordSetVariablesId  // resolveBarewordSetVariables
    71  	replaceCountStarId             // replaceCountStar
    72  	expandStarsId                  // expandStars
    73  	transposeRightJoinsId          // transposeRightJoins
    74  	resolveHavingId                // resolveHaving
    75  	mergeUnionSchemasId            // mergeUnionSchemas
    76  	flattenAggregationExprsId      // flattenAggregationExprs
    77  	reorderProjectionId            // reorderProjection
    78  	resolveSubqueryExprsId         // resolveSubqueryExprs
    79  	replaceCrossJoinsId            // replaceCrossJoins
    80  	moveJoinCondsToFilterId        // moveJoinCondsToFilter
    81  	moveFiltersToJoinCondId        // moveFiltersToJoinCond
    82  	simplifyFiltersId              // simplifyFilters
    83  	pushNotFiltersId               // pushNotFilters
    84  	optimizeDistinctId             // optimizeDistinct
    85  
    86  	// after default
    87  	hoistOutOfScopeFiltersId     // hoistOutOfScopeFilters
    88  	unnestInSubqueriesId         // unnestInSubqueries
    89  	unnestExistsSubqueriesId     // unnestExistsSubqueries
    90  	finalizeSubqueriesId         // finalizeSubqueries
    91  	finalizeUnionsId             // finalizeUnions
    92  	loadTriggersId               // loadTriggers
    93  	loadEventsId                 // loadEvents
    94  	processTruncateId            // processTruncate
    95  	resolveAlterColumnId         // resolveAlterColumn
    96  	resolveGeneratorsId          // resolveGenerators
    97  	removeUnnecessaryConvertsId  // removeUnnecessaryConverts
    98  	stripTableNameInDefaultsId   // stripTableNamesFromColumnDefaults
    99  	foldEmptyJoinsId             // foldEmptyJoins
   100  	optimizeJoinsId              // optimizeJoins
   101  	generateIndexScansId         // generateIndexScans
   102  	matchAgainstId               // matchAgainst
   103  	pushFiltersId                // pushFilters
   104  	applyIndexesFromOuterScopeId // applyIndexesFromOuterScope
   105  	pruneTablesId                // pruneTables
   106  	fixupAuxiliaryExprsId        // fixupAuxiliaryExprs
   107  	assignExecIndexesId          // assignExecIndexes
   108  	inlineSubqueryAliasRefsId    // inlineSubqueryAliasRefs
   109  	eraseProjectionId            // eraseProjection
   110  	flattenDistinctId            //flattenDistinct
   111  	replaceAggId                 // replaceAgg
   112  	replaceIdxSortId             // replaceIdxSort
   113  	insertTopNId                 // insertTopN
   114  	applyHashInId                // applyHashIn
   115  	resolveInsertRowsId          // resolveInsertRows
   116  	resolvePreparedInsertId      // resolvePreparedInsert
   117  	applyTriggersId              // applyTriggers
   118  	applyProceduresId            // applyProcedures
   119  	assignRoutinesId             // assignRoutines
   120  	modifyUpdateExprsForJoinId   // modifyUpdateExprsForJoin
   121  	applyRowUpdateAccumulatorsId // applyRowUpdateAccumulators
   122  	wrapWithRollbackId           // rollback triggers
   123  	applyFKsId                   // applyFKs
   124  
   125  	// validate
   126  	validateResolvedId          // validateResolved
   127  	validateOrderById           // validateOrderBy
   128  	validateGroupById           // validateGroupBy
   129  	validateSchemaSourceId      // validateSchemaSource
   130  	validateIndexCreationId     // validateIndexCreation
   131  	validateOperandsId          // validateOperands
   132  	validateCaseResultTypesId   // validateCaseResultTypes
   133  	validateIntervalUsageId     // validateIntervalUsage
   134  	validateExplodeUsageId      // validateExplodeUsage
   135  	validateSubqueryColumnsId   // validateSubqueryColumns
   136  	validateUnionSchemasMatchId // validateUnionSchemasMatch
   137  	validateAggregationsId      // validateAggregations
   138  	validateDeleteFromId        // validateDeleteFrom
   139  
   140  	// after all
   141  	cacheSubqueryResultsId           // cacheSubqueryResults
   142  	cacheSubqueryAliasesInJoinsId    // cacheSubqueryAliasesInJoins
   143  	backtickDefaulColumnValueNamesId // backtickDefaulColumnValueNames
   144  	AutocommitId                     // addAutocommitNode
   145  	TrackProcessId                   // trackProcess
   146  	parallelizeId                    // parallelize
   147  	clearWarningsId                  // clearWarnings
   148  )