84 static void initialize(
const std::string& data_dir,
85 const std::string& allowed_import_paths,
86 const std::string& allowed_export_paths);
88 const std::vector<std::string>& expanded_file_paths,
113 const SqlType* column_type);
126 const Encoding* encoding,
127 const SqlType* column_type);
134 const std::string* default_value,
139 SqlType* column_type,
141 const Encoding* encoding,
142 const std::string* default_value);
146 const int32_t column_count);
149 std::unordered_set<std::string>& upper_column_names);
155 const std::string& command);
172 const bool allow_wildcards =
false);
174 namespace alter_column_utils {
void validate_and_set_sparse_encoding(ColumnDescriptor &cd, int encoding_size)
static std::vector< std::string > whitelisted_export_paths_
SqlType(SQLTypes type, int param1, int param2, bool is_array, int array_size)
CompareResult compare_column_descriptors(const ColumnDescriptor *lhs, const ColumnDescriptor *rhs)
void validate_and_set_array_size(ColumnDescriptor &cd, const SqlType *column_type)
virtual void check_type()
static void initialize(const std::string &data_dir, const std::string &allowed_import_paths, const std::string &allowed_export_paths)
void validate_and_set_dictionary_encoding(ColumnDescriptor &cd, int encoding_size)
virtual int get_encoding_param() const
Constants for Builtin SQL Types supported by HEAVY.AI.
void validate_non_duplicate_column(const std::string &column_name, std::unordered_set< std::string > &upper_column_names)
void set_column_descriptor(const std::string &column_name, ColumnDescriptor &cd, SqlType *column_type, const bool not_null, const Encoding *encoding, const std::string *default_value)
void validate_and_set_none_encoding(ColumnDescriptor &cd)
This file contains the class specification and related data structures for Catalog.
void validate_and_set_encoding(ColumnDescriptor &cd, const Encoding *encoding, const SqlType *column_type)
static std::vector< std::string > whitelisted_import_paths_
static void validateWhitelistedFilePath(const std::vector< std::string > &expanded_file_paths, const DataTransferType data_transfer_type)
void set_default_encoding(ColumnDescriptor &cd)
virtual SQLTypes get_type() const
virtual std::string to_string() const
void validate_non_reserved_keyword(const std::string &column_name)
specifies the content in-memory of a row in the column metadata table
void set_default_table_attributes(const std::string &table_name, TableDescriptor &td, const int32_t column_count)
void validate_allowed_file_path(const std::string &file_path, const DataTransferType data_transfer_type, const bool allow_wildcards)
void validate_and_set_compressed_encoding(ColumnDescriptor &cd, int encoding_size)
bool compare_sql_type_infos(const SQLTypeInfo &lhs, const SQLTypeInfo &rhs)
virtual const std::string * get_encoding_name() const
void validate_and_set_fixed_encoding(ColumnDescriptor &cd, int encoding_size, const SqlType *column_type)
std::string table_type_enum_to_string(const TableType table_type)
Encoding(std::string *encoding_name, int encoding_param)
virtual void set_param1(int param)
static bool isBlacklistedPath(const std::string &path)
void validate_table_type(const TableDescriptor *td, const TableType expected_table_type, const std::string &command)
void validate_and_set_default_value(ColumnDescriptor &cd, const std::string *default_value, bool not_null)
void validate_and_set_date_encoding(ColumnDescriptor &cd, int encoding_size)
static void addToBlacklist(const std::string &path)
std::unique_ptr< std::string > encoding_name
virtual void set_is_array(bool a)
virtual int get_param1() const
virtual int get_param2() const
virtual bool get_is_array() const
virtual void set_array_size(int s)
static std::vector< std::string > blacklisted_paths_
virtual int get_array_size() const
void validate_and_set_type(ColumnDescriptor &cd, SqlType *column_type)