Documentation ¶
Index ¶
Constants ¶
View Source
const ( // AlisaTaskTypePAI is PAI task in the Alisa task enumeration AlisaTaskTypePAI = iota // AlisaTaskTypePyODPS is PyODPS task in the Alisa task enumeration AlisaTaskTypePyODPS )
Variables ¶
This section is empty.
Functions ¶
func Run ¶
func Run(it Executor, stmt ir.SQLFlowStmt) error
Run interprets the SQLFlow IR. TODO(yancey1989): this is a temporary way to decouple executor from the ir package, as the discussion of https://github.com/sql-machine-learning/sqlflow/issues/2494, SQLFlow would generate target code instead of interpret an IR.
Types ¶
type Executor ¶
type Executor interface { Setup(*pipe.Writer, *database.DB, string, string, *pb.Session) ExecuteQuery(*ir.NormalStmt) error ExecuteTrain(*ir.TrainStmt) error ExecutePredict(*ir.PredictStmt) error ExecuteExplain(*ir.ExplainStmt) error ExecuteEvaluate(*ir.EvaluateStmt) error ExecuteShowTrain(*ir.ShowTrainStmt) error ExecuteOptimize(*ir.OptimizeStmt) error ExecuteRun(*ir.RunStmt) error GetTrainStmtFromModel() bool }
Executor call code geneartor to generate submitter program and execute it.
Click to show internal directories.
Click to hide internal directories.