diff --git a/src/include/duckdb/parser/property_graph_table.hpp b/src/include/duckdb/parser/property_graph_table.hpp index 7f28538fd98..2198633fdb7 100644 --- a/src/include/duckdb/parser/property_graph_table.hpp +++ b/src/include/duckdb/parser/property_graph_table.hpp @@ -64,6 +64,6 @@ class PropertyGraphTable { void Serialize(Serializer &serializer) const; - static unique_ptr Deserialize(Deserializer &deserializer); + static shared_ptr Deserialize(Deserializer &deserializer); }; } // namespace duckdb diff --git a/src/parser/property_graph_table.cpp b/src/parser/property_graph_table.cpp index 6d9890604c5..60371a2ff22 100644 --- a/src/parser/property_graph_table.cpp +++ b/src/parser/property_graph_table.cpp @@ -231,7 +231,7 @@ void PropertyGraphTable::Serialize(Serializer &serializer) const { writer.Finalize(); } -unique_ptr PropertyGraphTable::Deserialize(Deserializer &deserializer) { +shared_ptr PropertyGraphTable::Deserialize(Deserializer &deserializer) { auto pg_table = make_uniq(); FieldReader reader(deserializer); pg_table->table_name = reader.ReadRequired();