OmniSciDB
a5dc49c757
|
#include <DdlCommandExecutor.h>
Public Member Functions | |
CreateForeignTableCommand (const DdlCommandData &ddl_data, std::shared_ptr< Catalog_Namespace::SessionInfo const > session_ptr) | |
ExecutionResult | execute (bool read_only_mode) override |
Public Member Functions inherited from DdlCommand | |
DdlCommand (const DdlCommandData &ddl_data, std::shared_ptr< Catalog_Namespace::SessionInfo const > session_ptr) | |
Private Member Functions | |
void | setTableDetails (const std::string &table_name, TableDescriptor &td, const std::list< ColumnDescriptor > &columns) |
void | setColumnDetails (std::list< ColumnDescriptor > &columns) |
Additional Inherited Members | |
Protected Attributes inherited from DdlCommand | |
const DdlCommandData & | ddl_data_ |
std::shared_ptr < Catalog_Namespace::SessionInfo const > | session_ptr_ |
Definition at line 91 of file DdlCommandExecutor.h.
CreateForeignTableCommand::CreateForeignTableCommand | ( | const DdlCommandData & | ddl_data, |
std::shared_ptr< Catalog_Namespace::SessionInfo const > | session_ptr | ||
) |
Definition at line 1373 of file DdlCommandExecutor.cpp.
References CHECK, anonymous_namespace{DdlCommandExecutor.cpp}::extractPayload(), and g_enable_fsi.
|
overridevirtual |
Executes the DDL command corresponding to provided JSON payload.
_return | result of DDL command execution (if applicable) |
Implements DdlCommand.
Definition at line 1391 of file DdlCommandExecutor.cpp.
References AccessPrivileges::CREATE_TABLE, Catalog_Namespace::SysCatalog::createDBObject(), DdlCommand::ddl_data_, anonymous_namespace{DdlCommandExecutor.cpp}::extractPayload(), legacylockmgr::getExecuteWriteLock(), Catalog_Namespace::SysCatalog::instance(), DdlCommand::session_ptr_, setColumnDetails(), setTableDetails(), and TableDBObjectType.
Referenced by heavydb.cursor.Cursor::executemany().
|
private |
Definition at line 1490 of file DdlCommandExecutor.cpp.
References CHECK, DdlCommand::ddl_data_, anonymous_namespace{DdlCommandExecutor.cpp}::extractPayload(), ddl_utils::set_column_descriptor(), ddl_utils::validate_non_duplicate_column(), and ddl_utils::validate_non_reserved_keyword().
Referenced by execute().
|
private |
Definition at line 1431 of file DdlCommandExecutor.cpp.
References CHECK, DdlCommand::ddl_data_, anonymous_namespace{DdlCommandExecutor.cpp}::extractPayload(), foreign_storage::ForeignTable::foreign_server, StorageType::FOREIGN_TABLE, TableDescriptor::fragments, TableDescriptor::hasDeletedCol, anonymous_namespace{DdlCommandExecutor.cpp}::is_default_server(), TableDescriptor::keyMetainfo, TableDescriptor::partitions, AccessPrivileges::SERVER_USAGE, ServerDBObjectType, DdlCommand::session_ptr_, ddl_utils::set_default_table_attributes(), TableDescriptor::storageType, TableDescriptor::userId, and Parser::validate_and_get_fragment_size().
Referenced by execute().