Skip to content

Commit

Permalink
fix lgraph test.
Browse files Browse the repository at this point in the history
  • Loading branch information
ColinLeeo committed Nov 20, 2024
1 parent e51edd7 commit 056e5b3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/core/schema.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -725,6 +725,10 @@ void Schema::_ParseStringAndSet<FieldType::FLOAT_VECTOR>(
*/
void Schema::ParseAndSet(Value& record, const std::string& data,
::lgraph::_detail::FieldExtractorBase* extractor) const {
if (!fast_alter_schema) {
GetFieldExtractorV1(extractor)->ParseAndSet(record, data);
return;
}
if (data.empty() &&
(extractor->IsFixedType() || extractor->Type() == FieldType::LINESTRING ||
extractor->Type() == FieldType::POLYGON || extractor->Type() == FieldType::SPATIAL ||
Expand Down

0 comments on commit 056e5b3

Please sign in to comment.