exec

package
v1.1.0-beta.0...-aa19d3f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 18, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

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

func ParseAutoAnalysisWindow(start, end string) (time.Time, time.Time, error)

ParseAutoAnalysisWindow parses the time window for auto analysis. It parses the times in UTC location.

func ParseAutoAnalyzeRatio

func ParseAutoAnalyzeRatio(ratio string) float64

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL