OmniSciDB
a5dc49c757
|
#include <ParserNode.h>
Public Member Functions | |
CreateTableAsSelectStmt (const rapidjson::Value &payload) | |
CreateTableAsSelectStmt (const std::string *table_name, const std::string *select_query, const bool is_temporary, const bool if_not_exists, std::list< NameValueAssign * > *s) | |
void | execute (const Catalog_Namespace::SessionInfo &session, bool read_only_mode) override |
Public Member Functions inherited from Parser::InsertIntoTableAsSelectStmt | |
InsertIntoTableAsSelectStmt (const rapidjson::Value &payload) | |
InsertIntoTableAsSelectStmt (const std::string *table_name, const std::string *select_query, std::list< std::string * > *c) | |
void | populateData (QueryStateProxy, const TableDescriptor *td, bool validate_table, bool for_CTAS=false) |
std::string & | get_table () |
std::string & | get_select_query () |
Public Member Functions inherited from Parser::DDLStmt | |
void | setColumnDescriptor (ColumnDescriptor &cd, const ColumnDef *coldef) |
Public Member Functions inherited from Parser::Node | |
virtual | ~Node () |
Private Attributes | |
bool | is_temporary_ |
bool | if_not_exists_ |
std::list< std::unique_ptr < NameValueAssign > > | storage_options_ |
Additional Inherited Members | |
Public Attributes inherited from Parser::InsertIntoTableAsSelectStmt | |
std::unique_ptr< QueryConnector > | leafs_connector_ |
Protected Attributes inherited from Parser::InsertIntoTableAsSelectStmt | |
std::vector< std::unique_ptr < std::string > > | column_list_ |
std::string | table_name_ |
std::string | select_query_ |
Definition at line 1169 of file ParserNode.h.
Parser::CreateTableAsSelectStmt::CreateTableAsSelectStmt | ( | const rapidjson::Value & | payload | ) |
Definition at line 4699 of file ParserNode.cpp.
References if_not_exists_, is_temporary_, json_bool(), Parser::anonymous_namespace{ParserNode.cpp}::parse_options(), and storage_options_.
|
inline |
Definition at line 1172 of file ParserNode.h.
References storage_options_.
|
overridevirtual |
Reimplemented from Parser::InsertIntoTableAsSelectStmt.
Definition at line 4716 of file ParserNode.cpp.
References Parser::anonymous_namespace{ParserNode.cpp}::acquire_query_table_locks(), CHECK, Catalog_Namespace::SessionInfo::checkDBAccessPrivileges(), Data_Namespace::CPU_LEVEL, query_state::QueryState::create(), bench_batch_streaming_ingest::create_table(), AccessPrivileges::CREATE_TABLE, DEFAULT_FRAGMENT_ROWS, DEFAULT_MAX_CHUNK_SIZE, DEFAULT_MAX_ROLLBACK_EPOCHS, DEFAULT_MAX_ROWS, DEFAULT_PAGE_SIZE, Data_Namespace::DISK_LEVEL, TableDescriptor::fragmenter, TableDescriptor::fragPageSize, TableDescriptor::fragType, g_cluster, Catalog_Namespace::SessionInfo::get_currentUser(), Parser::StringLiteral::get_stringval(), Parser::anonymous_namespace{ParserNode.cpp}::get_table_definitions_for_ctas(), Catalog_Namespace::SessionInfo::getCatalog(), Parser::LocalQueryConnector::getColumnDescriptors(), legacylockmgr::getExecuteReadLock(), legacylockmgr::getExecuteWriteLock(), if_not_exists_, logger::INFO, Fragmenter_Namespace::INSERT_ORDER, lockmgr::instance(), is_temporary_, TableDescriptor::isView, kENCODING_DICT, kENCODING_GEOINT, TableDescriptor::keyMetainfo, sql_constants::kMaxNumericPrecision, Parser::InsertIntoTableAsSelectStmt::leafs_connector_, LOG, TableDescriptor::maxChunkSize, TableDescriptor::maxFragRows, TableDescriptor::maxRollbackEpochs, TableDescriptor::maxRows, TableDescriptor::nColumns, TableDescriptor::persistenceLevel, Parser::InsertIntoTableAsSelectStmt::populateData(), Parser::LocalQueryConnector::query(), Parser::InsertIntoTableAsSelectStmt::select_query_, Parser::anonymous_namespace{ParserNode.cpp}::serialize_key_metainfo(), STDLOG, storage_options_, Parser::InsertIntoTableAsSelectStmt::table_name_, TableDBObjectType, TableDescriptor::tableName, to_string(), TableDescriptor::userId, and Catalog_Namespace::UserMetadata::userId.
Referenced by heavydb.cursor.Cursor::executemany().
|
private |
Definition at line 1193 of file ParserNode.h.
Referenced by CreateTableAsSelectStmt(), and execute().
|
private |
Definition at line 1192 of file ParserNode.h.
Referenced by CreateTableAsSelectStmt(), and execute().
|
private |
Definition at line 1194 of file ParserNode.h.
Referenced by CreateTableAsSelectStmt(), and execute().