Drop float support
This commit is contained in:
parent
0e43cf3145
commit
cbbecebb74
@ -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
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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";
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user