418019 {
418020 auto type = deserializer.ReadProperty<AlterType>(200, "type");
418021 auto catalog = deserializer.ReadPropertyWithDefault<
string>(201,
"catalog");
418022 auto schema = deserializer.ReadPropertyWithDefault<
string>(202,
"schema");
418023 auto name = deserializer.ReadPropertyWithDefault<
string>(203,
"name");
418024 auto if_not_found = deserializer.ReadProperty<OnEntryNotFound>(204,
"if_not_found");
418025 auto allow_internal = deserializer.ReadPropertyWithDefault<
bool>(205,
"allow_internal");
418026 unique_ptr<AlterInfo> result;
418027 switch (type) {
418028 case AlterType::ALTER_DATABASE:
418029 result = AlterDatabaseInfo::Deserialize(deserializer);
418030 break;
418031 case AlterType::ALTER_TABLE:
418032 result = AlterTableInfo::Deserialize(deserializer);
418033 break;
418034 case AlterType::ALTER_VIEW:
418035 result = AlterViewInfo::Deserialize(deserializer);
418036 break;
418037 case AlterType::CHANGE_OWNERSHIP:
418038 result = ChangeOwnershipInfo::Deserialize(deserializer);
418039 break;
418040 case AlterType::SET_COLUMN_COMMENT:
418041 result = SetColumnCommentInfo::Deserialize(deserializer);
418042 break;
418043 case AlterType::SET_COMMENT:
418044 result = SetCommentInfo::Deserialize(deserializer);
418045 break;
418046 default:
418047 throw SerializationException("Unsupported type for deserialization of AlterInfo!");
418048 }
418049 result->catalog = std::move(
catalog);
418050 result->schema = std::move(
schema);
418051 result->name = std::move(
name);
418054 return std::move(result);
418055}