-
Notifications
You must be signed in to change notification settings - Fork 28k
/
error-classes.json
1719 lines (1719 loc) · 51.3 KB
/
error-classes.json
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
{
"AMBIGUOUS_COLUMN_OR_FIELD" : {
"message" : [
"Column or field <name> is ambiguous and has <n> matches."
],
"sqlState" : "42000"
},
"ARITHMETIC_OVERFLOW" : {
"message" : [
"<message>.<alternative> If necessary set <config> to \"false\" to bypass this error."
],
"sqlState" : "22003"
},
"CANNOT_CAST_DATATYPE" : {
"message" : [
"Cannot cast <sourceType> to <targetType>."
],
"sqlState" : "22005"
},
"CANNOT_DECODE_URL" : {
"message" : [
"Cannot decode url : <url>."
],
"sqlState" : "42000"
},
"CANNOT_INFER_DATE" : {
"message" : [
"Cannot infer date in schema inference when LegacyTimeParserPolicy is \"LEGACY\". Legacy Date formatter does not support strict date format matching which is required to avoid inferring timestamps and other non-date entries to date."
],
"sqlState" : "22007"
},
"CANNOT_PARSE_DECIMAL" : {
"message" : [
"Cannot parse decimal"
],
"sqlState" : "42000"
},
"CANNOT_PARSE_TIMESTAMP" : {
"message" : [
"<message>. If necessary set <ansiConfig> to \"false\" to bypass this error."
],
"sqlState" : "42000"
},
"CANNOT_UP_CAST_DATATYPE" : {
"message" : [
"Cannot up cast <expression> from <sourceType> to <targetType>.",
"<details>"
]
},
"CAST_INVALID_INPUT" : {
"message" : [
"The value <expression> of the type <sourceType> cannot be cast to <targetType> because it is malformed. Correct the value as per the syntax, or change its target type. Use `try_cast` to tolerate malformed input and return NULL instead. If necessary set <ansiConfig> to \"false\" to bypass this error."
],
"sqlState" : "42000"
},
"CAST_OVERFLOW" : {
"message" : [
"The value <value> of the type <sourceType> cannot be cast to <targetType> due to an overflow. Use `try_cast` to tolerate overflow and return NULL instead. If necessary set <ansiConfig> to \"false\" to bypass this error."
],
"sqlState" : "22005"
},
"CAST_OVERFLOW_IN_TABLE_INSERT" : {
"message" : [
"Fail to insert a value of <sourceType> type into the <targetType> type column <columnName> due to an overflow. Use `try_cast` on the input value to tolerate overflow and return NULL instead."
],
"sqlState" : "22005"
},
"COLUMN_NOT_IN_GROUP_BY_CLAUSE" : {
"message" : [
"The expression <expression> is neither present in the group by, nor is it an aggregate function. Add to group by or wrap in `first()` (or `first_value()`) if you don't care which value you get."
],
"sqlState" : "42000"
},
"CONCURRENT_QUERY" : {
"message" : [
"Another instance of this query was just started by a concurrent session."
]
},
"CONVERSION_INVALID_INPUT" : {
"message" : [
"The value <str> (<fmt>) cannot be converted to <targetType> because it is malformed. Correct the value as per the syntax, or change its format. Use <suggestion> to tolerate malformed input and return NULL instead."
]
},
"DATATYPE_MISMATCH" : {
"message" : [
"Cannot resolve <sqlExpr> due to data type mismatch:"
],
"subClass" : {
"BINARY_OP_DIFF_TYPES" : {
"message" : [
"the left and right operands of the binary operator have incompatible types (<left> and <right>)."
]
},
"BINARY_OP_WRONG_TYPE" : {
"message" : [
"the binary operator requires the input type <inputType>, not <actualDataType>."
]
},
"CANNOT_CONVERT_TO_JSON" : {
"message" : [
"Unable to convert column <name> of type <type> to JSON."
]
},
"CAST_WITHOUT_SUGGESTION" : {
"message" : [
"cannot cast <srcType> to <targetType>."
]
},
"CAST_WITH_CONF_SUGGESTION" : {
"message" : [
"cannot cast <srcType> to <targetType> with ANSI mode on.",
"If you have to cast <srcType> to <targetType>, you can set <config> as <configVal>."
]
},
"CAST_WITH_FUN_SUGGESTION" : {
"message" : [
"cannot cast <srcType> to <targetType>.",
"To convert values from <srcType> to <targetType>, you can use the functions <functionNames> instead."
]
},
"FRAME_LESS_OFFSET_WITHOUT_FOLDABLE" : {
"message" : [
"Offset expression <offset> must be a literal."
]
},
"INVALID_JSON_MAP_KEY_TYPE" : {
"message" : [
"Input schema <schema> can only contain STRING as a key type for a MAP."
]
},
"INVALID_JSON_SCHEMA" : {
"message" : [
"Input schema <schema> must be a struct, an array or a map."
]
},
"NON_FOLDABLE_INPUT" : {
"message" : [
"the input should be a foldable string expression and not null; however, got <inputExpr>."
]
},
"NON_STRING_TYPE" : {
"message" : [
"all arguments must be strings."
]
},
"RANGE_FRAME_INVALID_TYPE" : {
"message" : [
"The data type <orderSpecType> used in the order specification does not match the data type <valueBoundaryType> which is used in the range frame."
]
},
"RANGE_FRAME_MULTI_ORDER" : {
"message" : [
"A range window frame with value boundaries cannot be used in a window specification with multiple order by expressions: <orderSpec>."
]
},
"RANGE_FRAME_WITHOUT_ORDER" : {
"message" : [
"A range window frame cannot be used in an unordered window specification."
]
},
"SPECIFIED_WINDOW_FRAME_DIFF_TYPES" : {
"message" : [
"Window frame bounds <lower> and <upper> do not have the same type: <lowerType> <> <upperType>."
]
},
"SPECIFIED_WINDOW_FRAME_INVALID_BOUND" : {
"message" : [
"Window frame upper bound <upper> does not follow the lower bound <lower>."
]
},
"SPECIFIED_WINDOW_FRAME_UNACCEPTED_TYPE" : {
"message" : [
"The data type of the <location> bound <exprType> does not match the expected data type <expectedType>."
]
},
"SPECIFIED_WINDOW_FRAME_WITHOUT_FOLDABLE" : {
"message" : [
"Window frame <location> bound <expression> is not a literal."
]
},
"SPECIFIED_WINDOW_FRAME_WRONG_COMPARISON" : {
"message" : [
"The lower bound of a window frame must be <comparison> to the upper bound."
]
},
"UNEXPECTED_INPUT_TYPE" : {
"message" : [
"parameter <paramIndex> requires <requiredType> type, however, <inputSql> is of <inputType> type."
]
},
"UNSPECIFIED_FRAME" : {
"message" : [
"Cannot use an UnspecifiedFrame. This should have been converted during analysis."
]
},
"WRONG_NUM_PARAMS" : {
"message" : [
"wrong number of parameters: <actualNum>."
]
}
}
},
"DATETIME_OVERFLOW" : {
"message" : [
"Datetime operation overflow: <operation>."
],
"sqlState" : "22008"
},
"DIVIDE_BY_ZERO" : {
"message" : [
"Division by zero. Use `try_divide` to tolerate divisor being 0 and return NULL instead. If necessary set <config> to \"false\" to bypass this error."
],
"sqlState" : "22012"
},
"DUPLICATE_KEY" : {
"message" : [
"Found duplicate keys <keyColumn>"
],
"sqlState" : "23000"
},
"ELEMENT_AT_BY_INDEX_ZERO" : {
"message" : [
"The index 0 is invalid. An index shall be either < 0 or > 0 (the first element has index 1)."
]
},
"FAILED_EXECUTE_UDF" : {
"message" : [
"Failed to execute user defined function (<functionName>: (<signature>) => <result>)"
]
},
"FAILED_RENAME_PATH" : {
"message" : [
"Failed to rename <sourcePath> to <targetPath> as destination already exists"
],
"sqlState" : "22023"
},
"FORBIDDEN_OPERATION" : {
"message" : [
"The operation <statement> is not allowed on the <objectType>: <objectName>"
]
},
"GRAPHITE_SINK_INVALID_PROTOCOL" : {
"message" : [
"Invalid Graphite protocol: <protocol>"
]
},
"GRAPHITE_SINK_PROPERTY_MISSING" : {
"message" : [
"Graphite sink requires '<property>' property."
]
},
"GROUPING_COLUMN_MISMATCH" : {
"message" : [
"Column of grouping (<grouping>) can't be found in grouping columns <groupingColumns>"
],
"sqlState" : "42000"
},
"GROUPING_ID_COLUMN_MISMATCH" : {
"message" : [
"Columns of grouping_id (<groupingIdColumn>) does not match grouping columns (<groupByColumns>)"
],
"sqlState" : "42000"
},
"GROUPING_SIZE_LIMIT_EXCEEDED" : {
"message" : [
"Grouping sets size cannot be greater than <maxSize>"
]
},
"GROUP_BY_POS_OUT_OF_RANGE" : {
"message" : [
"GROUP BY position <index> is not in select list (valid range is [1, <size>])."
],
"sqlState" : "42000"
},
"GROUP_BY_POS_REFERS_AGG_EXPR" : {
"message" : [
"GROUP BY <index> refers to an expression <aggExpr> that contains an aggregate function. Aggregate functions are not allowed in GROUP BY."
],
"sqlState" : "42000"
},
"INCOMPARABLE_PIVOT_COLUMN" : {
"message" : [
"Invalid pivot column <columnName>. Pivot columns must be comparable."
],
"sqlState" : "42000"
},
"INCOMPATIBLE_DATASOURCE_REGISTER" : {
"message" : [
"Detected an incompatible DataSourceRegister. Please remove the incompatible library from classpath or upgrade it. Error: <message>"
]
},
"INCONSISTENT_BEHAVIOR_CROSS_VERSION" : {
"message" : [
"You may get a different result due to the upgrading to"
],
"subClass" : {
"DATETIME_PATTERN_RECOGNITION" : {
"message" : [
"Spark >= 3.0:",
"Fail to recognize <pattern> pattern in the DateTimeFormatter. 1) You can set <config> to \"LEGACY\" to restore the behavior before Spark 3.0. 2) You can form a valid datetime pattern with the guide from https://spark.apache.org/docs/latest/sql-ref-datetime-pattern.html"
]
},
"FORMAT_DATETIME_BY_NEW_PARSER" : {
"message" : [
"Spark >= 3.0:",
"Fail to format it to <resultCandidate> in the new formatter. You can set <config> to \"LEGACY\" to restore the behavior before Spark 3.0, or set to \"CORRECTED\" and treat it as an invalid datetime string."
]
},
"PARSE_DATETIME_BY_NEW_PARSER" : {
"message" : [
"Spark >= 3.0:",
"Fail to parse <datetime> in the new parser. You can set <config> to \"LEGACY\" to restore the behavior before Spark 3.0, or set to \"CORRECTED\" and treat it as an invalid datetime string."
]
},
"READ_ANCIENT_DATETIME" : {
"message" : [
"Spark >= 3.0:",
"reading dates before 1582-10-15 or timestamps before 1900-01-01T00:00:00Z",
"from <format> files can be ambiguous, as the files may be written by",
"Spark 2.x or legacy versions of Hive, which uses a legacy hybrid calendar",
"that is different from Spark 3.0+'s Proleptic Gregorian calendar.",
"See more details in SPARK-31404. You can set the SQL config <config> or",
"the datasource option <option> to \"LEGACY\" to rebase the datetime values",
"w.r.t. the calendar difference during reading. To read the datetime values",
"as it is, set the SQL config or the datasource option to \"CORRECTED\"."
]
},
"WRITE_ANCIENT_DATETIME" : {
"message" : [
"Spark >= 3.0:",
"writing dates before 1582-10-15 or timestamps before 1900-01-01T00:00:00Z",
"into <format> files can be dangerous, as the files may be read by Spark 2.x",
"or legacy versions of Hive later, which uses a legacy hybrid calendar that",
"is different from Spark 3.0+'s Proleptic Gregorian calendar. See more",
"details in SPARK-31404. You can set <config> to \"LEGACY\" to rebase the",
"datetime values w.r.t. the calendar difference during writing, to get maximum",
"interoperability. Or set the config to \"CORRECTED\" to write the datetime",
"values as it is, if you are sure that the written files will only be read by",
"Spark 3.0+ or other systems that use Proleptic Gregorian calendar."
]
}
}
},
"INTERNAL_ERROR" : {
"message" : [
"<message>"
]
},
"INTERVAL_ARITHMETIC_OVERFLOW" : {
"message" : [
"<message>.<alternative>"
],
"sqlState" : "22003"
},
"INTERVAL_DIVIDED_BY_ZERO" : {
"message" : [
"Division by zero. Use `try_divide` to tolerate divisor being 0 and return NULL instead."
],
"sqlState" : "22012"
},
"INVALID_ARRAY_INDEX" : {
"message" : [
"The index <indexValue> is out of bounds. The array has <arraySize> elements. Use the SQL function `get()` to tolerate accessing element at invalid index and return NULL instead. If necessary set <ansiConfig> to \"false\" to bypass this error."
]
},
"INVALID_ARRAY_INDEX_IN_ELEMENT_AT" : {
"message" : [
"The index <indexValue> is out of bounds. The array has <arraySize> elements. Use `try_element_at` to tolerate accessing element at invalid index and return NULL instead. If necessary set <ansiConfig> to \"false\" to bypass this error."
]
},
"INVALID_BUCKET_FILE" : {
"message" : [
"Invalid bucket file: <path>"
]
},
"INVALID_COLUMN_OR_FIELD_DATA_TYPE" : {
"message" : [
"Column or field <name> is of type <type> while it's required to be <expectedType>."
],
"sqlState" : "42000"
},
"INVALID_FIELD_NAME" : {
"message" : [
"Field name <fieldName> is invalid: <path> is not a struct."
],
"sqlState" : "42000"
},
"INVALID_FRACTION_OF_SECOND" : {
"message" : [
"The fraction of sec must be zero. Valid range is [0, 60]. If necessary set <ansiConfig> to \"false\" to bypass this error."
],
"sqlState" : "22023"
},
"INVALID_JSON_SCHEMA_MAP_TYPE" : {
"message" : [
"Input schema <jsonSchema> can only contain STRING as a key type for a MAP."
]
},
"INVALID_PANDAS_UDF_PLACEMENT" : {
"message" : [
"The group aggregate pandas UDF <functionList> cannot be invoked together with as other, non-pandas aggregate functions."
]
},
"INVALID_PARAMETER_VALUE" : {
"message" : [
"The value of parameter(s) '<parameter>' in <functionName> is invalid: <expected>"
],
"sqlState" : "22023"
},
"INVALID_PROPERTY_KEY" : {
"message" : [
"<key> is an invalid property key, please use quotes, e.g. SET <key>=<value>"
]
},
"INVALID_PROPERTY_VALUE" : {
"message" : [
"<value> is an invalid property value, please use quotes, e.g. SET <key>=<value>"
]
},
"INVALID_SQL_SYNTAX" : {
"message" : [
"Invalid SQL syntax: <inputString>"
],
"sqlState" : "42000"
},
"INVALID_SUBQUERY_EXPRESSION" : {
"message" : [
"Invalid subquery:"
],
"subClass" : {
"SCALAR_SUBQUERY_RETURN_MORE_THAN_ONE_OUTPUT_COLUMN" : {
"message" : [
"Scalar subquery must return only one column, but got <number>"
]
}
}
},
"MISSING_STATIC_PARTITION_COLUMN" : {
"message" : [
"Unknown static partition column: <columnName>"
],
"sqlState" : "42000"
},
"MULTI_UDF_INTERFACE_ERROR" : {
"message" : [
"Not allowed to implement multiple UDF interfaces, UDF class <className>"
]
},
"MULTI_VALUE_SUBQUERY_ERROR" : {
"message" : [
"More than one row returned by a subquery used as an expression."
]
},
"NON_LITERAL_PIVOT_VALUES" : {
"message" : [
"Literal expressions required for pivot values, found <expression>."
],
"sqlState" : "42000"
},
"NON_PARTITION_COLUMN" : {
"message" : [
"PARTITION clause cannot contain the non-partition column: <columnName>."
],
"sqlState" : "42000"
},
"NO_HANDLER_FOR_UDAF" : {
"message" : [
"No handler for UDAF '<functionName>'. Use sparkSession.udf.register(...) instead."
]
},
"NO_UDF_INTERFACE_ERROR" : {
"message" : [
"UDF class <className> doesn't implement any UDF interface"
]
},
"NULLABLE_ARRAY_OR_MAP_ELEMENT" : {
"message" : [
"Array or map at <columnPath> contains nullable element while it's required to be non-nullable."
],
"sqlState" : "42000"
},
"NULLABLE_COLUMN_OR_FIELD" : {
"message" : [
"Column or field <name> is nullable while it's required to be non-nullable."
],
"sqlState" : "42000"
},
"NULL_COMPARISON_RESULT" : {
"message" : [
"The comparison result is null. If you want to handle null as 0 (equal), you can set \"spark.sql.legacy.allowNullComparisonResultInArraySort\" to \"true\"."
]
},
"NUMERIC_VALUE_OUT_OF_RANGE" : {
"message" : [
"<value> cannot be represented as Decimal(<precision>, <scale>). If necessary set <config> to \"false\" to bypass this error."
],
"sqlState" : "22005"
},
"PARSE_CHAR_MISSING_LENGTH" : {
"message" : [
"DataType <type> requires a length parameter, for example <type>(10). Please specify the length."
],
"sqlState" : "42000"
},
"PARSE_EMPTY_STATEMENT" : {
"message" : [
"Syntax error, unexpected empty statement"
],
"sqlState" : "42000"
},
"PARSE_SYNTAX_ERROR" : {
"message" : [
"Syntax error at or near <error><hint>"
],
"sqlState" : "42000"
},
"PIVOT_VALUE_DATA_TYPE_MISMATCH" : {
"message" : [
"Invalid pivot value '<value>': value data type <valueType> does not match pivot column data type <pivotType>"
],
"sqlState" : "42000"
},
"RENAME_SRC_PATH_NOT_FOUND" : {
"message" : [
"Failed to rename as <sourcePath> was not found"
],
"sqlState" : "22023"
},
"RESET_PERMISSION_TO_ORIGINAL" : {
"message" : [
"Failed to set original permission <permission> back to the created path: <path>. Exception: <message>"
]
},
"SECOND_FUNCTION_ARGUMENT_NOT_INTEGER" : {
"message" : [
"The second argument of <functionName> function needs to be an integer."
],
"sqlState" : "22023"
},
"TOO_MANY_ARRAY_ELEMENTS" : {
"message" : [
"Cannot initialize array with <numElements> elements of size <size>"
]
},
"UNABLE_TO_ACQUIRE_MEMORY" : {
"message" : [
"Unable to acquire <requestedBytes> bytes of memory, got <receivedBytes>"
]
},
"UNPIVOT_REQUIRES_VALUE_COLUMNS" : {
"message" : [
"At least one value column needs to be specified for UNPIVOT, all columns specified as ids"
],
"sqlState" : "42000"
},
"UNPIVOT_VALUE_DATA_TYPE_MISMATCH" : {
"message" : [
"Unpivot value columns must share a least common type, some types do not: [<types>]"
],
"sqlState" : "42000"
},
"UNRECOGNIZED_SQL_TYPE" : {
"message" : [
"Unrecognized SQL type <typeName>"
],
"sqlState" : "42000"
},
"UNRESOLVED_COLUMN" : {
"message" : [
"A column or function parameter with name <objectName> cannot be resolved."
],
"subClass" : {
"WITHOUT_SUGGESTION" : {
"message" : [
""
]
},
"WITH_SUGGESTION" : {
"message" : [
"Did you mean one of the following? [<proposal>]"
]
}
},
"sqlState" : "42000"
},
"UNRESOLVED_FIELD" : {
"message" : [
"A field with name <fieldName> cannot be resolved with the struct-type column <columnPath>."
],
"subClass" : {
"WITHOUT_SUGGESTION" : {
"message" : [
""
]
},
"WITH_SUGGESTION" : {
"message" : [
"Did you mean one of the following? [<proposal>]"
]
}
},
"sqlState" : "42000"
},
"UNRESOLVED_MAP_KEY" : {
"message" : [
"Cannot resolve column <objectName> as a map key. If the key is a string literal, please add single quotes around it."
],
"subClass" : {
"WITHOUT_SUGGESTION" : {
"message" : [
""
]
},
"WITH_SUGGESTION" : {
"message" : [
"Otherwise did you mean one of the following column(s)? [<proposal>]"
]
}
},
"sqlState" : "42000"
},
"UNSUPPORTED_DATATYPE" : {
"message" : [
"Unsupported data type <typeName>"
],
"sqlState" : "0A000"
},
"UNSUPPORTED_DESERIALIZER" : {
"message" : [
"The deserializer is not supported:"
],
"subClass" : {
"DATA_TYPE_MISMATCH" : {
"message" : [
"need a(n) <desiredType> field but got <dataType>."
]
},
"FIELD_NUMBER_MISMATCH" : {
"message" : [
"try to map <schema> to Tuple<ordinal>, but failed as the number of fields does not line up."
]
}
}
},
"UNSUPPORTED_FEATURE" : {
"message" : [
"The feature is not supported:"
],
"subClass" : {
"AES_MODE" : {
"message" : [
"AES-<mode> with the padding <padding> by the <functionName> function."
]
},
"CATALOG_OPERATION" : {
"message" : [
"Catalog <catalogName> does not support <operation>."
]
},
"DESC_TABLE_COLUMN_PARTITION" : {
"message" : [
"DESC TABLE COLUMN for a specific partition."
]
},
"DISTRIBUTE_BY" : {
"message" : [
"DISTRIBUTE BY clause."
]
},
"INSERT_PARTITION_SPEC_IF_NOT_EXISTS" : {
"message" : [
"INSERT INTO <tableName> IF NOT EXISTS in the PARTITION spec."
]
},
"JDBC_TRANSACTION" : {
"message" : [
"The target JDBC server does not support transactions and can only support ALTER TABLE with a single action."
]
},
"LATERAL_JOIN_OF_TYPE" : {
"message" : [
"<joinType> JOIN with LATERAL correlation."
]
},
"LATERAL_JOIN_USING" : {
"message" : [
"JOIN USING with LATERAL correlation."
]
},
"LATERAL_NATURAL_JOIN" : {
"message" : [
"NATURAL join with LATERAL correlation."
]
},
"LITERAL_TYPE" : {
"message" : [
"Literal for '<value>' of <type>."
]
},
"NATURAL_CROSS_JOIN" : {
"message" : [
"NATURAL CROSS JOIN."
]
},
"ORC_TYPE_CAST" : {
"message" : [
"Unable to convert <orcType> of Orc to data type <toType>."
]
},
"PANDAS_UDAF_IN_PIVOT" : {
"message" : [
"Pandas user defined aggregate function in the PIVOT clause."
]
},
"PIVOT_AFTER_GROUP_BY" : {
"message" : [
"PIVOT clause following a GROUP BY clause."
]
},
"PIVOT_TYPE" : {
"message" : [
"Pivoting by the value '<value>' of the column data type <type>."
]
},
"PYTHON_UDF_IN_ON_CLAUSE" : {
"message" : [
"Python UDF in the ON clause of a <joinType> JOIN."
]
},
"REPEATED_PIVOT" : {
"message" : [
"Repeated PIVOT operation."
]
},
"SET_NAMESPACE_PROPERTY" : {
"message" : [
"<property> is a reserved namespace property, <msg>."
]
},
"SET_PROPERTIES_AND_DBPROPERTIES" : {
"message" : [
"set PROPERTIES and DBPROPERTIES at the same time."
]
},
"SET_TABLE_PROPERTY" : {
"message" : [
"<property> is a reserved table property, <msg>."
]
},
"TABLE_OPERATION" : {
"message" : [
"Table <tableName> does not support <operation>. Please check the current catalog and namespace to make sure the qualified table name is expected, and also check the catalog implementation which is configured by \"spark.sql.catalog\"."
]
},
"TOO_MANY_TYPE_ARGUMENTS_FOR_UDF_CLASS" : {
"message" : [
"UDF class with <num> type arguments."
]
},
"TRANSFORM_DISTINCT_ALL" : {
"message" : [
"TRANSFORM with the DISTINCT/ALL clause."
]
},
"TRANSFORM_NON_HIVE" : {
"message" : [
"TRANSFORM with SERDE is only supported in hive mode."
]
}
},
"sqlState" : "0A000"
},
"UNSUPPORTED_GENERATOR" : {
"message" : [
"The generator is not supported:"
],
"subClass" : {
"MULTI_GENERATOR" : {
"message" : [
"only one generator allowed per <clause> clause but found <num>: <generators>"
]
},
"NESTED_IN_EXPRESSIONS" : {
"message" : [
"nested in expressions <expression>"
]
},
"NOT_GENERATOR" : {
"message" : [
"<functionName> is expected to be a generator. However, its class is <classCanonicalName>, which is not a generator."
]
},
"OUTSIDE_SELECT" : {
"message" : [
"outside the SELECT clause, found: <plan>"
]
}
}
},
"UNSUPPORTED_GROUPING_EXPRESSION" : {
"message" : [
"grouping()/grouping_id() can only be used with GroupingSets/Cube/Rollup"
]
},
"UNSUPPORTED_SAVE_MODE" : {
"message" : [
"The save mode <saveMode> is not supported for:"
],
"subClass" : {
"EXISTENT_PATH" : {
"message" : [
"an existent path."
]
},
"NON_EXISTENT_PATH" : {
"message" : [
"a non-existent path."
]
}
}
},
"UNSUPPORTED_SUBQUERY_EXPRESSION_CATEGORY" : {
"message" : [
"Unsupported subquery expression:"
],
"subClass" : {
"ACCESSING_OUTER_QUERY_COLUMN_IS_NOT_ALLOWED" : {
"message" : [
"Accessing outer query column is not allowed in this location<treeNode>"
]
},
"AGGREGATE_FUNCTION_MIXED_OUTER_LOCAL_REFERENCES" : {
"message" : [
"Found an aggregate function in a correlated predicate that has both outer and local references, which is not supported: <function>"
]
},
"CORRELATED_COLUMN_IS_NOT_ALLOWED_IN_PREDICATE" : {
"message" : [
"Correlated column is not allowed in predicate: <treeNode>"
]
},
"CORRELATED_COLUMN_NOT_FOUND" : {
"message" : [
"A correlated outer name reference within a subquery expression body was not found in the enclosing query: <value>"
]
},
"LATERAL_JOIN_CONDITION_NON_DETERMINISTIC" : {
"message" : [
"Lateral join condition cannot be non-deterministic: <condition>"
]
},
"MUST_AGGREGATE_CORRELATED_SCALAR_SUBQUERY" : {
"message" : [
"Correlated scalar subqueries in the GROUP BY clause must also be in the aggregate expressions<treeNode>"
]
},
"MUST_AGGREGATE_CORRELATED_SCALAR_SUBQUERY_OUTPUT" : {
"message" : [
"The output of a correlated scalar subquery must be aggregated"
]
},
"NON_CORRELATED_COLUMNS_IN_GROUP_BY" : {
"message" : [
"A GROUP BY clause in a scalar correlated subquery cannot contain non-correlated columns: <value>"
]
},
"NON_DETERMINISTIC_LATERAL_SUBQUERIES" : {
"message" : [
"Non-deterministic lateral subqueries are not supported when joining with outer relations that produce more than one row<treeNode>"
]
},
"UNSUPPORTED_CORRELATED_REFERENCE" : {
"message" : [
"Expressions referencing the outer query are not supported outside of WHERE/HAVING clauses<treeNode>"
]
},
"UNSUPPORTED_CORRELATED_SCALAR_SUBQUERY" : {
"message" : [
"Correlated scalar subqueries can only be used in filters, aggregations, projections, and UPDATE/MERGE/DELETE commands<treeNode>"
]
},
"UNSUPPORTED_IN_EXISTS_SUBQUERY" : {
"message" : [
"IN/EXISTS predicate subqueries can only be used in filters, joins, aggregations, window functions, projections, and UPDATE/MERGE/DELETE commands<treeNode>"
]
}
}
},
"UNTYPED_SCALA_UDF" : {
"message" : [
"You're using untyped Scala UDF, which does not have the input type information. Spark may blindly pass null to the Scala closure with primitive-type argument, and the closure will see the default value of the Java type for the null argument, e.g. `udf((x: Int) => x, IntegerType)`, the result is 0 for null input. To get rid of this error, you could:",
"1. use typed Scala UDF APIs(without return type parameter), e.g. `udf((x: Int) => x)`",
"2. use Java UDF APIs, e.g. `udf(new UDF1[String, Integer] { override def call(s: String): Integer = s.length() }, IntegerType)`, if input types are all non primitive",
"3. set \"spark.sql.legacy.allowUntypedScalaUDF\" to \"true\" and use this API with caution"
]
},
"_LEGACY_ERROR_TEMP_0001" : {
"message" : [
"Invalid InsertIntoContext"
]
},
"_LEGACY_ERROR_TEMP_0002" : {
"message" : [
"INSERT OVERWRITE DIRECTORY is not supported"
]
},
"_LEGACY_ERROR_TEMP_0003" : {
"message" : [
"Columns aliases are not allowed in <op>."
]
},
"_LEGACY_ERROR_TEMP_0004" : {
"message" : [
"Empty source for merge: you should specify a source table/subquery in merge."
]
},
"_LEGACY_ERROR_TEMP_0005" : {
"message" : [
"Unrecognized matched action: <matchedAction>."
]
},
"_LEGACY_ERROR_TEMP_0006" : {
"message" : [
"The number of inserted values cannot match the fields."
]
},
"_LEGACY_ERROR_TEMP_0007" : {
"message" : [
"Unrecognized not matched action: <notMatchedAction>."
]
},
"_LEGACY_ERROR_TEMP_0008" : {
"message" : [
"There must be at least one WHEN clause in a MERGE statement."
]
},
"_LEGACY_ERROR_TEMP_0009" : {
"message" : [
"When there are more than one MATCHED clauses in a MERGE statement, only the last MATCHED clause can omit the condition."
]
},
"_LEGACY_ERROR_TEMP_0010" : {
"message" : [
"When there are more than one NOT MATCHED clauses in a MERGE statement, only the last NOT MATCHED clause can omit the condition."
]
},
"_LEGACY_ERROR_TEMP_0011" : {
"message" : [
"Combination of ORDER BY/SORT BY/DISTRIBUTE BY/CLUSTER BY is not supported."
]
},
"_LEGACY_ERROR_TEMP_0012" : {
"message" : [
"DISTRIBUTE BY is not supported."
]
},
"_LEGACY_ERROR_TEMP_0013" : {
"message" : [
"LATERAL cannot be used together with PIVOT in FROM clause."
]
},
"_LEGACY_ERROR_TEMP_0014" : {
"message" : [
"TABLESAMPLE does not accept empty inputs."
]
},
"_LEGACY_ERROR_TEMP_0015" : {
"message" : [
"TABLESAMPLE(<msg>) is not supported."
]
},
"_LEGACY_ERROR_TEMP_0016" : {
"message" : [
"<bytesStr> is not a valid byte length literal, expected syntax: DIGIT+ ('B' | 'K' | 'M' | 'G')."
]
},
"_LEGACY_ERROR_TEMP_0017" : {
"message" : [
"Invalid escape string. Escape string must contain only one character."
]
},
"_LEGACY_ERROR_TEMP_0018" : {
"message" : [
"Function trim doesn't support with type <trimOption>. Please use BOTH, LEADING or TRAILING as trim type."
]
},
"_LEGACY_ERROR_TEMP_0019" : {
"message" : [
"Cannot parse the <valueType> value: <value>."
]
},
"_LEGACY_ERROR_TEMP_0020" : {
"message" : [
"Cannot parse the INTERVAL value: <value>."
]
},
"_LEGACY_ERROR_TEMP_0021" : {
"message" : [
"Literals of type '<valueType>' are currently not supported."
]