Skip to content

Commit

Permalink
fix payload parse error and some test
Browse files Browse the repository at this point in the history
Signed-off-by: lixinguo <[email protected]>
  • Loading branch information
lixinguo committed Apr 29, 2024
1 parent 0e59671 commit fad8f1d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion internal/core/unittest/test_utils/DataGen.h
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ inline GeneratedData DataGen(SchemaPtr schema,
auto res = GenerateRandomSparseFloatVector(
N, kTestSparseDim, kTestSparseVectorDensity, seed);
auto array = milvus::segcore::CreateDataArrayFrom(
res.get(), N, field_meta);
res.get(), nullptr, N, field_meta);
insert_data->mutable_fields_data()->AddAllocated(
array.release());
break;
Expand Down
2 changes: 2 additions & 0 deletions internal/storage/event_data.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ type DescriptorEventDataFixPart struct {
PartitionID int64
SegmentID int64
FieldID int64
Nullable bool
StartTimestamp typeutil.Timestamp
EndTimestamp typeutil.Timestamp
PayloadDataType schemapb.DataType
Expand Down Expand Up @@ -350,6 +351,7 @@ func newDescriptorEventData() *descriptorEventData {
StartTimestamp: 0,
EndTimestamp: 0,
PayloadDataType: -1,
Nullable: false,
},
PostHeaderLengths: []uint8{},
Extras: make(map[string]interface{}),
Expand Down

0 comments on commit fad8f1d

Please sign in to comment.