Documentation ¶
Index ¶
- func AutoAnalyze(sctx sessionctx.Context, statsHandle statstypes.StatsHandle, ...) bool
- func GetAutoAnalyzeParameters(sctx sessionctx.Context) map[string]string
- func ParseAutoAnalysisWindow(start, end string) (time.Time, time.Time, error)
- func ParseAutoAnalyzeRatio(ratio string) float64
- func RunAnalyzeStmt(sctx sessionctx.Context, statsHandle statstypes.StatsHandle, ...) ([]chunk.Row, []*resolve.ResultField, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AutoAnalyze ¶
func AutoAnalyze( sctx sessionctx.Context, statsHandle statstypes.StatsHandle, sysProcTracker sysproctrack.Tracker, statsVer int, sql string, params ...any, ) bool
AutoAnalyze executes the auto analyze task.
func GetAutoAnalyzeParameters ¶
func GetAutoAnalyzeParameters(sctx sessionctx.Context) map[string]string
GetAutoAnalyzeParameters gets the auto analyze parameters from mysql.global_variables.
func ParseAutoAnalysisWindow ¶
ParseAutoAnalysisWindow parses the time window for auto analysis. It parses the times in UTC location.
func ParseAutoAnalyzeRatio ¶
ParseAutoAnalyzeRatio parses the auto analyze ratio from the string.
func RunAnalyzeStmt ¶
func RunAnalyzeStmt( sctx sessionctx.Context, statsHandle statstypes.StatsHandle, sysProcTracker sysproctrack.Tracker, statsVer int, sql string, params ...any, ) ([]chunk.Row, []*resolve.ResultField, error)
RunAnalyzeStmt executes the analyze statement.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.