OmniSciDB
a5dc49c757
|
#include <DdlCommandExecutor.h>
Public Member Functions | |
ShowModelDetailsCommand (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 | |
std::vector< std::string > | getFilteredModelNames () |
Additional Inherited Members | |
Protected Attributes inherited from DdlCommand | |
const DdlCommandData & | ddl_data_ |
std::shared_ptr < Catalog_Namespace::SessionInfo const > | session_ptr_ |
Definition at line 280 of file DdlCommandExecutor.h.
ShowModelDetailsCommand::ShowModelDetailsCommand | ( | const DdlCommandData & | ddl_data, |
std::shared_ptr< Catalog_Namespace::SessionInfo const > | session_ptr | ||
) |
Definition at line 2094 of file DdlCommandExecutor.cpp.
References g_enable_ml_functions, and g_restrict_ml_model_metadata_to_superusers.
|
overridevirtual |
Executes the DDL command corresponding to provided JSON payload.
_return | result of DDL command execution (if applicable) |
Implements DdlCommand.
Definition at line 2112 of file DdlCommandExecutor.cpp.
References ResultSetLogicalValuesBuilder::create(), g_ml_models, anonymous_namespace{DdlCommandExecutor.cpp}::genLiteralBigInt(), anonymous_namespace{DdlCommandExecutor.cpp}::genLiteralDouble(), genLiteralStr(), legacylockmgr::getExecuteReadLock(), getFilteredModelNames(), MLModelMap::getModelMetadata(), kBIGINT, kDOUBLE, and kTEXT.
Referenced by heavydb.cursor.Cursor::executemany().
|
private |
Definition at line 2174 of file DdlCommandExecutor.cpp.
References DdlCommand::ddl_data_, anonymous_namespace{DdlCommandExecutor.cpp}::extractPayload(), g_ml_models, MLModelMap::getModelNames(), and to_upper().
Referenced by execute().