forked from pingcap/tidb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
errors.toml
1553 lines (1242 loc) · 24.5 KB
/
errors.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
# AUTOGENERATED BY github.com/pingcap/tiup/components/errdoc/errdoc-gen
# YOU CAN CHANGE THE 'description'/'workaround' FIELDS IF THEM ARE IMPROPER.
["admin:8003"]
error = '''
TiDB admin check table failed.
'''
["admin:8223"]
error = '''
data isn't equal
'''
["admin:8224"]
error = '''
DDL Job:%v not found
'''
["admin:8225"]
error = '''
This job:%v is finished, so can't be cancelled
'''
["admin:8226"]
error = '''
This job:%v is almost finished, can't be cancelled now
'''
["autoid:1075"]
error = '''
Incorrect table definition; there can be only one auto column and it must be defined as a key
'''
["autoid:1467"]
error = '''
Failed to read auto-increment value from storage engine
'''
["autoid:8058"]
error = '''
Invalid allocator type
'''
["autoid:8059"]
error = '''
Failed to read auto-random value from storage engine
'''
["ddl:1025"]
error = '''
Error on rename of '%-.210s' to '%-.210s' (errno: %d - %s)
'''
["ddl:1048"]
error = '''
Column '%-.192s' cannot be null
'''
["ddl:1054"]
error = '''
Unknown column '%-.192s' in '%-.192s'
'''
["ddl:1059"]
error = '''
Identifier name '%-.100s' is too long
'''
["ddl:1061"]
error = '''
Duplicate key name '%-.192s'
'''
["ddl:1067"]
error = '''
Invalid default value for '%-.192s'
'''
["ddl:1090"]
error = '''
You can't delete all columns with ALTER TABLE; use DROP TABLE instead
'''
["ddl:1091"]
error = '''
Can't DROP '%-.192s'; check that column/key exists
'''
["ddl:1102"]
error = '''
Incorrect database name '%-.100s'
'''
["ddl:1103"]
error = '''
Incorrect table name '%-.100s'
'''
["ddl:1111"]
error = '''
Invalid use of group function
'''
["ddl:1113"]
error = '''
A table must have at least 1 column
'''
["ddl:1115"]
error = '''
Unknown character set: '%-.64s'
'''
["ddl:1166"]
error = '''
Incorrect column name '%-.100s'
'''
["ddl:1171"]
error = '''
All parts of a PRIMARY KEY must be NOT NULL; if you need NULL in a key, use UNIQUE instead
'''
["ddl:1177"]
error = '''
Can't open table
'''
["ddl:1214"]
error = '''
The used table type doesn't support FULLTEXT indexes
'''
["ddl:1248"]
error = '''
Every derived table must have its own alias
'''
["ddl:1253"]
error = '''
COLLATION '%s' is not valid for CHARACTER SET '%s'
'''
["ddl:1264"]
error = '''
Out of range value for column '%s' at row %d
'''
["ddl:1265"]
error = '''
Data truncated for column '%s' at row %d
'''
["ddl:1273"]
error = '''
Unsupported collation when new collation is enabled: '%-.64s'
'''
["ddl:1280"]
error = '''
Incorrect index name '%-.100s'
'''
["ddl:1292"]
error = '''
Truncated incorrect %-.64s value: '%-.128s'
'''
["ddl:1294"]
error = '''
Invalid ON UPDATE clause for '%-.192s' column
'''
["ddl:1302"]
error = '''
Conflicting declarations: 'CHARACTER SET %s' and 'CHARACTER SET %s'
'''
["ddl:1347"]
error = '''
'%-.192s.%-.192s' is not %s
'''
["ddl:1350"]
error = '''
View's SELECT contains a '%s' clause
'''
["ddl:1353"]
error = '''
View's SELECT and view's field list have different column counts
'''
["ddl:1481"]
error = '''
MAXVALUE can only be used in last partition definition
'''
["ddl:1488"]
error = '''
Field in list of fields for partition function not found in table
'''
["ddl:1491"]
error = '''
The %-.192s function returns the wrong type
'''
["ddl:1493"]
error = '''
VALUES LESS THAN value must be strictly increasing for each partition
'''
["ddl:1495"]
error = '''
Multiple definition of same constant in list partitioning
'''
["ddl:1499"]
error = '''
Too many partitions (including subpartitions) were defined
'''
["ddl:1503"]
error = '''
A %-.192s must include all columns in the table's partitioning function
'''
["ddl:1505"]
error = '''
Partition management on a not partitioned table is not possible
'''
["ddl:1507"]
error = '''
Error in list of partitions to %-.64s
'''
["ddl:1508"]
error = '''
Cannot remove all partitions, use DROP TABLE instead
'''
["ddl:1509"]
error = '''
COALESCE PARTITION can only be used on HASH/KEY partitions
'''
["ddl:1517"]
error = '''
Duplicate partition name %-.192s
'''
["ddl:1564"]
error = '''
This partition function is not allowed
'''
["ddl:1654"]
error = '''
Partition column values of incorrect type
'''
["ddl:1659"]
error = '''
Field '%-.192s' is of a not allowed type for this type of partitioning
'''
["ddl:1731"]
error = '''
Non matching attribute '%-.64s' between partition and table
'''
["ddl:1732"]
error = '''
Table to exchange with partition is partitioned: '%-.64s'
'''
["ddl:1736"]
error = '''
Tables have different definitions
'''
["ddl:1737"]
error = '''
Found a row that does not match the partition
'''
["ddl:1740"]
error = '''
Table to exchange with partition has foreign key references: '%-.64s'
'''
["ddl:1846"]
error = '''
%s is not supported. Reason: %s. Try %s.
'''
["ddl:3102"]
error = '''
Expression of generated column '%s' contains a disallowed function.
'''
["ddl:3106"]
error = '''
'%s' is not supported for generated columns.
'''
["ddl:3109"]
error = '''
Generated column '%s' cannot refer to auto-increment column.
'''
["ddl:3505"]
error = '''
Too long enumeration/set value for column %s.
'''
["ddl:3522"]
error = '''
A primary key index cannot be invisible
'''
["ddl:3754"]
error = '''
Expression index '%s' cannot refer to an auto-increment column
'''
["ddl:3756"]
error = '''
The primary key cannot be an expression index
'''
["ddl:3758"]
error = '''
Expression of expression index '%s' contains a disallowed function
'''
["ddl:3762"]
error = '''
Expression index on a column is not supported. Consider using a regular index instead
'''
["ddl:3764"]
error = '''
Expression of generated column '%s' cannot refer to a row value
'''
["ddl:3800"]
error = '''
Expression of expression index '%s' cannot refer to a row value
'''
["ddl:4135"]
error = '''
Sequence '%-.64s.%-.64s' has run out
'''
["ddl:4136"]
error = '''
Sequence '%-.64s.%-.64s' values are conflicting
'''
["ddl:4137"]
error = '''
Sequence '%-.64s.%-.64s' access error
'''
["ddl:4138"]
error = '''
'%-.64s.%-.64s' is not a SEQUENCE
'''
["ddl:4139"]
error = '''
Unknown SEQUENCE: '%-.300s'
'''
["ddl:8200"]
error = '''
Unsupported partition by range columns
'''
["ddl:8210"]
error = '''
Invalid %!s(MISSING) state: %!v(MISSING)
'''
["ddl:8215"]
error = '''
Failed to repair table: %s
'''
["ddl:8216"]
error = '''
Invalid auto random: %s
'''
["ddl:8227"]
error = '''
Unsupported sequence table-option %s
'''
["ddl:8228"]
error = '''
Unsupported sequence default value for column type '%s'
'''
["ddl:8230"]
error = '''
Unsupported using sequence as default value in add column '%s'
'''
["ddl:8231"]
error = '''
%s is not supported
'''
["ddl:8232"]
error = '''
CREATE/ALTER table with union option is not supported
'''
["ddl:8233"]
error = '''
CREATE/ALTER table with insert method option is not supported
'''
["ddl:8234"]
error = '''
Invalid placement policy '%s': %s
'''
["domain:8027"]
error = '''
Information schema is out of date: schema failed to update in 1 lease, please make sure TiDB can connect to TiKV
'''
["domain:8028"]
error = '''
Information schema is changed during the execution of the statement(for example, table definition may be updated by other DDL ran in parallel). If you see this error often, try increasing `tidb_max_delta_schema_count`. [try again later]
'''
["domain:9009"]
error = '''
Prometheus address is not set in PD and etcd
'''
["executor:1044"]
error = '''
Access denied for user '%-.48s'@'%-.64s' to database '%-.192s'
'''
["executor:1049"]
error = '''
Unknown database '%-.192s'
'''
["executor:1133"]
error = '''
Can't find any matching row in the user table
'''
["executor:1142"]
error = '''
%-.128s command denied to user '%-.48s'@'%-.64s' for table '%-.64s'
'''
["executor:1213"]
error = '''
Deadlock found when trying to get lock; try restarting transaction
'''
["executor:1317"]
error = '''
Query execution was interrupted
'''
["executor:1347"]
error = '''
'%-.192s.%-.192s' is not %s
'''
["executor:1390"]
error = '''
Prepared statement contains too many placeholders
'''
["executor:1396"]
error = '''
Operation %s failed for %.256s
'''
["executor:1410"]
error = '''
You are not allowed to create a user with GRANT
'''
["executor:1568"]
error = '''
Transaction characteristics can't be changed while a transaction is in progress
'''
["executor:1827"]
error = '''
The password hash doesn't have the expected format. Check if the correct password algorithm is being used with the PASSWORD() function.
'''
["executor:8003"]
error = '''
TiDB admin check table failed.
'''
["executor:8114"]
error = '''
Unknown plan
'''
["executor:8115"]
error = '''
Can not prepare multiple statements
'''
["executor:8116"]
error = '''
Can not prepare DDL statements with parameters
'''
["executor:8117"]
error = '''
Result is empty
'''
["executor:8118"]
error = '''
Failed to build executor
'''
["executor:8119"]
error = '''
Batch insert failed, please clean the table and try again.
'''
["executor:8120"]
error = '''
Can not get start ts
'''
["executor:8124"]
error = '''
Backup failed: %s
'''
["executor:8125"]
error = '''
Restore failed: %s
'''
["executor:8126"]
error = '''
Import failed: %s
'''
["executor:8127"]
error = '''
Export failed: %s
'''
["expression:1139"]
error = '''
Got error '%-.64s' from regexp
'''
["expression:1235"]
error = '''
function %s has only noop implementation in tidb now, use tidb_enable_noop_functions to enable these functions
'''
["expression:1241"]
error = '''
Operand should contain %d column(s)
'''
["expression:1260"]
error = '''
Some rows were cut by GROUPCONCAT(%s)
'''
["expression:1267"]
error = '''
Illegal mix of collations (%s,%s) and (%s,%s) for operation '%s'
'''
["expression:1270"]
error = '''
Illegal mix of collations (%s,%s), (%s,%s), (%s,%s) for operation '%s'
'''
["expression:1271"]
error = '''
Illegal mix of collations for operation '%s'
'''
["expression:1365"]
error = '''
Division by 0
'''
["expression:1582"]
error = '''
Incorrect parameter count in the call to native function '%-.192s'
'''
["expression:3020"]
error = '''
Invalid argument for logarithm
'''
["expression:3064"]
error = '''
Incorrect type for argument %s in function %s.
'''
["json:3069"]
error = '''
Invalid JSON data provided to function %s: %s
'''
["json:3140"]
error = '''
Invalid JSON text: %-.192s
'''
["json:3143"]
error = '''
Invalid JSON path expression %s.
'''
["json:3149"]
error = '''
In this situation, path expressions may not contain the * and ** tokens.
'''
["json:3150"]
error = '''
The second argument can only be either 'one' or 'all'.
'''
["json:3158"]
error = '''
JSON documents may not contain NULL member names.
'''
["json:3165"]
error = '''
A path expression is not a path to a cell in an array.
'''
["json:8066"]
error = '''
JSON_OBJECTAGG: unsupported second argument type %v
'''
["kv:1062"]
error = '''
Duplicate entry '%-.64s' for key '%-.192s'
'''
["kv:8004"]
error = '''
Transaction is too large, size: %d
'''
["kv:8005"]
error = '''
Write conflict, txnStartTS %d is stale [try again later]
'''
["kv:8021"]
error = '''
Error: key not exist
'''
["kv:8022"]
error = '''
Error: KV error safe to retry %s [try again later]
'''
["kv:8023"]
error = '''
can not set nil value
'''
["kv:8024"]
error = '''
invalid transaction
'''
["kv:8025"]
error = '''
entry too large, the max entry size is %d, the size of data is %d
'''
["kv:8026"]
error = '''
not implemented
'''
["kv:9007"]
error = '''
Write conflict, txnStartTS=%d, conflictStartTS=%d, conflictCommitTS=%d, key=%s [try again later]
'''
["meta:1007"]
error = '''
Can't create database '%-.192s'; database exists
'''
["meta:1049"]
error = '''
Unknown database '%-.192s'
'''
["meta:1050"]
error = '''
Table '%-.192s' already exists
'''
["meta:1146"]
error = '''
Table '%-.192s.%-.192s' doesn't exist
'''
["meta:8235"]
error = '''
DDL reorg element does not exist
'''
["planner:1044"]
error = '''
Access denied for user '%-.48s'@'%-.64s' to database '%-.192s'
'''
["planner:1045"]
error = '''
Access denied for user '%-.48s'@'%-.64s'
'''
["planner:1046"]
error = '''
No database selected
'''
["planner:1051"]
error = '''
Unknown table '%-.100s'
'''
["planner:1052"]
error = '''
Column '%-.192s' in %-.192s is ambiguous
'''
["planner:1054"]
error = '''
Unknown column '%-.192s' in '%-.192s'
'''
["planner:1055"]
error = '''
Expression #%d of %s is not in GROUP BY clause and contains nonaggregated column '%s' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by
'''
["planner:1056"]
error = '''
Can't group on '%-.192s'
'''
["planner:1060"]
error = '''
Duplicate column name '%-.192s'
'''
["planner:1066"]
error = '''
Not unique table/alias: '%-.192s'
'''
["planner:1094"]
error = '''
Unknown thread id: %d
'''
["planner:1105"]
error = '''
Unknown error
'''
["planner:1109"]
error = '''
Unknown table '%-.192s' in %-.32s
'''
["planner:1111"]
error = '''
Invalid use of group function
'''
["planner:1136"]
error = '''
Column count doesn't match value count at row %d
'''
["planner:1142"]
error = '''
%-.128s command denied to user '%-.48s'@'%-.64s' for table '%-.64s'
'''
["planner:1146"]
error = '''
Table '%-.192s.%-.192s' doesn't exist
'''
["planner:1176"]
error = '''
Key '%-.192s' doesn't exist in table '%-.192s'
'''
["planner:1210"]
error = '''
Incorrect arguments to %s
'''
["planner:1221"]
error = '''
Incorrect usage of %s and %s
'''
["planner:1222"]
error = '''
The used SELECT statements have a different number of columns
'''
["planner:1227"]
error = '''
Access denied; you need (at least one of) the %-.128s privilege(s) for this operation
'''
["planner:1235"]
error = '''
This version of TiDB doesn't yet support '%s'
'''
["planner:1241"]
error = '''
Operand should contain %d column(s)
'''
["planner:1247"]
error = '''
Reference '%-.64s' not supported (%s)
'''
["planner:1250"]
error = '''
Table '%s' from one of the %ss cannot be used in %s
'''
["planner:1288"]
error = '''
The target table %-.100s of the %s is not updatable
'''
["planner:1345"]
error = '''
EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
'''
["planner:1356"]
error = '''
View '%-.192s.%-.192s' references invalid table(s) or column(s) or function(s) or definer/invoker of view lack rights to use them
'''
["planner:1462"]
error = '''
`%-.192s`.`%-.192s` contains view recursion
'''
["planner:1747"]
error = '''
PARTITION () clause on non partitioned table
'''
["planner:1791"]
error = '''
Unknown EXPLAIN format name: '%s'
'''
["planner:1815"]
error = '''
Internal : %s
'''
["planner:3105"]
error = '''
The value specified for generated column '%s' in table '%s' is not allowed.
'''
["planner:3106"]
error = '''
'%s' is not supported for generated columns.
'''
["planner:3126"]
error = '''
Hint %s is ignored as conflicting/duplicated.
'''
["planner:3128"]
error = '''
Unresolved name '%s' for %s hint
'''
["planner:3579"]
error = '''
Window name '%s' is not defined.
'''
["planner:3580"]
error = '''
There is a circularity in the window dependency graph.
'''
["planner:3581"]
error = '''
A window which depends on another cannot define partitioning.
'''
["planner:3582"]
error = '''
Window '%s' has a frame definition, so cannot be referenced by another window.
'''
["planner:3583"]
error = '''
Window '%s' cannot inherit '%s' since both contain an ORDER BY clause.
'''
["planner:3584"]
error = '''
Window '%s': frame start cannot be UNBOUNDED FOLLOWING.
'''
["planner:3585"]
error = '''
Window '%s': frame end cannot be UNBOUNDED PRECEDING.
'''
["planner:3586"]
error = '''
Window '%s': frame start or end is negative, NULL or of non-integral type
'''
["planner:3587"]
error = '''
Window '%s' with RANGE N PRECEDING/FOLLOWING frame requires exactly one ORDER BY expression, of numeric or temporal type
'''
["planner:3588"]
error = '''
Window '%s' with RANGE frame has ORDER BY expression of datetime type. Only INTERVAL bound value allowed.
'''
["planner:3589"]
error = '''
Window '%s' with RANGE frame has ORDER BY expression of numeric type, INTERVAL bound value not allowed.
'''
["planner:3590"]
error = '''
Window '%s' has a non-constant frame bound.
'''
["planner:3591"]
error = '''
Window '%s' is defined twice.
'''
["planner:3593"]
error = '''
You cannot use the window function '%s' in this context.'
'''
["planner:3594"]
error = '''
You cannot use the alias '%s' of an expression containing a window function in this context.'
'''
["planner:3596"]
error = '''