Drop float support

This commit is contained in:
jbajic 2022-06-28 12:27:01 +02:00
parent 0e43cf3145
commit cbbecebb74
3 changed files with 2 additions and 10 deletions

View File

@ -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

View File

@ -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;
}

View File

@ -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";
}