mirror of
https://gitee.com/milvus-io/milvus.git
synced 2025-12-07 17:48:29 +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]()
|
usedOutputField := typeutil.NewSet[string]()
|
||||||
usedFunctionName := 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() {
|
for _, function := range coll.GetFunctions() {
|
||||||
if err := checkFunctionBasicParams(function); err != nil {
|
if err := checkFunctionBasicParams(function); err != nil {
|
||||||
return err
|
return err
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user