2011-08-28 02:22:23 +00:00
|
|
|
#pragma once
|
2010-03-01 16:59:51 +00:00
|
|
|
|
|
|
|
|
|
|
|
namespace DB
|
|
|
|
{
|
|
|
|
|
|
|
|
namespace ErrorCodes
|
|
|
|
{
|
|
|
|
enum ErrorCodes
|
|
|
|
{
|
2013-02-21 10:40:18 +00:00
|
|
|
UNSUPPORTED_METHOD = 1,
|
2010-03-03 19:48:02 +00:00
|
|
|
UNSUPPORTED_PARAMETER,
|
|
|
|
UNEXPECTED_END_OF_FILE,
|
2012-12-06 09:45:09 +00:00
|
|
|
EXPECTED_END_OF_FILE,
|
2010-06-04 18:25:25 +00:00
|
|
|
CANNOT_READ_DATA_FROM_READ_BUFFER,
|
2010-03-03 19:48:02 +00:00
|
|
|
CANNOT_PARSE_TEXT,
|
2010-03-04 19:20:28 +00:00
|
|
|
INCORRECT_NUMBER_OF_COLUMNS,
|
|
|
|
THERE_IS_NO_COLUMN,
|
|
|
|
SIZES_OF_COLUMNS_DOESNT_MATCH,
|
|
|
|
NOT_FOUND_COLUMN_IN_BLOCK,
|
2010-03-05 15:29:17 +00:00
|
|
|
POSITION_OUT_OF_BOUND,
|
2010-03-12 18:25:35 +00:00
|
|
|
PARAMETER_OUT_OF_BOUND,
|
|
|
|
SIZES_OF_COLUMNS_IN_TUPLE_DOESNT_MATCH,
|
|
|
|
EMPTY_TUPLE,
|
2010-03-18 19:32:14 +00:00
|
|
|
DUPLICATE_COLUMN,
|
|
|
|
NO_SUCH_COLUMN_IN_TABLE,
|
2010-05-20 19:29:04 +00:00
|
|
|
DELIMITER_IN_STRING_LITERAL_DOESNT_MATCH,
|
|
|
|
CANNOT_INSERT_ELEMENT_INTO_CONSTANT_COLUMN,
|
|
|
|
SIZE_OF_ARRAY_DOESNT_MATCH_SIZE_OF_FIXEDARRAY_COLUMN,
|
2010-05-21 19:52:50 +00:00
|
|
|
NUMBER_OF_COLUMNS_DOESNT_MATCH,
|
|
|
|
CANNOT_READ_ALL_DATA_FROM_TAB_SEPARATED_INPUT,
|
|
|
|
CANNOT_PARSE_ALL_VALUE_FROM_TAB_SEPARATED_INPUT,
|
2010-05-28 19:13:55 +00:00
|
|
|
CANNOT_READ_FROM_ISTREAM,
|
|
|
|
CANNOT_WRITE_TO_OSTREAM,
|
|
|
|
CANNOT_PARSE_ESCAPE_SEQUENCE,
|
|
|
|
CANNOT_PARSE_QUOTED_STRING,
|
2010-06-01 13:35:09 +00:00
|
|
|
CANNOT_PARSE_INPUT_ASSERTION_FAILED,
|
|
|
|
CANNOT_PRINT_FLOAT_OR_DOUBLE_NUMBER,
|
|
|
|
CANNOT_PRINT_INTEGER,
|
2010-06-04 18:25:25 +00:00
|
|
|
CANNOT_READ_SIZE_OF_COMPRESSED_CHUNK,
|
|
|
|
CANNOT_READ_COMPRESSED_CHUNK,
|
|
|
|
ATTEMPT_TO_READ_AFTER_EOF,
|
|
|
|
CANNOT_READ_ALL_DATA,
|
2010-06-24 19:12:10 +00:00
|
|
|
TOO_MUCH_ARGUMENTS_FOR_FUNCTION,
|
|
|
|
TOO_LESS_ARGUMENTS_FOR_FUNCTION,
|
2014-01-28 13:02:37 +00:00
|
|
|
BAD_ARGUMENTS,
|
2010-06-25 19:55:19 +00:00
|
|
|
UNKNOWN_ELEMENT_IN_AST,
|
2011-05-27 18:47:00 +00:00
|
|
|
CANNOT_PARSE_DATE,
|
2011-06-24 20:18:09 +00:00
|
|
|
TOO_LARGE_SIZE_COMPRESSED,
|
|
|
|
CHECKSUM_DOESNT_MATCH,
|
2011-08-07 02:08:22 +00:00
|
|
|
CANNOT_PARSE_DATETIME,
|
2011-08-09 15:57:33 +00:00
|
|
|
NUMBER_OF_ARGUMENTS_DOESNT_MATCH,
|
|
|
|
ILLEGAL_TYPE_OF_ARGUMENT,
|
|
|
|
ILLEGAL_COLUMN,
|
|
|
|
ILLEGAL_NUMBER_OF_RESULT_COLUMNS,
|
2011-08-12 18:27:39 +00:00
|
|
|
UNKNOWN_FUNCTION,
|
|
|
|
UNKNOWN_IDENTIFIER,
|
|
|
|
NOT_IMPLEMENTED,
|
|
|
|
LOGICAL_ERROR,
|
2011-08-15 00:55:43 +00:00
|
|
|
UNKNOWN_TYPE,
|
2011-08-15 02:24:44 +00:00
|
|
|
EMPTY_LIST_OF_COLUMNS_QUERIED,
|
|
|
|
COLUMN_QUERIED_MORE_THAN_ONCE,
|
|
|
|
TYPE_MISMATCH,
|
2011-08-18 20:33:20 +00:00
|
|
|
STORAGE_DOESNT_ALLOW_PARAMETERS,
|
2012-05-22 19:32:56 +00:00
|
|
|
STORAGE_REQUIRES_PARAMETER,
|
2011-08-18 20:33:20 +00:00
|
|
|
UNKNOWN_STORAGE,
|
|
|
|
TABLE_ALREADY_EXISTS,
|
2011-08-19 18:31:14 +00:00
|
|
|
TABLE_METADATA_ALREADY_EXISTS,
|
2011-08-27 04:34:29 +00:00
|
|
|
ILLEGAL_TYPE_OF_COLUMN_FOR_FILTER,
|
2011-08-28 08:02:11 +00:00
|
|
|
UNKNOWN_TABLE,
|
|
|
|
ONLY_FILTER_COLUMN_IN_BLOCK,
|
|
|
|
SYNTAX_ERROR,
|
2011-09-19 01:42:16 +00:00
|
|
|
UNKNOWN_AGGREGATE_FUNCTION,
|
|
|
|
CANNOT_READ_AGGREGATE_FUNCTION_FROM_TEXT,
|
|
|
|
CANNOT_WRITE_AGGREGATE_FUNCTION_AS_TEXT,
|
2011-09-25 03:37:09 +00:00
|
|
|
NOT_A_COLUMN,
|
2011-09-26 07:25:22 +00:00
|
|
|
ILLEGAL_KEY_OF_AGGREGATION,
|
2011-09-26 12:50:50 +00:00
|
|
|
CANNOT_GET_SIZE_OF_FIELD,
|
2011-10-10 10:05:39 +00:00
|
|
|
ARGUMENT_OUT_OF_BOUND,
|
|
|
|
CANNOT_CONVERT_TYPE,
|
2011-10-17 17:30:36 +00:00
|
|
|
CANNOT_WRITE_AFTER_END_OF_BUFFER,
|
2011-10-16 03:05:15 +00:00
|
|
|
CANNOT_PARSE_NUMBER,
|
2011-10-24 12:10:59 +00:00
|
|
|
UNKNOWN_FORMAT,
|
|
|
|
CANNOT_READ_FROM_FILE_DESCRIPTOR,
|
|
|
|
CANNOT_WRITE_TO_FILE_DESCRIPTOR,
|
|
|
|
CANNOT_OPEN_FILE,
|
|
|
|
CANNOT_CLOSE_FILE,
|
2011-10-31 06:37:12 +00:00
|
|
|
UNKNOWN_TYPE_OF_QUERY,
|
|
|
|
INCORRECT_FILE_NAME,
|
2011-10-31 17:30:44 +00:00
|
|
|
INCORRECT_QUERY,
|
2011-11-05 23:31:19 +00:00
|
|
|
UNKNOWN_DATABASE,
|
|
|
|
DATABASE_ALREADY_EXISTS,
|
|
|
|
DIRECTORY_DOESNT_EXIST,
|
|
|
|
DIRECTORY_ALREADY_EXISTS,
|
2011-11-07 01:15:37 +00:00
|
|
|
FORMAT_IS_NOT_SUITABLE_FOR_INPUT,
|
2011-11-18 20:23:11 +00:00
|
|
|
RECEIVED_ERROR_FROM_REMOTE_IO_SERVER,
|
2011-12-28 20:01:41 +00:00
|
|
|
CANNOT_SEEK_THROUGH_FILE,
|
2011-12-30 17:57:02 +00:00
|
|
|
CANNOT_TRUNCATE_FILE,
|
2012-01-05 18:35:22 +00:00
|
|
|
UNKNOWN_COMPRESSION_METHOD,
|
2012-01-10 22:11:51 +00:00
|
|
|
EMPTY_LIST_OF_COLUMNS_PASSED,
|
|
|
|
SIZES_OF_MARKS_FILES_ARE_INCONSISTENT,
|
2012-02-27 06:28:20 +00:00
|
|
|
EMPTY_DATA_PASSED,
|
|
|
|
UNKNOWN_AGGREGATED_DATA_VARIANT,
|
|
|
|
CANNOT_MERGE_DIFFERENT_AGGREGATED_DATA_VARIANTS,
|
2012-03-09 15:46:52 +00:00
|
|
|
CANNOT_READ_FROM_SOCKET,
|
|
|
|
CANNOT_WRITE_TO_SOCKET,
|
2012-03-11 08:52:56 +00:00
|
|
|
CANNOT_READ_ALL_DATA_FROM_CHUNKED_INPUT,
|
|
|
|
CANNOT_WRITE_TO_EMPTY_BLOCK_OUTPUT_STREAM,
|
|
|
|
UNKNOWN_PACKET_FROM_CLIENT,
|
2012-03-25 03:47:13 +00:00
|
|
|
UNKNOWN_PACKET_FROM_SERVER,
|
2012-03-11 08:52:56 +00:00
|
|
|
UNEXPECTED_PACKET_FROM_CLIENT,
|
2012-03-25 03:47:13 +00:00
|
|
|
UNEXPECTED_PACKET_FROM_SERVER,
|
2012-03-11 08:52:56 +00:00
|
|
|
RECEIVED_DATA_FOR_WRONG_QUERY_ID,
|
|
|
|
TOO_SMALL_BUFFER_SIZE,
|
2012-03-26 02:48:08 +00:00
|
|
|
CANNOT_READ_HISTORY,
|
|
|
|
CANNOT_APPEND_HISTORY,
|
2012-04-14 11:45:27 +00:00
|
|
|
FILE_DOESNT_EXIST,
|
2012-05-08 11:19:00 +00:00
|
|
|
NO_DATA_TO_INSERT,
|
2012-05-09 08:16:09 +00:00
|
|
|
CANNOT_BLOCK_SIGNAL,
|
|
|
|
CANNOT_UNBLOCK_SIGNAL,
|
2012-11-10 02:21:39 +00:00
|
|
|
CANNOT_MANIPULATE_SIGSET,
|
2012-05-09 08:16:09 +00:00
|
|
|
CANNOT_WAIT_FOR_SIGNAL,
|
2012-07-12 19:49:22 +00:00
|
|
|
THERE_IS_NO_SESSION,
|
2012-07-15 23:13:08 +00:00
|
|
|
CANNOT_CLOCK_GETTIME,
|
2012-08-02 19:03:32 +00:00
|
|
|
UNKNOWN_SETTING,
|
2012-08-13 20:16:06 +00:00
|
|
|
THERE_IS_NO_DEFAULT_VALUE,
|
2012-08-16 17:02:31 +00:00
|
|
|
INCORRECT_DATA,
|
2012-08-17 19:53:11 +00:00
|
|
|
TABLE_METADATA_DOESNT_EXIST,
|
2012-08-20 19:21:04 +00:00
|
|
|
ENGINE_REQUIRED,
|
2012-08-23 18:05:31 +00:00
|
|
|
CANNOT_INSERT_VALUE_OF_DIFFERENT_SIZE_INTO_TUPLE,
|
2012-08-23 20:22:44 +00:00
|
|
|
UNKNOWN_SET_DATA_VARIANT,
|
2012-08-23 20:35:05 +00:00
|
|
|
INCOMPATIBLE_COLUMNS,
|
2012-08-24 19:42:03 +00:00
|
|
|
UNKNOWN_TYPE_OF_AST_NODE,
|
|
|
|
INCORRECT_ELEMENT_OF_SET,
|
2012-08-24 20:40:34 +00:00
|
|
|
INCORRECT_RESULT_OF_SCALAR_SUBQUERY,
|
2012-08-26 02:08:18 +00:00
|
|
|
CANNOT_GET_RETURN_TYPE,
|
|
|
|
ILLEGAL_INDEX,
|
2012-08-26 12:18:50 +00:00
|
|
|
TOO_LARGE_ARRAY_SIZE,
|
2012-08-27 05:13:14 +00:00
|
|
|
FUNCTION_IS_SPECIAL,
|
2012-08-29 18:49:54 +00:00
|
|
|
CANNOT_READ_ARRAY_FROM_TEXT,
|
2012-09-24 06:43:50 +00:00
|
|
|
TOO_LARGE_STRING_SIZE,
|
2012-09-27 18:27:05 +00:00
|
|
|
CANNOT_CREATE_TABLE_FROM_METADATA,
|
2012-10-29 02:58:52 +00:00
|
|
|
AGGREGATE_FUNCTION_DOESNT_ALLOW_PARAMETERS,
|
|
|
|
PARAMETERS_TO_AGGREGATE_FUNCTIONS_MUST_BE_LITERALS,
|
2012-11-02 19:10:43 +00:00
|
|
|
ZERO_ARRAY_OR_TUPLE_INDEX,
|
2012-11-02 20:13:41 +00:00
|
|
|
ALL_CONNECTION_TRIES_FAILED,
|
2012-11-06 17:04:38 +00:00
|
|
|
UNKNOWN_ELEMENT_IN_CONFIG,
|
|
|
|
EXCESSIVE_ELEMENT_IN_CONFIG,
|
|
|
|
NO_ELEMENTS_IN_CONFIG,
|
2012-11-30 00:52:45 +00:00
|
|
|
ALL_REQUESTED_COLUMNS_ARE_MISSING,
|
2012-12-12 14:25:55 +00:00
|
|
|
SAMPLING_NOT_SUPPORTED,
|
2012-12-14 13:32:07 +00:00
|
|
|
NOT_FOUND_NODE,
|
|
|
|
FOUND_MORE_THAN_ONE_NODE,
|
|
|
|
FIRST_DATE_IS_BIGGER_THAN_LAST_DATE,
|
|
|
|
UNKNOWN_OVERFLOW_MODE,
|
|
|
|
QUERY_SECTION_DOESNT_MAKE_SENSE,
|
|
|
|
NOT_FOUND_FUNCTION_ELEMENT_FOR_AGGREGATE,
|
|
|
|
NOT_FOUND_RELATION_ELEMENT_FOR_CONDITION,
|
|
|
|
NOT_FOUND_RHS_ELEMENT_FOR_CONDITION,
|
|
|
|
NO_ATTRIBUTES_LISTED,
|
|
|
|
INDEX_OF_COLUMN_IN_SORT_CLAUSE_IS_OUT_OF_RANGE,
|
|
|
|
UNKNOWN_DIRECTION_OF_SORTING,
|
2013-02-16 21:23:55 +00:00
|
|
|
ILLEGAL_DIVISION,
|
2012-12-20 11:18:54 +00:00
|
|
|
AGGREGATE_FUNCTION_NOT_APPLICABLE,
|
|
|
|
UNKNOWN_RELATION,
|
2012-12-21 19:48:47 +00:00
|
|
|
DICTIONARIES_WAS_NOT_LOADED,
|
2012-12-25 17:25:44 +00:00
|
|
|
ILLEGAL_OVERFLOW_MODE,
|
|
|
|
TOO_MUCH_ROWS,
|
|
|
|
TIMEOUT_EXCEEDED,
|
|
|
|
TOO_SLOW,
|
2012-12-25 20:36:35 +00:00
|
|
|
TOO_MUCH_COLUMNS,
|
|
|
|
TOO_DEEP_SUBQUERIES,
|
|
|
|
TOO_DEEP_PIPELINE,
|
|
|
|
READONLY,
|
2012-12-26 20:29:28 +00:00
|
|
|
TOO_MUCH_TEMPORARY_COLUMNS,
|
|
|
|
TOO_MUCH_TEMPORARY_NON_CONST_COLUMNS,
|
|
|
|
TOO_DEEP_AST,
|
|
|
|
TOO_BIG_AST,
|
2013-01-05 20:03:19 +00:00
|
|
|
BAD_TYPE_OF_FIELD,
|
|
|
|
BAD_GET,
|
2013-01-14 18:22:07 +00:00
|
|
|
BLOCKS_HAS_DIFFERENT_STRUCTURE,
|
2013-01-17 19:56:01 +00:00
|
|
|
CANNOT_CREATE_DIRECTORY,
|
2013-02-04 03:33:16 +00:00
|
|
|
CANNOT_ALLOCATE_MEMORY,
|
2013-02-06 14:20:18 +00:00
|
|
|
CYCLIC_ALIASES,
|
2013-02-07 13:03:19 +00:00
|
|
|
NEGATIVE_REFCOUNT,
|
|
|
|
CHUNK_NOT_FOUND,
|
|
|
|
DUPLICATE_CHUNK_NAME,
|
2013-02-11 17:30:09 +00:00
|
|
|
MULTIPLE_ALIASES_FOR_EXPRESSION,
|
|
|
|
MULTIPLE_EXPRESSIONS_FOR_ALIAS,
|
2013-02-17 19:54:32 +00:00
|
|
|
THERE_IS_NO_PROFILE,
|
2013-04-23 11:08:41 +00:00
|
|
|
ILLEGAL_FINAL,
|
2013-11-28 13:16:46 +00:00
|
|
|
ILLEGAL_PREWHERE,
|
2013-05-24 10:49:19 +00:00
|
|
|
UNEXPECTED_EXPRESSION,
|
|
|
|
ILLEGAL_AGGREGATION,
|
2013-05-20 20:06:44 +00:00
|
|
|
UNSUPPORTED_MYISAM_BLOCK_TYPE,
|
2013-05-28 16:56:05 +00:00
|
|
|
UNSUPPORTED_COLLATION_LOCALE,
|
|
|
|
COLLATION_COMPARISON_FAILED,
|
2013-05-28 11:54:37 +00:00
|
|
|
UNKNOWN_ACTION,
|
2013-06-17 07:01:31 +00:00
|
|
|
TABLE_MUST_NOT_BE_CREATED_MANUALLY,
|
2013-06-20 12:27:33 +00:00
|
|
|
SIZES_OF_ARRAYS_DOESNT_MATCH,
|
2013-06-20 12:12:27 +00:00
|
|
|
SET_SIZE_LIMIT_EXCEEDED,
|
2013-08-10 07:46:45 +00:00
|
|
|
UNKNOWN_USER,
|
|
|
|
WRONG_PASSWORD,
|
|
|
|
REQUIRED_PASSWORD,
|
|
|
|
IP_ADDRESS_NOT_ALLOWED,
|
|
|
|
UNKNOWN_ADDRESS_PATTERN_TYPE,
|
2013-08-10 09:04:45 +00:00
|
|
|
SERVER_REVISION_IS_TOO_OLD,
|
2013-08-11 00:48:28 +00:00
|
|
|
DNS_ERROR,
|
2013-08-12 00:36:18 +00:00
|
|
|
UNKNOWN_QUOTA,
|
|
|
|
QUOTA_DOESNT_ALLOW_KEYS,
|
|
|
|
QUOTA_EXPIRED,
|
2013-09-03 20:21:28 +00:00
|
|
|
TOO_MUCH_SIMULTANEOUS_QUERIES,
|
2013-09-15 01:10:16 +00:00
|
|
|
NO_FREE_CONNECTION,
|
|
|
|
CANNOT_FSYNC,
|
2013-10-11 07:41:13 +00:00
|
|
|
NESTED_TYPE_TOO_DEEP,
|
2013-10-17 13:32:32 +00:00
|
|
|
ALIAS_REQUIRED,
|
|
|
|
AMBIGUOUS_IDENTIFIER,
|
2013-10-21 11:33:25 +00:00
|
|
|
EMPTY_NESTED_TABLE,
|
2013-10-20 06:04:51 +00:00
|
|
|
SOCKET_TIMEOUT,
|
|
|
|
NETWORK_ERROR,
|
2013-10-26 03:53:51 +00:00
|
|
|
EMPTY_QUERY,
|
2013-12-11 11:51:08 +00:00
|
|
|
UNKNOWN_LOAD_BALANCING,
|
2014-02-18 09:02:35 +00:00
|
|
|
UNKNOWN_TOTALS_MODE,
|
2013-12-13 16:20:06 +00:00
|
|
|
CANNOT_STATVFS,
|
2014-01-13 11:29:24 +00:00
|
|
|
NOT_AN_AGGREGATE,
|
2014-03-02 19:36:53 +00:00
|
|
|
QUERY_WITH_SAME_ID_IS_ALREADY_RUNNING,
|
2014-03-02 19:52:55 +00:00
|
|
|
CLIENT_HAS_CONNECTED_TO_WRONG_PORT,
|
2014-03-20 10:59:45 +00:00
|
|
|
TABLE_IS_DROPPED,
|
|
|
|
DATABASE_NOT_EMPTY,
|
2014-03-21 13:42:14 +00:00
|
|
|
DUPLICATE_INTERSERVER_IO_ENDPOINT,
|
|
|
|
NO_SUCH_INTERSERVER_IO_ENDPOINT,
|
2014-03-21 19:17:59 +00:00
|
|
|
ADDING_REPLICA_TO_NON_EMPTY_TABLE,
|
|
|
|
UNEXPECTED_AST_STRUCTURE,
|
2014-03-22 14:44:44 +00:00
|
|
|
REPLICA_IS_ALREADY_ACTIVE,
|
|
|
|
NO_ZOOKEEPER,
|
2014-03-27 11:29:40 +00:00
|
|
|
NO_FILE_IN_DATA_PART,
|
|
|
|
UNEXPECTED_FILE_IN_DATA_PART,
|
|
|
|
BAD_SIZE_OF_FILE_IN_DATA_PART,
|
2014-04-04 02:27:01 +00:00
|
|
|
QUERY_IS_TOO_LARGE,
|
2014-04-02 07:59:43 +00:00
|
|
|
NOT_FOUND_EXPECTED_DATA_PART,
|
|
|
|
TOO_MANY_UNEXPECTED_DATA_PARTS,
|
|
|
|
NO_SUCH_DATA_PART,
|
2014-04-02 13:45:39 +00:00
|
|
|
BAD_DATA_PART_NAME,
|
2014-04-03 11:48:28 +00:00
|
|
|
NO_REPLICA_HAS_PART,
|
|
|
|
DUPLICATE_DATA_PART,
|
2014-04-04 13:27:47 +00:00
|
|
|
ABORTED,
|
2014-04-14 10:18:23 +00:00
|
|
|
NO_REPLICA_NAME_GIVEN,
|
2014-04-18 09:55:21 +00:00
|
|
|
FORMAT_VERSION_TOO_OLD,
|
2014-04-29 00:25:12 +00:00
|
|
|
CANNOT_MUNMAP,
|
|
|
|
CANNOT_MREMAP,
|
2014-05-03 22:57:43 +00:00
|
|
|
MEMORY_LIMIT_EXCEEDED,
|
2014-05-13 11:24:04 +00:00
|
|
|
TABLE_IS_READ_ONLY,
|
2014-05-14 17:51:37 +00:00
|
|
|
NOT_ENOUGH_SPACE,
|
2011-11-28 05:51:33 +00:00
|
|
|
|
|
|
|
POCO_EXCEPTION = 1000,
|
|
|
|
STD_EXCEPTION,
|
|
|
|
UNKNOWN_EXCEPTION,
|
2010-03-01 16:59:51 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|