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:
congqixia 2025-08-22 04:49:46 +08:00 committed by GitHub
parent 847b79e197
commit 606d4c24cd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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