From cbbecebb74055efaffd9db5c9eb59c93ad22827c Mon Sep 17 00:00:00 2001
From: jbajic <jure.bajic@memgraph.com>
Date: Tue, 28 Jun 2022 12:27:01 +0200
Subject: [PATCH] Drop float support

---
 src/common/types.hpp                           | 2 +-
 src/query/frontend/ast/cypher_main_visitor.cpp | 3 ---
 src/storage/v2/schemas.hpp                     | 7 +------
 3 files changed, 2 insertions(+), 10 deletions(-)

diff --git a/src/common/types.hpp b/src/common/types.hpp
index 9751bc4ac..09a0aecf5 100644
--- a/src/common/types.hpp
+++ b/src/common/types.hpp
@@ -14,6 +14,6 @@
 #include <cstdint>
 
 namespace memgraph::common {
-enum class SchemaType : uint8_t { BOOL, INT, FLOAT, STRING, DATE, LOCALTIME, LOCALDATETIME, DURATION };
+enum class SchemaType : uint8_t { BOOL, INT, STRING, DATE, LOCALTIME, LOCALDATETIME, DURATION };
 
 }  // namespace memgraph::common
diff --git a/src/query/frontend/ast/cypher_main_visitor.cpp b/src/query/frontend/ast/cypher_main_visitor.cpp
index 568d8b233..67e35bf49 100644
--- a/src/query/frontend/ast/cypher_main_visitor.cpp
+++ b/src/query/frontend/ast/cypher_main_visitor.cpp
@@ -2372,9 +2372,6 @@ antlrcpp::Any CypherMainVisitor::visitPropertyType(MemgraphCypher::PropertyTypeC
   if (property_type == "integer") {
     return common::SchemaType::INT;
   }
-  if (property_type == "float") {
-    return common::SchemaType::FLOAT;
-  }
   if (property_type == "date") {
     return common::SchemaType::DATE;
   }
diff --git a/src/storage/v2/schemas.hpp b/src/storage/v2/schemas.hpp
index 775f96a02..edc5c6934 100644
--- a/src/storage/v2/schemas.hpp
+++ b/src/storage/v2/schemas.hpp
@@ -100,9 +100,6 @@ inline std::optional<common::SchemaType> PropertyTypeToSchemaType(const Property
     case PropertyValue::Type::Int: {
       return common::SchemaType::INT;
     }
-    case PropertyValue::Type::Double: {
-      return common::SchemaType::FLOAT;
-    }
     case PropertyValue::Type::String: {
       return common::SchemaType::STRING;
     }
@@ -122,6 +119,7 @@ inline std::optional<common::SchemaType> PropertyTypeToSchemaType(const Property
         }
       }
     }
+    case PropertyValue::Type::Double:
     case PropertyValue::Type::Null:
     case PropertyValue::Type::Map:
     case PropertyValue::Type::List: {
@@ -138,9 +136,6 @@ inline std::string SchemaTypeToString(const common::SchemaType type) {
     case common::SchemaType::INT: {
       return "Integer";
     }
-    case common::SchemaType::FLOAT: {
-      return "Float";
-    }
     case common::SchemaType::STRING: {
       return "String";
     }