1#include "duckdb/execution/operator/schema/physical_alter.hpp"
2#include "duckdb/parser/parsed_data/alter_table_info.hpp"
3#include "duckdb/catalog/catalog.hpp"
4
5namespace duckdb {
6
7//===--------------------------------------------------------------------===//
8// Source
9//===--------------------------------------------------------------------===//
10SourceResultType PhysicalAlter::GetData(ExecutionContext &context, DataChunk &chunk, OperatorSourceInput &input) const {
11 auto &catalog = Catalog::GetCatalog(context&: context.client, catalog_name: info->catalog);
12 catalog.Alter(context&: context.client, info&: *info);
13
14 return SourceResultType::FINISHED;
15}
16
17} // namespace duckdb
18