diff --git a/src/duckdb/src/storage/serialization/serialize_aggregate_function.cpp b/src/duckdb/src/storage/serialization/serialize_aggregate_function.cpp deleted file mode 100644 index 79484d80..00000000 --- a/src/duckdb/src/storage/serialization/serialize_aggregate_function.cpp +++ /dev/null @@ -1,62 +0,0 @@ -//===----------------------------------------------------------------------===// -// This file is automatically generated by scripts/generate_serialization.py -// Do not edit this file manually, your changes will be overwritten -//===----------------------------------------------------------------------===// - -#include "duckdb/common/serializer/serializer.hpp" -#include "duckdb/common/serializer/deserializer.hpp" -#include "duckdb/function/macro_function.hpp" -#include "duckdb/function/scalar_macro_function.hpp" -#include "duckdb/function/table_macro_function.hpp" - -namespace duckdb { - -void MacroFunction::Serialize(Serializer &serializer) const { - serializer.WriteProperty(100, "type", type); - serializer.WritePropertyWithDefault>>(101, "parameters", parameters); - serializer.WritePropertyWithDefault>>(102, "default_parameters", default_parameters); -} - -unique_ptr MacroFunction::Deserialize(Deserializer &deserializer) { - auto type = deserializer.ReadProperty(100, "type"); - auto parameters = deserializer.ReadPropertyWithDefault>>(101, "parameters"); - auto default_parameters = deserializer.ReadPropertyWithDefault>>(102, "default_parameters"); - unique_ptr result; - switch (type) { - case MacroType::SCALAR_MACRO: - result = ScalarMacroFunction::Deserialize(deserializer); - break; - case MacroType::TABLE_MACRO: - result = TableMacroFunction::Deserialize(deserializer); - break; - default: - throw SerializationException("Unsupported type for deserialization of MacroFunction!"); - } - result->parameters = std::move(parameters); - result->default_parameters = std::move(default_parameters); - return result; -} - -void ScalarMacroFunction::Serialize(Serializer &serializer) const { - MacroFunction::Serialize(serializer); - serializer.WritePropertyWithDefault>(200, "expression", expression); -} - -unique_ptr ScalarMacroFunction::Deserialize(Deserializer &deserializer) { - auto result = duckdb::unique_ptr(new ScalarMacroFunction()); - deserializer.ReadPropertyWithDefault>(200, "expression", result->expression); - return std::move(result); -} - -void TableMacroFunction::Serialize(Serializer &serializer) const { - MacroFunction::Serialize(serializer); - serializer.WritePropertyWithDefault>(200, "query_node", query_node); -} - -unique_ptr TableMacroFunction::Deserialize(Deserializer &deserializer) { - auto result = duckdb::unique_ptr(new TableMacroFunction()); - deserializer.ReadPropertyWithDefault>(200, "query_node", result->query_node); - return std::move(result); -} - -} // namespace duckdb diff --git a/src/duckdb/ub_src_storage_serialization.cpp b/src/duckdb/ub_src_storage_serialization.cpp index ce0e0f73..2465830f 100644 --- a/src/duckdb/ub_src_storage_serialization.cpp +++ b/src/duckdb/ub_src_storage_serialization.cpp @@ -28,5 +28,3 @@ #include "src/storage/serialization/serialize_storage.cpp" -#include "src/storage/serialization/serialize_aggregate_function.cpp" -