Skip to content

Commit

Permalink
fix milvus issue 26036 (#215)
Browse files Browse the repository at this point in the history
Signed-off-by: nameczz <[email protected]>
  • Loading branch information
nameczz authored Aug 3, 2023
1 parent 2feccb4 commit acfcd4d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions milvus/grpc/Data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -548,9 +548,8 @@ export class Data extends Collection {
const data = fieldsDataMap.get(
isFixedSchema ? field_name : DEFAULT_DYNAMIC_FIELD
);

// make data[i] safe
data[i] = data[i] || {};
// make dynamic data[i] safe
data[i] = isFixedSchema ? data[i] : data[i] || {};
// extract dynamic info from dynamic field if necessary
result[field_name] = isFixedSchema ? data[i] : data[i][field_name];
});
Expand Down

0 comments on commit acfcd4d

Please sign in to comment.