Skip to content

Commit

Permalink
fix data in record.
Browse files Browse the repository at this point in the history
  • Loading branch information
ColinLeeo committed Dec 25, 2024
1 parent 6a1ef5e commit ad334ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/schema.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -516,7 +516,7 @@ void Schema::ParseAndSet(Value& record, const FieldData& data,
return;
}
FieldId count = GetFieldExtractorV2(extractor)->GetRecordCount(record);
if (extractor->DataInRecord(record)) {
if (!extractor->DataInRecord(record)) {
Value new_prop = CreateEmptyRecord();
for (const auto& field : name_to_idx_) {
_detail::FieldExtractorV2* extr = GetFieldExtractorV2(GetFieldExtractor(field.first));
Expand Down

0 comments on commit ad334ab

Please sign in to comment.