-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdistributed_alter_table.hpp
More file actions
33 lines (25 loc) · 1.02 KB
/
Copy pathdistributed_alter_table.hpp
File metadata and controls
33 lines (25 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
// Physical operation to alter remote tables.
#pragma once
#include "duckdb/catalog/catalog_entry/table_catalog_entry.hpp"
#include "duckdb/execution/physical_operator.hpp"
#include "duckdb/parser/parsed_data/alter_table_info.hpp"
namespace duckdb {
class PhysicalRemoteAlterTableOperator : public PhysicalOperator {
public:
PhysicalRemoteAlterTableOperator(PhysicalPlan &physical_plan, unique_ptr<AlterTableInfo> info_p,
string catalog_name_p, string schema_name_p, string table_name_p,
idx_t estimated_cardinality);
unique_ptr<AlterTableInfo> info;
string catalog_name;
string schema_name;
string table_name;
public:
// Source interface.
unique_ptr<GlobalSourceState> GetGlobalSourceState(ClientContext &context) const override;
SourceResultType GetDataInternal(ExecutionContext &context, DataChunk &chunk,
OperatorSourceInput &input) const override;
bool IsSource() const override {
return true;
}
};
} // namespace duckdb