1#include "duckdb/planner/expression/bound_default_expression.hpp"
2#include "duckdb/common/exception.hpp"
3#include "duckdb/common/field_writer.hpp"
4
5namespace duckdb {
6
7void BoundDefaultExpression::Serialize(FieldWriter &writer) const {
8 writer.WriteSerializable(element: return_type);
9}
10
11unique_ptr<Expression> BoundDefaultExpression::Deserialize(ExpressionDeserializationState &state, FieldReader &reader) {
12 auto return_type = reader.ReadRequiredSerializable<LogicalType, LogicalType>();
13 return make_uniq<BoundDefaultExpression>(args&: return_type);
14}
15
16} // namespace duckdb
17