mrproliu commented on code in PR #995:
URL: 
https://github.com/apache/skywalking-banyandb/pull/995#discussion_r2904818116


##########
banyand/metadata/schema/schemaserver/grpc.go:
##########
@@ -206,11 +215,16 @@ func (s *schemaManagementServer) DeleteSchema(ctx 
context.Context, req *schemav1
                return &schemav1.DeleteSchemaResponse{Found: false}, nil
        }
        ids := make([][]byte, 0, len(results))
+       var deletedProps []*propertyv1.Property
        for _, result := range results {
                if result.DeleteTime() > 0 {
                        continue
                }
                ids = append(ids, result.ID())
+               var p propertyv1.Property
+               if unmarshalErr := protojson.Unmarshal(result.Source(), &p); 
unmarshalErr == nil {
+                       deletedProps = append(deletedProps, &p)
+               }

Review Comment:
   If unmarshal failure then return the error message. 



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to