hailin0 commented on code in PR #322:
URL: 
https://github.com/apache/skywalking-banyandb/pull/322#discussion_r1320934362


##########
pkg/query/logical/common.go:
##########
@@ -72,22 +69,15 @@ func ProjectItem(ec executor.ExecutionContext, item 
tsdb.Item, projectionFieldRe
                if len(refs) == 0 {
                        continue
                }
-               tags := make([]*modelv1.Tag, len(refs))
                familyName := refs[0].Tag.getFamilyName()
                parsedTagFamily, err := ec.ParseTagFamily(familyName, item)
                if err != nil {
                        return nil, errors.WithMessage(err, "parse projection")
                }
-               if len(refs) > len(parsedTagFamily.Tags) {
-                       return nil, errors.Wrapf(errInvalidData,
-                               "the number of tags %d in %s is less then 
expected %d",
-                               len(parsedTagFamily.Tags), familyName, 
len(refs))
-               }
+               tags := make([]*modelv1.Tag, len(parsedTagFamily.GetTags()))

Review Comment:
   Fix query failure caused by schema changes



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