// ParseKatibSQL generates Couler Katib step
ParseKatibSQL generates Couler Katib step
// ParseKatibSQL generates Couler Katib step
func ParseKatibSQL(t *ir.TrainStmt) (*sqlStatement, error) {
	ss := &sqlStatement{}
	ss.IsKatibTrain = true
	ss.OriginalSQL = t.OriginalSQL
	params, err := parseAttribute(t.Attributes)
	if err != nil {
		return nil, err
	}
	model, booster, err := resolveModelType(t.Estimator)
	if err != nil {
		return nil, err
	}
	params["booster"] = booster
	ss.Model = model
	hps, err := json.Marshal(params)
	if err != nil {
		return nil, err
	}
	ss.Parameters = string(hps)
	return ss, nil
}
func ParseKatibSQL ( t * ir . TrainStmt ) ( * sqlStatement , error ) { ss := & sqlStatement { } ss . IsKatibTrain = true ss . OriginalSQL = t . OriginalSQL params , err := parseAttribute ( t . Attributes ) if err != nil { return nil , err } model , booster , err := resolveModelType ( t . Estimator ) if err != nil { return nil , err } params [ " " ] = booster ss . Model = model hps , err := json . Marshal ( params ) if err != nil { return nil , err } ss . Parameters = string ( hps ) return ss , nil }
ParseKatibSQL generates Couler Katib step
ParseKatibSQL generates Couler Katib step