22 namespace foreign_storage {
27 : std::runtime_error(error_message) {}
41 const size_t& num_loaded,
42 const std::string& item_type) {
44 "Unexpected number of " + item_type +
45 " while loading from foreign data source: expected " +
48 ". Please use the \"REFRESH FOREIGN TABLES\" command on the foreign table "
49 "if data source has been updated.");
60 "Refresh of foreign table created with \"APPEND\" update type failed as result set "
61 "of select statement "
62 "reduced in size: \"" +
63 select_statement +
"\""};
68 "Refresh of foreign table created with \"APPEND\" update type failed as file "
69 "reduced in size: \"" +
75 "Refresh of foreign table created with \"APPEND\" update type failed as "
77 file_path +
"\" was removed."};
82 const std::string& file_path) {
90 const std::string& message) {
91 std::string error_message{
"Unable to access file \"" + file_path +
"\". " + message};
97 "\" does not exist."};
101 const std::string& mime_type) {
103 "File \"" + file_path +
"\" has mime type \"" + mime_type +
104 "\", compressed file formats are not supported by S3 Foreign Tables."};
108 const std::string& ext_type) {
110 "File \"" + file_path +
"\" has extension type \"" + ext_type +
111 "\", compressed file formats are not supported by S3 Foreign Tables."};
void throw_file_access_error(const std::string &file_path, const std::string &message)
void throw_removed_row_in_file_error(const std::string &file_path)
void throw_file_not_found_error(const std::string &file_path)
void throw_s3_compressed_extension(const std::string &file_path, const std::string &ext_type)
ForeignStorageException(const std::string &error_message)
void throw_removed_file_error(const std::string &file_path)
void throw_number_of_columns_mismatch_error(size_t num_table_cols, size_t num_file_cols, const std::string &file_path)
RequestedFragmentIdOutOfBoundsException(const std::string &error_message)
void throw_s3_compressed_mime_type(const std::string &file_path, const std::string &mime_type)
void throw_unexpected_number_of_items(const size_t &num_expected, const size_t &num_loaded, const std::string &item_type)
void throw_removed_row_in_result_set_error(const std::string &select_statement)