OmniSciDB  a5dc49c757
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DdlCommandExecutor.cpp File Reference
#include "DdlCommandExecutor.h"
#include <algorithm>
#include <boost/algorithm/string/predicate.hpp>
#include <boost/uuid/uuid_generators.hpp>
#include <boost/uuid/uuid_io.hpp>
#include "rapidjson/document.h"
#include "Catalog/Catalog.h"
#include "Catalog/SysCatalog.h"
#include "DataMgr/ForeignStorage/ForeignTableRefresh.h"
#include "LockMgr/LockMgr.h"
#include "Parser/ParserNode.h"
#include "Shared/StringTransform.h"
#include "Shared/SysDefinitions.h"
#include "Fragmenter/InsertOrderFragmenter.h"
#include "QueryEngine/Execute.h"
#include "QueryEngine/ExternalCacheInvalidators.h"
#include "QueryEngine/JsonAccessors.h"
#include "QueryEngine/ResultSetBuilder.h"
#include "QueryEngine/TableFunctions/SystemFunctions/os/ML/MLModel.h"
#include "QueryEngine/TableOptimizer.h"
+ Include dependency graph for DdlCommandExecutor.cpp:

Go to the source code of this file.

Classes

struct  anonymous_namespace{DdlCommandExecutor.cpp}::AggregratedStorageStats
 
class  anonymous_namespace{DdlCommandExecutor.cpp}::JsonColumnSqlType
 declare this class scoped local to avoid exposing rapidjson in the header file More...
 
class  anonymous_namespace{DdlCommandExecutor.cpp}::JsonColumnEncoding
 
class  anonymous_namespace{DdlCommandExecutor.cpp}::DdlCommandDataImpl
 

Namespaces

 anonymous_namespace{DdlCommandExecutor.cpp}
 

Functions

void anonymous_namespace{DdlCommandExecutor.cpp}::vacuum_table_if_required (const Catalog_Namespace::Catalog &catalog, const TableDescriptor *td)
 
void anonymous_namespace{DdlCommandExecutor.cpp}::validate_alter_type_allowed (const std::string &colname, const SQLTypeInfo &src, const SQLTypeInfo &dst)
 
void anonymous_namespace{DdlCommandExecutor.cpp}::validate_alter_type_metadata (const Catalog_Namespace::Catalog &catalog, const TableDescriptor *td, const ColumnDescriptor &cd)
 
std::list< std::pair< const
ColumnDescriptor *, std::list
< const ColumnDescriptor * > > > 
anonymous_namespace{DdlCommandExecutor.cpp}::get_alter_column_geo_pairs_from_src_dst_pairs_phys_cds (const AlterTableAlterColumnCommand::TypePairs &src_dst_cds, const std::list< std::list< ColumnDescriptor >> &phys_cds)
 
AlterTableAlterColumnCommand::TypePairs anonymous_namespace{DdlCommandExecutor.cpp}::get_alter_column_pairs_from_src_dst_cds (std::list< ColumnDescriptor > &src_cds, std::list< ColumnDescriptor > &dst_cds)
 
std::pair< std::list
< ColumnDescriptor >
, std::list< ColumnDescriptor > > 
anonymous_namespace{DdlCommandExecutor.cpp}::get_alter_column_src_dst_cds (const std::list< Parser::ColumnDef > &columns, Catalog_Namespace::Catalog &catalog, const TableDescriptor *td)
 
template<class LockType >
std::tuple< const
TableDescriptor
*, std::unique_ptr
< lockmgr::TableSchemaLockContainer
< LockType > > > 
anonymous_namespace{DdlCommandExecutor.cpp}::get_table_descriptor_with_lock (Catalog_Namespace::Catalog &cat, const std::string &table_name, const bool populate_fragmenter)
 
template<class Func >
void anonymous_namespace{DdlCommandExecutor.cpp}::exec_for_tables_which_exist (const std::vector< std::string > &table_names, Catalog_Namespace::Catalog *cat_ptr, Func func)
 
AggregratedStorageStats anonymous_namespace{DdlCommandExecutor.cpp}::get_agg_storage_stats (const TableDescriptor *td, const Catalog_Namespace::Catalog *catalog)
 
std::unique_ptr< RexLiteralanonymous_namespace{DdlCommandExecutor.cpp}::genLiteralStr (std::string val)
 
std::unique_ptr< RexLiteralanonymous_namespace{DdlCommandExecutor.cpp}::genLiteralTimestamp (time_t val)
 
std::unique_ptr< RexLiteralanonymous_namespace{DdlCommandExecutor.cpp}::genLiteralBigInt (int64_t val)
 
std::unique_ptr< RexLiteralanonymous_namespace{DdlCommandExecutor.cpp}::genLiteralDouble (double val)
 
std::unique_ptr< RexLiteralanonymous_namespace{DdlCommandExecutor.cpp}::genLiteralBoolean (bool val)
 
void anonymous_namespace{DdlCommandExecutor.cpp}::set_headers_with_type (std::vector< TargetMetaInfo > &label_infos, const std::vector< std::tuple< std::string, SQLTypes, bool >> &headers)
 
void anonymous_namespace{DdlCommandExecutor.cpp}::add_table_details (std::vector< RelLogicalValues::RowValues > &logical_values, const TableDescriptor *logical_table, const AggregratedStorageStats &agg_storage_stats)
 
const rapidjson::Value & anonymous_namespace{DdlCommandExecutor.cpp}::extractPayload (const DdlCommandData &ddl_data)
 
const rapidjson::Value * anonymous_namespace{DdlCommandExecutor.cpp}::extractFilters (const rapidjson::Value &payload)
 
bool anonymous_namespace{DdlCommandExecutor.cpp}::is_default_server (const std::string &server_name)
 
void anonymous_namespace{DdlCommandExecutor.cpp}::throw_reserved_server_prefix_exception ()
 

Variables

bool g_enable_fsi
 
bool g_enable_ml_functions
 
bool g_restrict_ml_model_metadata_to_superusers
 
const std::array< std::string, 3 > anonymous_namespace{DdlCommandExecutor.cpp}::kReservedServerPrefixes {"default", "system", "internal"}
 

Variable Documentation

bool g_enable_fsi

Definition at line 96 of file Catalog.cpp.