1#include "duckdb/planner/operator/logical_create_table.hpp"
2
3namespace duckdb {
4
5void LogicalCreateTable::Serialize(FieldWriter &writer) const {
6 writer.WriteSerializable(element: *info);
7}
8
9unique_ptr<LogicalOperator> LogicalCreateTable::Deserialize(LogicalDeserializationState &state, FieldReader &reader) {
10 auto info = reader.ReadRequiredSerializable<BoundCreateTableInfo>(args&: state.gstate);
11 auto &schema = info->schema;
12 return make_uniq<LogicalCreateTable>(args&: schema, args: std::move(info));
13}
14
15idx_t LogicalCreateTable::EstimateCardinality(ClientContext &context) {
16 return 1;
17}
18
19} // namespace duckdb
20