mirror of
https://gitee.com/milvus-io/milvus.git
synced 2025-12-06 17:18:35 +08:00
enhance: Use function def determine field IsFunctionOutput only (#43979)
Related to #35853 Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>
This commit is contained in:
parent
847b79e197
commit
606d4c24cd
@ -835,6 +835,11 @@ func validateFunction(coll *schemapb.CollectionSchema) error {
|
||||
usedOutputField := typeutil.NewSet[string]()
|
||||
usedFunctionName := typeutil.NewSet[string]()
|
||||
|
||||
// reset `IsFunctionOuput` despite any user input, this shall be determined by function def only.
|
||||
for _, field := range coll.Fields {
|
||||
field.IsFunctionOutput = false
|
||||
}
|
||||
|
||||
for _, function := range coll.GetFunctions() {
|
||||
if err := checkFunctionBasicParams(function); err != nil {
|
||||
return err
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user