33 : old_cd(old_cd), new_cd(new_cd) {}
45 std::list<std::pair<ColumnDescriptor, ColumnDescriptor>>
src_dst_cds;
92 const std::list<std::pair<ColumnDescriptor, ColumnDescriptor>>& altered_columns);
94 std::list<std::pair<ColumnDescriptor, ColumnDescriptor>>
toPairedCds(
95 const std::list<ColumnAltered>& altered_columns);
103 std::list<std::pair<ColumnDescriptor, ColumnDescriptor>>& pairs_list);
109 static std::map<std::string, AlterTableAlterColumnCommandRecoveryMgr>
115 namespace json_utils {
117 void set_value(rapidjson::Value& json_val,
119 rapidjson::Document::AllocatorType& allocator);
std::list< ColumnAltered > altered_columns
alter_column_shared::TypePairs TypePairs
std::vector< int > ChunkKey
std::list< ColumnDescriptor > renamed_columns
void cleanupDeleteDictionaries(const TableDescriptor *td, const TypePairs &src_dst_cds)
std::list< std::pair< ColumnDescriptor, ColumnDescriptor > > toPairedCds(const std::list< ColumnAltered > &altered_columns)
class for a per-database catalog. also includes metadata for the current database and the current use...
void cleanupClearChunk(const ChunkKey &key, const MemoryLevel mem_level)
void set_value(rapidjson::Value &json_val, const ColumnDescriptor &column_desc, rapidjson::Document::AllocatorType &allocator)
RecoveryParamFilepathInfo getRecoveryFilepathInfo(const int32_t table_id=-1)
void recoverAlterTableAlterColumnFromFile(const std::string &filename)
RecoveryInfo deserializeRecoveryInformation(const std::string &filename)
ColumnAltered(const ColumnDescriptor &old_cd, const ColumnDescriptor &new_cd)
std::list< ColumnDescriptor > updated_dict_cds
void cleanupDropSourceGeoColumns(const TableDescriptor *td, const TypePairs &src_dst_cds)
This file contains the class specification and related data structures for Catalog.
Catalog_Namespace::Catalog & catalog_
std::list< std::pair< ColumnDescriptor, ColumnDescriptor > > src_dst_cds
void checkpoint(const TableDescriptor *td, const TypePairs &src_dst_cds)
std::string serializeRecoveryInformation(const RecoveryInfo ¶m)
static const std::string kRecoveryDirectoryName
void cleanupClearRemainingChunks(const TableDescriptor *td, const TypePairs &src_dst_cds)
void resolveIncompleteAlterColumnCommands()
std::string recoveryFilepath(const RecoveryParamFilepathInfo &filepath_info)
specifies the content in-memory of a row in the column metadata table
std::list< std::pair< const ColumnDescriptor *, ColumnDescriptor * >> TypePairs
TypePairs getSrcDstCds(int table_id, std::list< std::pair< ColumnDescriptor, ColumnDescriptor >> &pairs_list)
static void resolveIncompleteAlterColumnCommandsForAllCatalogs()
static std::filesystem::path getRecoveryPrefix(const std::string &base_path)
std::list< std::filesystem::path > getRecoveryFiles()
void get_value(const rapidjson::Value &json_val, ColumnDescriptor &column_desc)
void readSerializedRecoveryInformation(RecoveryInfo ¶m, const RecoveryParamFilepathInfo &filepath_info)
static std::map< std::string, AlterTableAlterColumnCommandRecoveryMgr > createRecoveryManagersForCatalogs()
std::string filename(char const *path)
void cleanup(const TableDescriptor *td, const TypePairs &src_dst_cds)
static std::list< ColumnAltered > fromPairedCds(const std::list< std::pair< ColumnDescriptor, ColumnDescriptor >> &altered_columns)
std::list< ColumnDescriptor > added_columns
void rollback(const TableDescriptor *td, const RecoveryInfo ¶m)
void writeSerializedRecoveryInformation(const RecoveryInfo ¶m, const RecoveryParamFilepathInfo &filepath_info)
AlterTableAlterColumnCommandRecoveryMgr(Catalog_Namespace::Catalog &catalog)