Skip to content

Commit a3ce940

Browse files
committed
Update error codes
1 parent 32ce64b commit a3ce940

File tree

1 file changed

+62
-13
lines changed

1 file changed

+62
-13
lines changed

aiochsa/error_codes.py

Lines changed: 62 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Source:
2-
# https://github.com/yandex/ClickHouse/blob/master/dbms/src/Common/ErrorCodes.cpp
2+
# https://github.com/ClickHouse/ClickHouse/blob/master/src/Common/ErrorCodes.cpp
33

44
UNSUPPORTED_METHOD = 1
55
UNSUPPORTED_PARAMETER = 2
@@ -129,7 +129,7 @@
129129
FUNCTION_IS_SPECIAL = 129
130130
CANNOT_READ_ARRAY_FROM_TEXT = 130
131131
TOO_LARGE_STRING_SIZE = 131
132-
CANNOT_CREATE_TABLE_FROM_METADATA = 132
132+
CANNOT_CREATE_TABLE_FROM_METADATA = 132 # removed
133133
AGGREGATE_FUNCTION_DOESNT_ALLOW_PARAMETERS = 133
134134
PARAMETERS_TO_AGGREGATE_FUNCTIONS_MUST_BE_LITERALS = 134
135135
ZERO_ARRAY_OR_TUPLE_INDEX = 135
@@ -146,7 +146,7 @@
146146
NOT_FOUND_FUNCTION_ELEMENT_FOR_AGGREGATE = 147
147147
NOT_FOUND_RELATION_ELEMENT_FOR_CONDITION = 148
148148
NOT_FOUND_RHS_ELEMENT_FOR_CONDITION = 149
149-
NO_ATTRIBUTES_LISTED = 150
149+
EMPTY_LIST_OF_ATTRIBUTES_PASSED = 150
150150
INDEX_OF_COLUMN_IN_SORT_CLAUSE_IS_OUT_OF_RANGE = 151
151151
UNKNOWN_DIRECTION_OF_SORTING = 152
152152
ILLEGAL_DIVISION = 153
@@ -269,7 +269,7 @@
269269
AIO_READ_ERROR = 274
270270
AIO_WRITE_ERROR = 275
271271
INDEX_NOT_USED = 277
272-
LEADERSHIP_LOST = 278
272+
LEADERSHIP_LOST = 278 # removed
273273
ALL_CONNECTION_TRIES_FAILED = 279
274274
NO_AVAILABLE_DATA = 280
275275
DICTIONARY_IS_EMPTY = 281
@@ -283,7 +283,7 @@
283283
REPLICA_IS_NOT_IN_QUORUM = 289
284284
LIMIT_EXCEEDED = 290
285285
DATABASE_ACCESS_DENIED = 291
286-
LEADERSHIP_CHANGED = 292
286+
LEADERSHIP_CHANGED = 292 # removed
287287
MONGODB_CANNOT_AUTHENTICATE = 293
288288
INVALID_BLOCK_EXTRA_INFO = 294
289289
RECEIVED_EMPTY_DATA = 295
@@ -330,10 +330,10 @@
330330
CURRENT_WRITE_BUFFER_IS_EXHAUSTED = 362
331331
CANNOT_CREATE_IO_BUFFER = 363
332332
RECEIVED_ERROR_TOO_MANY_REQUESTS = 364
333-
OUTPUT_IS_NOT_SORTED = 365
333+
OUTPUT_IS_NOT_SORTED = 365 # removed
334334
SIZES_OF_NESTED_COLUMNS_ARE_INCONSISTENT = 366
335335
TOO_MANY_FETCHES = 367
336-
BAD_CAST = 368
336+
BAD_CAST = 368 # removed
337337
ALL_REPLICAS_ARE_STALE = 369
338338
DATA_TYPE_CANNOT_BE_USED_IN_TABLES = 370
339339
INCONSISTENT_CLUSTER_DEFINITION = 371
@@ -352,7 +352,7 @@
352352
PART_IS_TEMPORARILY_LOCKED = 384
353353
MULTIPLE_STREAMS_REQUIRED = 385
354354
NO_COMMON_TYPE = 386
355-
EXTERNAL_LOADABLE_ALREADY_EXISTS = 387
355+
DICTIONARY_ALREADY_EXISTS = 387
356356
CANNOT_ASSIGN_OPTIMIZE = 388
357357
INSERT_WAS_DEDUPLICATED = 389
358358
CANNOT_GET_CREATE_TABLE_QUERY = 390
@@ -379,19 +379,19 @@
379379
PTHREAD_ERROR = 411
380380
NETLINK_ERROR = 412
381381
CANNOT_SET_SIGNAL_HANDLER = 413
382-
CANNOT_READLINE = 414
382+
CANNOT_READLINE = 414 # removed
383383
ALL_REPLICAS_LOST = 415
384384
REPLICA_STATUS_CHANGED = 416
385385
EXPECTED_ALL_OR_ANY = 417
386-
UNKNOWN_JOIN_STRICTNESS = 418
386+
UNKNOWN_JOIN = 418
387387
MULTIPLE_ASSIGNMENTS_TO_COLUMN = 419
388388
CANNOT_UPDATE_COLUMN = 420
389389
CANNOT_ADD_DIFFERENT_AGGREGATE_STATES = 421
390390
UNSUPPORTED_URI_SCHEME = 422
391391
CANNOT_GETTIMEOFDAY = 423
392392
CANNOT_LINK = 424
393393
SYSTEM_ERROR = 425
394-
NULL_POINTER_DEREFERENCE = 426
394+
NULL_POINTER_DEREFERENCE = 426 # removed
395395
CANNOT_COMPILE_REGEXP = 427
396396
UNKNOWN_LOG_LEVEL = 428
397397
FAILED_TO_GETPWUID = 429
@@ -436,7 +436,7 @@
436436
CANNOT_PTHREAD_ATTR = 468
437437
VIOLATED_CONSTRAINT = 469
438438
QUERY_IS_NOT_SUPPORTED_IN_LIVE_VIEW = 470
439-
SETTINGS_ARE_NOT_SUPPORTED = 471
439+
INVALID_SETTING_VALUE = 471
440440
READONLY_SETTING = 472
441441
DEADLOCK_AVOIDED = 473
442442
INVALID_TEMPLATE_FORMAT = 474
@@ -448,12 +448,61 @@
448448
UNKNOWN_PROTOCOL = 480
449449
PATH_ACCESS_DENIED = 481
450450
DICTIONARY_ACCESS_DENIED = 482
451+
TOO_MANY_REDIRECTS = 483
452+
INTERNAL_REDIS_ERROR = 484
453+
SCALAR_ALREADY_EXISTS = 485
454+
CANNOT_GET_CREATE_DICTIONARY_QUERY = 487
455+
UNKNOWN_DICTIONARY = 488
456+
INCORRECT_DICTIONARY_DEFINITION = 489
457+
CANNOT_FORMAT_DATETIME = 490
458+
UNACCEPTABLE_URL = 491
459+
ACCESS_ENTITY_NOT_FOUND = 492
460+
ACCESS_ENTITY_ALREADY_EXISTS = 493
461+
ACCESS_ENTITY_FOUND_DUPLICATES = 494
462+
ACCESS_STORAGE_READONLY = 495
463+
QUOTA_REQUIRES_CLIENT_KEY = 496
464+
ACCESS_DENIED = 497
465+
LIMIT_BY_WITH_TIES_IS_NOT_SUPPORTED = 498
466+
S3_ERROR = 499
467+
CANNOT_CREATE_DATABASE = 501
468+
CANNOT_SIGQUEUE = 502
469+
AGGREGATE_FUNCTION_THROW = 503
470+
FILE_ALREADY_EXISTS = 504
471+
CANNOT_DELETE_DIRECTORY = 505
472+
UNEXPECTED_ERROR_CODE = 506
473+
UNABLE_TO_SKIP_UNUSED_SHARDS = 507
474+
UNKNOWN_ACCESS_TYPE = 508
475+
INVALID_GRANT = 509
476+
CACHE_DICTIONARY_UPDATE_FAIL = 510
477+
UNKNOWN_ROLE = 511
478+
SET_NON_GRANTED_ROLE = 512
479+
UNKNOWN_PART_TYPE = 513
480+
ACCESS_STORAGE_FOR_INSERTION_NOT_FOUND = 514
481+
INCORRECT_ACCESS_ENTITY_DEFINITION = 515
482+
AUTHENTICATION_FAILED = 516
483+
CANNOT_ASSIGN_ALTER = 517
484+
CANNOT_COMMIT_OFFSET = 518
485+
NO_REMOTE_SHARD_AVAILABLE = 519
486+
CANNOT_DETACH_DICTIONARY_AS_TABLE = 520
487+
ATOMIC_RENAME_FAIL = 521
488+
OPENCL_ERROR = 522
489+
UNKNOWN_ROW_POLICY = 523
490+
ALTER_OF_COLUMN_IS_FORBIDDEN = 524
491+
INCORRECT_DISK_INDEX = 525
492+
UNKNOWN_VOLUME_TYPE = 526
493+
NO_SUITABLE_FUNCTION_IMPLEMENTATION = 527
494+
CASSANDRA_INTERNAL_ERROR = 528
495+
NOT_A_LEADER = 529
496+
CANNOT_CONNECT_RABBITMQ = 530
497+
CANNOT_FSTAT = 531
498+
LDAP_ERROR = 532
451499

452500
KEEPER_EXCEPTION = 999
453501
POCO_EXCEPTION = 1000
454502
STD_EXCEPTION = 1001
455503
UNKNOWN_EXCEPTION = 1002
456-
METRIKA_OTHER_ERROR = 1003
504+
METRIKA_OTHER_ERROR = 1003 # removed
457505

458506
CONDITIONAL_TREE_PARENT_NOT_FOUND = 2001
459507
ILLEGAL_PROJECTION_MANIPULATOR = 2002
508+
UNRECOGNIZED_ARGUMENTS = 2003

0 commit comments

Comments
 (0)