diff --git a/internal/core/src/exec/expression/GISFunctionFilterExpr.h b/internal/core/src/exec/expression/GISFunctionFilterExpr.h index e63bfc89ef..34bdf67986 100644 --- a/internal/core/src/exec/expression/GISFunctionFilterExpr.h +++ b/internal/core/src/exec/expression/GISFunctionFilterExpr.h @@ -56,6 +56,18 @@ class PhyGISFunctionFilterExpr : public SegmentExpr { return expr_->column_; } + std::string + ToString() const { + return fmt::format("{}", expr_->ToString()); + } + + void + MoveCursor() { + if (segment_->type() == SegmentType::Sealed) { + SegmentExpr::MoveCursor(); + } + } + private: VectorPtr EvalForIndexSegment(); diff --git a/internal/core/src/segcore/FieldIndexing.cpp b/internal/core/src/segcore/FieldIndexing.cpp index b45b0179df..282f28fa16 100644 --- a/internal/core/src/segcore/FieldIndexing.cpp +++ b/internal/core/src/segcore/FieldIndexing.cpp @@ -531,16 +531,14 @@ ScalarFieldIndexing::process_geometry_data(int64_t reserved_offset, // Use the accessor to get geometry data and validity auto [wkb_data, is_valid] = accessor(i); - if (is_valid) { - try { - rtree_index->AddGeometry(wkb_data, global_offset); - added_count++; - } catch (std::exception& error) { - ThrowInfo(UnexpectedError, - "Failed to add geometry at offset {}: {}", - global_offset, - error.what()); - } + try { + rtree_index->AddGeometry(wkb_data, global_offset); + added_count++; + } catch (std::exception& error) { + ThrowInfo(UnexpectedError, + "Failed to add geometry at offset {}: {}", + global_offset, + error.what()); } }