mirror of
https://gitee.com/milvus-io/milvus.git
synced 2026-01-07 19:31:51 +08:00
1. Add function storage in rootcoord 2. Parse udf expression 3. Execute wasm in core Signed-off-by: Ziyu Wang <15871035978@163.com> Signed-off-by: Ziyu Wang <15871035978@163.com>
26 lines
545 B
Go
26 lines
545 B
Go
package rootcoord
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/milvus-io/milvus/api/commonpb"
|
|
|
|
"github.com/milvus-io/milvus/api/milvuspb"
|
|
)
|
|
|
|
type dropFunctionTask struct {
|
|
baseTask
|
|
Req *milvuspb.DropFunctionRequest
|
|
}
|
|
|
|
func (t *dropFunctionTask) Prepare(ctx context.Context) error {
|
|
if err := CheckMsgType(t.Req.GetBase().GetMsgType(), commonpb.MsgType_DropFunction); err != nil {
|
|
return err
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (t *dropFunctionTask) Execute(ctx context.Context) error {
|
|
return t.core.meta.DropFunction(ctx, t.Req.GetFunctionName(), t.GetTs())
|
|
}
|