Example #1
0
func BuildPrepared(stmt algebra.Statement, datastore, systemstore datastore.Datastore,
	namespace string, subquery bool) (*plan.Prepared, error) {
	operator, err := Build(stmt, datastore, systemstore, namespace, subquery)
	if err != nil {
		return nil, err
	}

	signature := stmt.Signature()
	return plan.NewPrepared(operator, signature), nil
}