diff --git a/internal/core/src/common/Schema.h b/internal/core/src/common/Schema.h index 99b720b739..9220887263 100644 --- a/internal/core/src/common/Schema.h +++ b/internal/core/src/common/Schema.h @@ -10,14 +10,16 @@ // or implied. See the License for the specific language governing permissions and limitations under the License #pragma once -#include "FieldMeta.h" -#include -#include + +#include +#include #include #include -#include -#include -#include +#include +#include + +#include "FieldMeta.h" +#include "pb/schema.pb.h" namespace milvus { @@ -109,15 +111,6 @@ class Schema { return sizeof_infos_; } - [[deprecated]] std::optional - get_offset_opt(const FieldName& field_name) const { - if (!name_offsets_.count(field_name)) { - return std::nullopt; - } else { - return name_offsets_.at(field_name); - } - } - FieldOffset get_offset(const FieldName& field_name) const { Assert(name_offsets_.count(field_name));