ClickHouse/dbms/src/Core/ErrorCodes.cpp

315 lines
12 KiB
C++
Raw Normal View History

namespace DB
{
namespace ErrorCodes
{
const int UNSUPPORTED_METHOD = 1;
const int UNSUPPORTED_PARAMETER = 2;
const int UNEXPECTED_END_OF_FILE = 3;
const int EXPECTED_END_OF_FILE = 4;
const int CANNOT_PARSE_TEXT = 6;
const int INCORRECT_NUMBER_OF_COLUMNS = 7;
const int THERE_IS_NO_COLUMN = 8;
const int SIZES_OF_COLUMNS_DOESNT_MATCH = 9;
const int NOT_FOUND_COLUMN_IN_BLOCK = 10;
const int POSITION_OUT_OF_BOUND = 11;
const int PARAMETER_OUT_OF_BOUND = 12;
const int SIZES_OF_COLUMNS_IN_TUPLE_DOESNT_MATCH = 13;
const int DUPLICATE_COLUMN = 15;
const int NO_SUCH_COLUMN_IN_TABLE = 16;
const int DELIMITER_IN_STRING_LITERAL_DOESNT_MATCH = 17;
const int CANNOT_INSERT_ELEMENT_INTO_CONSTANT_COLUMN = 18;
const int SIZE_OF_ARRAY_DOESNT_MATCH_SIZE_OF_FIXEDARRAY_COLUMN = 19;
const int NUMBER_OF_COLUMNS_DOESNT_MATCH = 20;
const int CANNOT_READ_ALL_DATA_FROM_TAB_SEPARATED_INPUT = 21;
const int CANNOT_PARSE_ALL_VALUE_FROM_TAB_SEPARATED_INPUT = 22;
const int CANNOT_READ_FROM_ISTREAM = 23;
const int CANNOT_WRITE_TO_OSTREAM = 24;
const int CANNOT_PARSE_ESCAPE_SEQUENCE = 25;
const int CANNOT_PARSE_QUOTED_STRING = 26;
const int CANNOT_PARSE_INPUT_ASSERTION_FAILED = 27;
const int CANNOT_PRINT_FLOAT_OR_DOUBLE_NUMBER = 28;
const int CANNOT_PRINT_INTEGER = 29;
const int CANNOT_READ_SIZE_OF_COMPRESSED_CHUNK = 30;
const int CANNOT_READ_COMPRESSED_CHUNK = 31;
const int ATTEMPT_TO_READ_AFTER_EOF = 32;
const int CANNOT_READ_ALL_DATA = 33;
const int TOO_MUCH_ARGUMENTS_FOR_FUNCTION = 34;
const int TOO_LESS_ARGUMENTS_FOR_FUNCTION = 35;
const int BAD_ARGUMENTS = 36;
const int UNKNOWN_ELEMENT_IN_AST = 37;
const int CANNOT_PARSE_DATE = 38;
const int TOO_LARGE_SIZE_COMPRESSED = 39;
const int CHECKSUM_DOESNT_MATCH = 40;
const int CANNOT_PARSE_DATETIME = 41;
const int NUMBER_OF_ARGUMENTS_DOESNT_MATCH = 42;
const int ILLEGAL_TYPE_OF_ARGUMENT = 43;
const int ILLEGAL_COLUMN = 44;
const int ILLEGAL_NUMBER_OF_RESULT_COLUMNS = 45;
const int UNKNOWN_FUNCTION = 46;
const int UNKNOWN_IDENTIFIER = 47;
const int NOT_IMPLEMENTED = 48;
const int LOGICAL_ERROR = 49;
const int UNKNOWN_TYPE = 50;
const int EMPTY_LIST_OF_COLUMNS_QUERIED = 51;
const int COLUMN_QUERIED_MORE_THAN_ONCE = 52;
const int TYPE_MISMATCH = 53;
const int STORAGE_DOESNT_ALLOW_PARAMETERS = 54;
const int STORAGE_REQUIRES_PARAMETER = 55;
const int UNKNOWN_STORAGE = 56;
const int TABLE_ALREADY_EXISTS = 57;
const int TABLE_METADATA_ALREADY_EXISTS = 58;
const int ILLEGAL_TYPE_OF_COLUMN_FOR_FILTER = 59;
const int UNKNOWN_TABLE = 60;
const int ONLY_FILTER_COLUMN_IN_BLOCK = 61;
const int SYNTAX_ERROR = 62;
const int UNKNOWN_AGGREGATE_FUNCTION = 63;
const int CANNOT_READ_AGGREGATE_FUNCTION_FROM_TEXT = 64;
const int CANNOT_WRITE_AGGREGATE_FUNCTION_AS_TEXT = 65;
const int NOT_A_COLUMN = 66;
const int ILLEGAL_KEY_OF_AGGREGATION = 67;
const int CANNOT_GET_SIZE_OF_FIELD = 68;
const int ARGUMENT_OUT_OF_BOUND = 69;
const int CANNOT_CONVERT_TYPE = 70;
const int CANNOT_WRITE_AFTER_END_OF_BUFFER = 71;
const int CANNOT_PARSE_NUMBER = 72;
const int UNKNOWN_FORMAT = 73;
const int CANNOT_READ_FROM_FILE_DESCRIPTOR = 74;
const int CANNOT_WRITE_TO_FILE_DESCRIPTOR = 75;
const int CANNOT_OPEN_FILE = 76;
const int CANNOT_CLOSE_FILE = 77;
const int UNKNOWN_TYPE_OF_QUERY = 78;
const int INCORRECT_FILE_NAME = 79;
const int INCORRECT_QUERY = 80;
const int UNKNOWN_DATABASE = 81;
const int DATABASE_ALREADY_EXISTS = 82;
const int DIRECTORY_DOESNT_EXIST = 83;
const int DIRECTORY_ALREADY_EXISTS = 84;
const int FORMAT_IS_NOT_SUITABLE_FOR_INPUT = 85;
const int RECEIVED_ERROR_FROM_REMOTE_IO_SERVER = 86;
const int CANNOT_SEEK_THROUGH_FILE = 87;
const int CANNOT_TRUNCATE_FILE = 88;
const int UNKNOWN_COMPRESSION_METHOD = 89;
const int EMPTY_LIST_OF_COLUMNS_PASSED = 90;
const int SIZES_OF_MARKS_FILES_ARE_INCONSISTENT = 91;
const int EMPTY_DATA_PASSED = 92;
const int UNKNOWN_AGGREGATED_DATA_VARIANT = 93;
const int CANNOT_MERGE_DIFFERENT_AGGREGATED_DATA_VARIANTS = 94;
const int CANNOT_READ_FROM_SOCKET = 95;
const int CANNOT_WRITE_TO_SOCKET = 96;
const int CANNOT_READ_ALL_DATA_FROM_CHUNKED_INPUT = 97;
const int CANNOT_WRITE_TO_EMPTY_BLOCK_OUTPUT_STREAM = 98;
const int UNKNOWN_PACKET_FROM_CLIENT = 99;
const int UNKNOWN_PACKET_FROM_SERVER = 100;
const int UNEXPECTED_PACKET_FROM_CLIENT = 101;
const int UNEXPECTED_PACKET_FROM_SERVER = 102;
const int RECEIVED_DATA_FOR_WRONG_QUERY_ID = 103;
const int TOO_SMALL_BUFFER_SIZE = 104;
const int CANNOT_READ_HISTORY = 105;
const int CANNOT_APPEND_HISTORY = 106;
const int FILE_DOESNT_EXIST = 107;
const int NO_DATA_TO_INSERT = 108;
const int CANNOT_BLOCK_SIGNAL = 109;
const int CANNOT_UNBLOCK_SIGNAL = 110;
const int CANNOT_MANIPULATE_SIGSET = 111;
const int CANNOT_WAIT_FOR_SIGNAL = 112;
const int THERE_IS_NO_SESSION = 113;
const int CANNOT_CLOCK_GETTIME = 114;
const int UNKNOWN_SETTING = 115;
const int THERE_IS_NO_DEFAULT_VALUE = 116;
const int INCORRECT_DATA = 117;
const int TABLE_METADATA_DOESNT_EXIST = 118;
const int ENGINE_REQUIRED = 119;
const int CANNOT_INSERT_VALUE_OF_DIFFERENT_SIZE_INTO_TUPLE = 120;
const int UNKNOWN_SET_DATA_VARIANT = 121;
const int INCOMPATIBLE_COLUMNS = 122;
const int UNKNOWN_TYPE_OF_AST_NODE = 123;
const int INCORRECT_ELEMENT_OF_SET = 124;
const int INCORRECT_RESULT_OF_SCALAR_SUBQUERY = 125;
const int CANNOT_GET_RETURN_TYPE = 126;
const int ILLEGAL_INDEX = 127;
const int TOO_LARGE_ARRAY_SIZE = 128;
const int FUNCTION_IS_SPECIAL = 129;
const int CANNOT_READ_ARRAY_FROM_TEXT = 130;
const int TOO_LARGE_STRING_SIZE = 131;
const int CANNOT_CREATE_TABLE_FROM_METADATA = 132;
const int AGGREGATE_FUNCTION_DOESNT_ALLOW_PARAMETERS = 133;
const int PARAMETERS_TO_AGGREGATE_FUNCTIONS_MUST_BE_LITERALS = 134;
const int ZERO_ARRAY_OR_TUPLE_INDEX = 135;
const int UNKNOWN_ELEMENT_IN_CONFIG = 137;
const int EXCESSIVE_ELEMENT_IN_CONFIG = 138;
const int NO_ELEMENTS_IN_CONFIG = 139;
const int ALL_REQUESTED_COLUMNS_ARE_MISSING = 140;
const int SAMPLING_NOT_SUPPORTED = 141;
const int NOT_FOUND_NODE = 142;
const int FOUND_MORE_THAN_ONE_NODE = 143;
const int FIRST_DATE_IS_BIGGER_THAN_LAST_DATE = 144;
const int UNKNOWN_OVERFLOW_MODE = 145;
const int QUERY_SECTION_DOESNT_MAKE_SENSE = 146;
const int NOT_FOUND_FUNCTION_ELEMENT_FOR_AGGREGATE = 147;
const int NOT_FOUND_RELATION_ELEMENT_FOR_CONDITION = 148;
const int NOT_FOUND_RHS_ELEMENT_FOR_CONDITION = 149;
const int NO_ATTRIBUTES_LISTED = 150;
const int INDEX_OF_COLUMN_IN_SORT_CLAUSE_IS_OUT_OF_RANGE = 151;
const int UNKNOWN_DIRECTION_OF_SORTING = 152;
const int ILLEGAL_DIVISION = 153;
const int AGGREGATE_FUNCTION_NOT_APPLICABLE = 154;
const int UNKNOWN_RELATION = 155;
const int DICTIONARIES_WAS_NOT_LOADED = 156;
const int ILLEGAL_OVERFLOW_MODE = 157;
const int TOO_MUCH_ROWS = 158;
const int TIMEOUT_EXCEEDED = 159;
const int TOO_SLOW = 160;
const int TOO_MUCH_COLUMNS = 161;
const int TOO_DEEP_SUBQUERIES = 162;
const int TOO_DEEP_PIPELINE = 163;
const int READONLY = 164;
const int TOO_MUCH_TEMPORARY_COLUMNS = 165;
const int TOO_MUCH_TEMPORARY_NON_CONST_COLUMNS = 166;
const int TOO_DEEP_AST = 167;
const int TOO_BIG_AST = 168;
const int BAD_TYPE_OF_FIELD = 169;
const int BAD_GET = 170;
const int BLOCKS_HAS_DIFFERENT_STRUCTURE = 171;
const int CANNOT_CREATE_DIRECTORY = 172;
const int CANNOT_ALLOCATE_MEMORY = 173;
const int CYCLIC_ALIASES = 174;
const int CHUNK_NOT_FOUND = 176;
const int DUPLICATE_CHUNK_NAME = 177;
const int MULTIPLE_ALIASES_FOR_EXPRESSION = 178;
const int MULTIPLE_EXPRESSIONS_FOR_ALIAS = 179;
const int THERE_IS_NO_PROFILE = 180;
const int ILLEGAL_FINAL = 181;
const int ILLEGAL_PREWHERE = 182;
const int UNEXPECTED_EXPRESSION = 183;
const int ILLEGAL_AGGREGATION = 184;
const int UNSUPPORTED_MYISAM_BLOCK_TYPE = 185;
const int UNSUPPORTED_COLLATION_LOCALE = 186;
const int COLLATION_COMPARISON_FAILED = 187;
const int UNKNOWN_ACTION = 188;
const int TABLE_MUST_NOT_BE_CREATED_MANUALLY = 189;
const int SIZES_OF_ARRAYS_DOESNT_MATCH = 190;
const int SET_SIZE_LIMIT_EXCEEDED = 191;
const int UNKNOWN_USER = 192;
const int WRONG_PASSWORD = 193;
const int REQUIRED_PASSWORD = 194;
const int IP_ADDRESS_NOT_ALLOWED = 195;
const int UNKNOWN_ADDRESS_PATTERN_TYPE = 196;
const int SERVER_REVISION_IS_TOO_OLD = 197;
const int DNS_ERROR = 198;
const int UNKNOWN_QUOTA = 199;
const int QUOTA_DOESNT_ALLOW_KEYS = 200;
const int QUOTA_EXPIRED = 201;
const int TOO_MUCH_SIMULTANEOUS_QUERIES = 202;
const int NO_FREE_CONNECTION = 203;
const int CANNOT_FSYNC = 204;
const int NESTED_TYPE_TOO_DEEP = 205;
const int ALIAS_REQUIRED = 206;
const int AMBIGUOUS_IDENTIFIER = 207;
const int EMPTY_NESTED_TABLE = 208;
const int SOCKET_TIMEOUT = 209;
const int NETWORK_ERROR = 210;
const int EMPTY_QUERY = 211;
const int UNKNOWN_LOAD_BALANCING = 212;
const int UNKNOWN_TOTALS_MODE = 213;
const int CANNOT_STATVFS = 214;
const int NOT_AN_AGGREGATE = 215;
const int QUERY_WITH_SAME_ID_IS_ALREADY_RUNNING = 216;
const int CLIENT_HAS_CONNECTED_TO_WRONG_PORT = 217;
const int TABLE_IS_DROPPED = 218;
const int DATABASE_NOT_EMPTY = 219;
const int DUPLICATE_INTERSERVER_IO_ENDPOINT = 220;
const int NO_SUCH_INTERSERVER_IO_ENDPOINT = 221;
const int ADDING_REPLICA_TO_NON_EMPTY_TABLE = 222;
const int UNEXPECTED_AST_STRUCTURE = 223;
const int REPLICA_IS_ALREADY_ACTIVE = 224;
const int NO_ZOOKEEPER = 225;
const int NO_FILE_IN_DATA_PART = 226;
const int UNEXPECTED_FILE_IN_DATA_PART = 227;
const int BAD_SIZE_OF_FILE_IN_DATA_PART = 228;
const int QUERY_IS_TOO_LARGE = 229;
const int NOT_FOUND_EXPECTED_DATA_PART = 230;
const int TOO_MANY_UNEXPECTED_DATA_PARTS = 231;
const int NO_SUCH_DATA_PART = 232;
const int BAD_DATA_PART_NAME = 233;
const int NO_REPLICA_HAS_PART = 234;
const int DUPLICATE_DATA_PART = 235;
const int ABORTED = 236;
const int NO_REPLICA_NAME_GIVEN = 237;
const int FORMAT_VERSION_TOO_OLD = 238;
const int CANNOT_MUNMAP = 239;
const int CANNOT_MREMAP = 240;
const int MEMORY_LIMIT_EXCEEDED = 241;
const int TABLE_IS_READ_ONLY = 242;
const int NOT_ENOUGH_SPACE = 243;
const int UNEXPECTED_ZOOKEEPER_ERROR = 244;
const int INVALID_NESTED_NAME = 245;
const int CORRUPTED_DATA = 246;
const int INCORRECT_MARK = 247;
const int INVALID_PARTITION_NAME = 248;
const int NOT_ENOUGH_BLOCK_NUMBERS = 250;
const int NO_SUCH_REPLICA = 251;
const int TOO_MUCH_PARTS = 252;
const int REPLICA_IS_ALREADY_EXIST = 253;
const int NO_ACTIVE_REPLICAS = 254;
const int TOO_MUCH_RETRIES_TO_FETCH_PARTS = 255;
const int PARTITION_ALREADY_EXISTS = 256;
const int PARTITION_DOESNT_EXIST = 257;
const int UNION_ALL_RESULT_STRUCTURES_MISMATCH = 258;
const int UNION_ALL_COLUMN_ALIAS_MISMATCH = 259;
const int CLIENT_OUTPUT_FORMAT_SPECIFIED = 260;
const int UNKNOWN_BLOCK_INFO_FIELD = 261;
const int BAD_COLLATION = 262;
const int CANNOT_COMPILE_CODE = 263;
const int INCOMPATIBLE_TYPE_OF_JOIN = 264;
const int NO_AVAILABLE_REPLICA = 265;
const int MISMATCH_REPLICAS_DATA_SOURCES = 266;
const int STORAGE_DOESNT_SUPPORT_PARALLEL_REPLICAS = 267;
const int CPUID_ERROR = 268;
const int INFINITE_LOOP = 269;
const int CANNOT_COMPRESS = 270;
const int CANNOT_DECOMPRESS = 271;
const int AIO_SUBMIT_ERROR = 272;
const int AIO_COMPLETION_ERROR = 273;
const int AIO_READ_ERROR = 274;
const int AIO_WRITE_ERROR = 275;
const int INDEX_NOT_USED = 277;
const int LEADERSHIP_LOST = 278;
const int ALL_CONNECTION_TRIES_FAILED = 279;
const int NO_AVAILABLE_DATA = 280;
const int DICTIONARY_IS_EMPTY = 281;
const int INCORRECT_INDEX = 282;
const int UNKNOWN_DISTRIBUTED_PRODUCT_MODE = 283;
const int UNKNOWN_GLOBAL_SUBQUERIES_METHOD = 284;
const int TOO_LESS_LIVE_REPLICAS = 285;
const int UNSATISFIED_QUORUM_FOR_PREVIOUS_WRITE = 286;
const int UNKNOWN_FORMAT_VERSION = 287;
const int DISTRIBUTED_IN_JOIN_SUBQUERY_DENIED = 288;
const int REPLICA_IS_NOT_IN_QUORUM = 289;
const int LIMIT_EXCEEDED = 290;
const int DATABASE_ACCESS_DENIED = 291;
const int LEADERSHIP_CHANGED = 292;
const int MONGODB_INIT_FAILED = 293;
const int INVALID_BLOCK_EXTRA_INFO = 294;
const int RECEIVED_EMPTY_DATA = 295;
const int NO_REMOTE_SHARD_FOUND = 296;
const int SHARD_HAS_NO_CONNECTIONS = 297;
const int CANNOT_PIPE = 298;
const int CANNOT_FORK = 299;
const int CANNOT_DLSYM = 300;
const int CANNOT_CREATE_CHILD_PROCESS = 301;
const int CHILD_WAS_NOT_EXITED_NORMALLY = 302;
const int CANNOT_SELECT = 303;
const int CANNOT_WAITPID = 304;
const int TABLE_WAS_NOT_DROPPED = 305;
const int TOO_DEEP_RECURSION = 306;
const int TOO_MUCH_BYTES = 307;
const int KEEPER_EXCEPTION = 999;
const int POCO_EXCEPTION = 1000;
const int STD_EXCEPTION = 1001;
const int UNKNOWN_EXCEPTION = 1002;
}
}