|
|
vector< unique_ptr< ParsedExpression > > | partition_keys |
| | The partition keys.
|
|
AlterTableType | alter_table_type |
|
AlterType | type |
|
OnEntryNotFound | if_not_found |
| | if exists
|
|
string | catalog |
| | Catalog name to alter.
|
|
string | schema |
| | Schema name to alter.
|
|
string | name |
| | Entry name to alter.
|
|
bool | allow_internal |
| | Allow altering internal entries.
|
|
unique_ptr< LogicalDependencyList > | new_dependencies |
| | New dependencies for the altered entry (set during binding).
|
|
ParseInfoType | info_type |
|
|
static constexpr const ParseInfoType | TYPE = ParseInfoType::ALTER_INFO |
| | AlterTableInfo (AlterTableType type) |
| | AlterInfo (AlterType type) |
◆ SetPartitionedByInfo() [1/2]
338824 : AlterTableInfo(AlterTableType::SET_PARTITIONED_BY, std::move(data)),
partition_keys(std::move(partition_keys_p)) {
338825}
vector< unique_ptr< ParsedExpression > > partition_keys
The partition keys.
Definition duckdb.hpp:28889
◆ ~SetPartitionedByInfo()
| duckdb::SetPartitionedByInfo::~SetPartitionedByInfo |
( |
| ) |
|
|
override |
◆ SetPartitionedByInfo() [2/2]
| duckdb::SetPartitionedByInfo::SetPartitionedByInfo |
( |
| ) |
|
|
private |
338820 : AlterTableInfo(AlterTableType::SET_PARTITIONED_BY) {
338821}
◆ Copy()
Implements duckdb::AlterInfo.
338830 {
338831 vector<unique_ptr<ParsedExpression>> copied_partition_keys;
338833 copied_partition_keys.push_back(partition_key->Copy());
338834 }
338835 return make_uniq_base<AlterInfo, SetPartitionedByInfo>(GetAlterEntryData(), std::move(copied_partition_keys));
338836}
◆ ToString()
| string duckdb::SetPartitionedByInfo::ToString |
( |
| ) |
const |
|
overridevirtual |
Implements duckdb::AlterInfo.
338838 {
338839 string result = "ALTER TABLE ";
338842 result += " RESET PARTITIONED BY";
338843 } else {
338844 result += " SET PARTITIONED BY (";
338846 if (i > 0) {
338847 result += ", ";
338848 }
338850 }
338851 result += ")";
338852 }
338853 return result;
338854}
uint64_t idx_t
a saner size_t for loop indices etc
Definition duckdb.hpp:237
string catalog
Catalog name to alter.
Definition duckdb.hpp:28312
string name
Entry name to alter.
Definition duckdb.hpp:28316
string schema
Schema name to alter.
Definition duckdb.hpp:28314
◆ Serialize()
| void duckdb::SetPartitionedByInfo::Serialize |
( |
Serializer & | serializer | ) |
const |
|
overridevirtual |
Reimplemented from duckdb::AlterTableInfo.
418554 {
418555 AlterTableInfo::Serialize(serializer);
418556 serializer.WritePropertyWithDefault<vector<unique_ptr<ParsedExpression>>>(400,
"partition_keys",
partition_keys);
418557}
◆ Deserialize()
418559 {
418560 auto result = duckdb::unique_ptr<SetPartitionedByInfo>(new SetPartitionedByInfo());
418561 deserializer.ReadPropertyWithDefault<vector<unique_ptr<ParsedExpression>>>(400, "partition_keys", result->partition_keys);
418562 return std::move(result);
418563}
The documentation for this struct was generated from the following files: