1#include "duckdb/parser/expression/default_expression.hpp"
2
3#include "duckdb/common/exception.hpp"
4
5#include "duckdb/common/serializer/format_serializer.hpp"
6#include "duckdb/common/serializer/format_deserializer.hpp"
7
8namespace duckdb {
9
10DefaultExpression::DefaultExpression() : ParsedExpression(ExpressionType::VALUE_DEFAULT, ExpressionClass::DEFAULT) {
11}
12
13string DefaultExpression::ToString() const {
14 return "DEFAULT";
15}
16
17unique_ptr<ParsedExpression> DefaultExpression::Copy() const {
18 auto copy = make_uniq<DefaultExpression>();
19 copy->CopyProperties(other: *this);
20 return std::move(copy);
21}
22
23void DefaultExpression::Serialize(FieldWriter &writer) const {
24}
25
26unique_ptr<ParsedExpression> DefaultExpression::Deserialize(ExpressionType type, FieldReader &source) {
27 return make_uniq<DefaultExpression>();
28}
29
30void DefaultExpression::FormatSerialize(FormatSerializer &serializer) const {
31 ParsedExpression::FormatSerialize(serializer);
32}
33
34} // namespace duckdb
35