-
Notifications
You must be signed in to change notification settings - Fork 29.2k
Expand file tree
/
Copy patherror-conditions.json
More file actions
11163 lines (11163 loc) · 356 KB
/
error-conditions.json
File metadata and controls
11163 lines (11163 loc) · 356 KB
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
{
"ADD_DEFAULT_UNSUPPORTED" : {
"message" : [
"Failed to execute <statementType> command because DEFAULT values are not supported when adding new columns to previously existing target data source with table provider: \"<dataSource>\"."
],
"sqlState" : "42623"
},
"AGGREGATE_FUNCTION_WITH_NONDETERMINISTIC_EXPRESSION" : {
"message" : [
"Non-deterministic expression <sqlExpr> should not appear in the arguments of an aggregate function."
],
"sqlState" : "42845"
},
"AGGREGATE_OUT_OF_MEMORY" : {
"message" : [
"No enough memory for aggregation"
],
"sqlState" : "82001"
},
"ALL_PARAMETERS_MUST_BE_NAMED" : {
"message" : [
"Using name parameterized queries requires all parameters to be named. Parameters missing names: <exprs>."
],
"sqlState" : "07001"
},
"ALL_PARTITION_COLUMNS_NOT_ALLOWED" : {
"message" : [
"Cannot use all columns for partition columns."
],
"sqlState" : "KD005"
},
"ALTER_TABLE_COLUMN_DESCRIPTOR_DUPLICATE" : {
"message" : [
"ALTER TABLE <type> column <columnName> specifies descriptor \"<optionName>\" more than once, which is invalid."
],
"sqlState" : "42710"
},
"AMBIGUOUS_ALIAS_IN_NESTED_CTE" : {
"message" : [
"Name <name> is ambiguous in nested CTE.",
"Please set <config> to \"CORRECTED\" so that name defined in inner CTE takes precedence. If set it to \"LEGACY\", outer CTE definitions will take precedence.",
"See '<docroot>/sql-migration-guide.html#query-engine'."
],
"sqlState" : "42KD0"
},
"AMBIGUOUS_COLUMN_OR_FIELD" : {
"message" : [
"Column or field <name> is ambiguous and has <n> matches."
],
"sqlState" : "42702"
},
"AMBIGUOUS_COLUMN_REFERENCE" : {
"message" : [
"Column <name> is ambiguous. It's because you joined several DataFrame together, and some of these DataFrames are the same.",
"This column points to one of the DataFrames but Spark is unable to figure out which one.",
"Please alias the DataFrames with different names via `DataFrame.alias` before joining them,",
"and specify the column using qualified name, e.g. `df.alias(\"a\").join(df.alias(\"b\"), col(\"a.id\") > col(\"b.id\"))`."
],
"sqlState" : "42702"
},
"AMBIGUOUS_LATERAL_COLUMN_ALIAS" : {
"message" : [
"Lateral column alias <name> is ambiguous and has <n> matches."
],
"sqlState" : "42702"
},
"AMBIGUOUS_REFERENCE" : {
"message" : [
"Reference <name> is ambiguous, could be: <referenceNames>."
],
"sqlState" : "42704"
},
"AMBIGUOUS_REFERENCE_TO_FIELDS" : {
"message" : [
"Ambiguous reference to the field <field>. It appears <count> times in the schema."
],
"sqlState" : "42000"
},
"AMBIGUOUS_RESOLVER_EXTENSION" : {
"message" : [
"The single-pass analyzer cannot process this query or command because the extension choice for <operator> is ambiguous: <extensions>."
],
"sqlState" : "XX000"
},
"APPEND_ONCE_FROM_BATCH_QUERY" : {
"message" : [
"Creating a streaming table from a batch query prevents incremental loading of new data from source. Offending table: '<table>'.",
"Please use the stream() operator. Example usage:",
"CREATE STREAMING TABLE <target table name> ... AS SELECT ... FROM stream(<source table name>) ..."
],
"sqlState" : "42000"
},
"APPROX_TOP_K_MAX_ITEMS_TRACKED_EXCEEDS_LIMIT" : {
"message" : [
"The max items tracked `maxItemsTracked`(<maxItemsTracked>) of `approx_top_k` should be less than or equal to <limit>."
],
"sqlState" : "22023"
},
"APPROX_TOP_K_MAX_ITEMS_TRACKED_LESS_THAN_K" : {
"message" : [
"The max items tracked `maxItemsTracked`(<maxItemsTracked>) of `approx_top_k` should be greater than or equal to `k`(<k>)."
],
"sqlState" : "22023"
},
"APPROX_TOP_K_NON_POSITIVE_ARG" : {
"message" : [
"The value of <argName> in `approx_top_k` must be a positive integer, but got <argValue>."
],
"sqlState" : "22023"
},
"APPROX_TOP_K_NULL_ARG" : {
"message" : [
"The value of <argName> in `approx_top_k` cannot be NULL."
],
"sqlState" : "22004"
},
"APPROX_TOP_K_SKETCH_SIZE_NOT_MATCH" : {
"message" : [
"Combining approx_top_k sketches of different sizes is not allowed. Found sketches of size <size1> and <size2>."
],
"sqlState" : "42846"
},
"APPROX_TOP_K_SKETCH_TYPE_NOT_MATCH" : {
"message" : [
"Combining approx_top_k sketches of different types is not allowed. Found sketches of type <type1> and <type2>."
],
"sqlState" : "42846"
},
"ARITHMETIC_OVERFLOW" : {
"message" : [
"<message>.<alternative> If necessary set <config> to \"false\" to bypass this error."
],
"sqlState" : "22003"
},
"ARROW_TYPE_MISMATCH" : {
"message" : [
"Invalid schema from <operation>: expected <outputTypes>, got <actualDataTypes>."
],
"sqlState" : "42K0G"
},
"ARTIFACT_ALREADY_EXISTS" : {
"message" : [
"The artifact <normalizedRemoteRelativePath> already exists. Please choose a different name for the new artifact because it cannot be overwritten."
],
"sqlState" : "42713"
},
"ASSIGNMENT_ARITY_MISMATCH" : {
"message" : [
"The number of columns or variables assigned or aliased: <numTarget> does not match the number of source expressions: <numExpr>."
],
"sqlState" : "42802"
},
"AS_OF_JOIN" : {
"message" : [
"Invalid as-of join."
],
"subClass" : {
"TOLERANCE_IS_NON_NEGATIVE" : {
"message" : [
"The input argument `tolerance` must be non-negative."
]
},
"TOLERANCE_IS_UNFOLDABLE" : {
"message" : [
"The input argument `tolerance` must be a constant."
]
},
"UNSUPPORTED_DIRECTION" : {
"message" : [
"Unsupported as-of join direction '<direction>'. Supported as-of join direction include: <supported>."
]
}
},
"sqlState" : "42604"
},
"ATTEMPT_ANALYSIS_IN_PIPELINE_QUERY_FUNCTION" : {
"message" : [
"Operations that trigger DataFrame analysis or execution are not allowed in pipeline query functions. Move code outside of the pipeline query function."
],
"sqlState" : "0A000"
},
"AVRO_CANNOT_WRITE_NULL_FIELD" : {
"message" : [
"Cannot write null value for field <name> defined as non-null Avro data type <dataType>.",
"To allow null value for this field, specify its avro schema as a union type with \"null\" using `avroSchema` option."
],
"sqlState" : "22004"
},
"AVRO_INCOMPATIBLE_READ_TYPE" : {
"message" : [
"Cannot convert Avro <avroPath> to SQL <sqlPath> because the original encoded data type is <avroType>, however you're trying to read the field as <sqlType>, which would lead to an incorrect answer.",
"To allow reading this field, enable the SQL configuration: \"spark.sql.legacy.avro.allowIncompatibleSchema\"."
],
"sqlState" : "22KD3"
},
"AVRO_NOT_LOADED_SQL_FUNCTIONS_UNUSABLE" : {
"message" : [
"Cannot call the <functionName> SQL function because the Avro data source is not loaded.",
"Please restart your job or session with the 'spark-avro' package loaded, such as by using the --packages argument on the command line, and then retry your query or command again."
],
"sqlState" : "22KD3"
},
"BATCH_METADATA_NOT_FOUND" : {
"message" : [
"Unable to find batch <batchMetadataFile>."
],
"sqlState" : "42K03"
},
"BEAN_ENCODER_INTERFACE_NOT_SUPPORTED" : {
"message" : [
"Bean encoder does not support interface type <className>."
],
"sqlState" : "0A000"
},
"BINARY_ARITHMETIC_OVERFLOW" : {
"message" : [
"<value1> <symbol> <value2> caused overflow. Use <functionName> to ignore overflow problem and return NULL."
],
"sqlState" : "22003"
},
"CALL_ON_STREAMING_DATASET_UNSUPPORTED" : {
"message" : [
"The method <methodName> can not be called on streaming Dataset/DataFrame."
],
"sqlState" : "42KDE"
},
"CANNOT_ALTER_COLLATION_BUCKET_COLUMN" : {
"message" : [
"ALTER TABLE (ALTER|CHANGE) COLUMN cannot change collation of type/subtypes of bucket columns, but found the bucket column <columnName> in the table <tableName>."
],
"sqlState" : "428FR"
},
"CANNOT_ALTER_PARTITION_COLUMN" : {
"message" : [
"ALTER TABLE (ALTER|CHANGE) COLUMN is not supported for partition columns, but found the partition column <columnName> in the table <tableName>."
],
"sqlState" : "428FR"
},
"CANNOT_ASSIGN_EVENT_TIME_COLUMN_WITHOUT_WATERMARK" : {
"message" : [
"Watermark needs to be defined to reassign event time column. Failed to find watermark definition in the streaming query."
],
"sqlState" : "42611"
},
"CANNOT_CAST_DATATYPE" : {
"message" : [
"Cannot cast <sourceType> to <targetType>."
],
"sqlState" : "42846"
},
"CANNOT_CONVERT_PROTOBUF_FIELD_TYPE_TO_SQL_TYPE" : {
"message" : [
"Cannot convert Protobuf <protobufColumn> to SQL <sqlColumn> because schema is incompatible (protobufType = <protobufType>, sqlType = <sqlType>)."
],
"sqlState" : "42846"
},
"CANNOT_CONVERT_PROTOBUF_MESSAGE_TYPE_TO_SQL_TYPE" : {
"message" : [
"Unable to convert <protobufType> of Protobuf to SQL type <toType>."
],
"sqlState" : "42846"
},
"CANNOT_CONVERT_SQL_TYPE_TO_PROTOBUF_FIELD_TYPE" : {
"message" : [
"Cannot convert SQL <sqlColumn> to Protobuf <protobufColumn> because schema is incompatible (protobufType = <protobufType>, sqlType = <sqlType>)."
],
"sqlState" : "42846"
},
"CANNOT_CONVERT_SQL_VALUE_TO_PROTOBUF_ENUM_TYPE" : {
"message" : [
"Cannot convert SQL <sqlColumn> to Protobuf <protobufColumn> because <data> is not in defined values for enum: <enumString>."
],
"sqlState" : "42846"
},
"CANNOT_CREATE_DATA_SOURCE_TABLE" : {
"message" : [
"Failed to create data source table <tableName>:"
],
"subClass" : {
"EXTERNAL_METADATA_UNSUPPORTED" : {
"message" : [
"provider '<provider>' does not support external metadata but a schema is provided. Please remove the schema when creating the table."
]
}
},
"sqlState" : "42KDE"
},
"CANNOT_DECODE_URL" : {
"message" : [
"The provided URL cannot be decoded: <url>. Please ensure that the URL is properly formatted and try again."
],
"sqlState" : "22546"
},
"CANNOT_INVOKE_IN_TRANSFORMATIONS" : {
"message" : [
"Dataset transformations and actions can only be invoked by the driver, not inside of other Dataset transformations; for example, dataset1.map(x => dataset2.values.count() * x) is invalid because the values transformation and count action cannot be performed inside of the dataset1.map transformation. For more information, see SPARK-28702."
],
"sqlState" : "0A000"
},
"CANNOT_LOAD_CHECKPOINT_FILE_MANAGER" : {
"message" : [
"Error loading streaming checkpoint file manager for path=<path>."
],
"subClass" : {
"ERROR_LOADING_CLASS" : {
"message" : [
"Error instantiating streaming checkpoint file manager for path=<path> with className=<className>. msg=<msg>."
]
},
"UNCATEGORIZED" : {
"message" : [
""
]
}
},
"sqlState" : "58030"
},
"CANNOT_LOAD_FUNCTION_CLASS" : {
"message" : [
"Cannot load class <className> when registering the function <functionName>, please make sure it is on the classpath."
],
"sqlState" : "46103"
},
"CANNOT_LOAD_PROTOBUF_CLASS" : {
"message" : [
"Could not load Protobuf class with name <protobufClassName>. <explanation>."
],
"sqlState" : "42K03"
},
"CANNOT_LOAD_STATE_STORE" : {
"message" : [
"An error occurred during loading state."
],
"subClass" : {
"AUTO_SNAPSHOT_REPAIR_FAILED" : {
"message" : [
"Failed to load snapshot version <latestSnapshot> for state store <stateStoreId>. An attempt to auto repair using snapshot versions (<selectedSnapshots>) out of available snapshots (<eligibleSnapshots>) also failed."
]
},
"CANNOT_FIND_BASE_SNAPSHOT_CHECKPOINT" : {
"message" : [
"Cannot find a base snapshot checkpoint with lineage: <lineage>."
]
},
"CANNOT_READ_CHECKPOINT" : {
"message" : [
"Cannot read RocksDB checkpoint metadata. Expected <expectedVersion>, but found <actualVersion>."
]
},
"CANNOT_READ_DELTA_FILE_KEY_SIZE" : {
"message" : [
"Error reading delta file <fileToRead> of <clazz>: key size cannot be <keySize>."
]
},
"CANNOT_READ_DELTA_FILE_NOT_EXISTS" : {
"message" : [
"Error reading delta file <fileToRead> of <clazz>: <fileToRead> does not exist."
]
},
"CANNOT_READ_MISSING_SNAPSHOT_FILE" : {
"message" : [
"Error reading snapshot file <fileToRead> of <clazz>: <fileToRead> does not exist."
]
},
"CANNOT_READ_SNAPSHOT_FILE_KEY_SIZE" : {
"message" : [
"Error reading snapshot file <fileToRead> of <clazz>: key size cannot be <keySize>."
]
},
"CANNOT_READ_SNAPSHOT_FILE_VALUE_SIZE" : {
"message" : [
"Error reading snapshot file <fileToRead> of <clazz>: value size cannot be <valueSize>."
]
},
"CANNOT_READ_STREAMING_STATE_FILE" : {
"message" : [
"Error reading streaming state file of <fileToRead> does not exist. If the stream job is restarted with a new or updated state operation, please create a new checkpoint location or clear the existing checkpoint location."
]
},
"FAILED_TO_GET_CHANGELOG_WRITER" : {
"message" : [
"Failed to get the changelog writer for state store at version <version>."
]
},
"HDFS_STORE_PROVIDER_OUT_OF_MEMORY" : {
"message" : [
"Could not load HDFS state store with id <stateStoreId> because of an out of memory exception."
]
},
"INVALID_CHANGE_LOG_READER_VERSION" : {
"message" : [
"The change log reader version cannot be <version>. The checkpoint probably is from a future Spark version, please upgrade your Spark."
]
},
"INVALID_CHANGE_LOG_WRITER_VERSION" : {
"message" : [
"The change log writer version cannot be <version>."
]
},
"INVALID_CHECKPOINT_LINEAGE" : {
"message" : [
"Invalid checkpoint lineage: <lineage>. <message>"
]
},
"KEY_ROW_FORMAT_VALIDATION_FAILURE" : {
"message" : [
"<msg>"
]
},
"ROCKSDB_STORE_PROVIDER_OUT_OF_MEMORY" : {
"message" : [
"Could not load RocksDB state store with id <stateStoreId> because of an out of memory exception."
]
},
"SNAPSHOT_PARTITION_ID_NOT_FOUND" : {
"message" : [
"Partition id <snapshotPartitionId> not found for state of operator <operatorId> at <checkpointLocation>."
]
},
"UNCATEGORIZED" : {
"message" : [
""
]
},
"UNEXPECTED_FILE_SIZE" : {
"message" : [
"Copied <dfsFile> to <localFile>, expected <expectedSize> bytes, found <localFileSize> bytes."
]
},
"UNEXPECTED_VERSION" : {
"message" : [
"Version cannot be <version> because it is less than 0."
]
},
"UNRELEASED_THREAD_ERROR" : {
"message" : [
"<loggingId>: RocksDB instance could not be acquired by <newAcquiredThreadInfo> for operationType=<operationType> as it was not released by <acquiredThreadInfo> after <timeWaitedMs> ms.",
"Thread holding the lock has trace: <stackTraceOutput>"
]
},
"VALUE_ROW_FORMAT_VALIDATION_FAILURE" : {
"message" : [
"<msg>"
]
}
},
"sqlState" : "58030"
},
"CANNOT_MERGE_INCOMPATIBLE_DATA_TYPE" : {
"message" : [
"Failed to merge incompatible data types <left> and <right>. Please check the data types of the columns being merged and ensure that they are compatible. If necessary, consider casting the columns to compatible data types before attempting the merge."
],
"sqlState" : "42825"
},
"CANNOT_MERGE_SCHEMAS" : {
"message" : [
"Failed merging schemas:",
"Initial schema:",
"<left>",
"Schema that cannot be merged with the initial schema:",
"<right>."
],
"sqlState" : "42KD9"
},
"CANNOT_MODIFY_CONFIG" : {
"message" : [
"Cannot modify the value of the Spark config: <key>.",
"See also '<docroot>/sql-migration-guide.html#ddl-statements'."
],
"sqlState" : "46110"
},
"CANNOT_MODIFY_STATIC_CONFIG" : {
"message" : [
"Cannot modify the value of the static Spark config: <key>."
],
"sqlState" : "46110"
},
"CANNOT_PARSE_DECIMAL" : {
"message" : [
"Cannot parse decimal. Please ensure that the input is a valid number with optional decimal point or comma separators."
],
"sqlState" : "22018"
},
"CANNOT_PARSE_INTERVAL" : {
"message" : [
"Unable to parse <intervalString>. Please ensure that the value provided is in a valid format for defining an interval. You can reference the documentation for the correct format. If the issue persists, please double check that the input value is not null or empty and try again."
],
"sqlState" : "22006"
},
"CANNOT_PARSE_JSON_FIELD" : {
"message" : [
"Cannot parse the field name <fieldName> and the value <fieldValue> of the JSON token type <jsonType> to target Spark data type <dataType>."
],
"sqlState" : "2203G"
},
"CANNOT_PARSE_PROTOBUF_DESCRIPTOR" : {
"message" : [
"Error parsing descriptor bytes into Protobuf FileDescriptorSet."
],
"sqlState" : "22018"
},
"CANNOT_PARSE_TIME" : {
"message" : [
"The input string <input> cannot be parsed to a TIME value because it does not match to the datetime format <format>."
],
"sqlState" : "22010"
},
"CANNOT_PARSE_TIMESTAMP" : {
"message" : [
"<message>. Use <func> to tolerate invalid input string and return NULL instead."
],
"sqlState" : "22007"
},
"CANNOT_RECOGNIZE_HIVE_TYPE" : {
"message" : [
"Cannot recognize hive type string: <fieldType>, column: <fieldName>. The specified data type for the field cannot be recognized by Spark SQL. Please check the data type of the specified field and ensure that it is a valid Spark SQL data type. Refer to the Spark SQL documentation for a list of valid data types and their format. If the data type is correct, please ensure that you are using a supported version of Spark SQL."
],
"sqlState" : "429BB"
},
"CANNOT_REMOVE_RESERVED_PROPERTY" : {
"message" : [
"Cannot remove reserved property: <property>."
],
"sqlState" : "42000"
},
"CANNOT_RENAME_ACROSS_SCHEMA" : {
"message" : [
"Renaming a <type> across schemas is not allowed."
],
"sqlState" : "0AKD0"
},
"CANNOT_RESOLVE_DATAFRAME_COLUMN" : {
"message" : [
"Cannot resolve dataframe column <name>. It's probably because of illegal references like `df1.select(df2.col(\"a\"))`."
],
"sqlState" : "42704"
},
"CANNOT_RESOLVE_STAR_EXPAND" : {
"message" : [
"Cannot resolve <targetString>.* given input columns <columns>. Please check that the specified table or struct exists and is accessible in the input columns."
],
"sqlState" : "42704"
},
"CANNOT_RESTORE_PERMISSIONS_FOR_PATH" : {
"message" : [
"Failed to set permissions on created path <path> back to <permission>."
],
"sqlState" : "58030"
},
"CANNOT_UPDATE_FIELD" : {
"message" : [
"Cannot update <table> field <fieldName> type:"
],
"subClass" : {
"ARRAY_TYPE" : {
"message" : [
"Update the element by updating <fieldName>.element."
]
},
"INTERVAL_TYPE" : {
"message" : [
"Update an interval by updating its fields."
]
},
"MAP_TYPE" : {
"message" : [
"Update a map by updating <fieldName>.key or <fieldName>.value."
]
},
"STRUCT_TYPE" : {
"message" : [
"Update a struct by updating its fields."
]
},
"USER_DEFINED_TYPE" : {
"message" : [
"Update a UserDefinedType[<udtSql>] by updating its fields."
]
}
},
"sqlState" : "0A000"
},
"CANNOT_UPDATE_PARTITION_COLUMNS" : {
"message" : [
"Declared partitioning <requestedPartitionColumns> conflicts with existing table partitioning <existingPartitionColumns>.",
"Please delete the table or change the declared partitioning to match its partitions."
],
"sqlState" : "42000"
},
"CANNOT_UP_CAST_DATATYPE" : {
"message" : [
"Cannot up cast <expression> from <sourceType> to <targetType>.",
"<details>"
],
"sqlState" : "42846"
},
"CANNOT_USE_KRYO" : {
"message" : [
"Cannot load Kryo serialization codec. Kryo serialization cannot be used in the Spark Connect client. Use Java serialization, provide a custom Codec, or use Spark Classic instead."
],
"sqlState" : "22KD3"
},
"CANNOT_USE_MULTI_ALIASES_IN_WATERMARK_CLAUSE" : {
"message" : [
"Multiple aliases are not supported in watermark clause."
],
"sqlState" : "42000"
},
"CANNOT_WRITE_STATE_STORE" : {
"message" : [
"Error writing state store files for provider <providerClass>."
],
"subClass" : {
"CANNOT_COMMIT" : {
"message" : [
"Cannot perform commit during state checkpoint."
]
}
},
"sqlState" : "58030"
},
"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."
],
"sqlState" : "22018"
},
"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."
],
"sqlState" : "22003"
},
"CAST_OVERFLOW_IN_TABLE_INSERT" : {
"message" : [
"Fail to assign a value of <sourceType> type to the <targetType> type column or variable <columnName> due to an overflow. Use `try_cast` on the input value to tolerate overflow and return NULL instead."
],
"sqlState" : "22003"
},
"CATALOG_NOT_FOUND" : {
"message" : [
"The catalog <catalogName> not found. Consider to set the SQL config <config> to a catalog plugin."
],
"sqlState" : "42P08"
},
"CHECKPOINT_FILE_CHECKSUM_VERIFICATION_FAILED" : {
"message" : [
"Checksum verification failed, the file may be corrupted. File: <fileName>",
"Expected (file size: <expectedSize>, checksum: <expectedChecksum>), Computed (file size: <computedSize>, checksum: <computedChecksum>)."
],
"sqlState" : "XX000"
},
"CHECKPOINT_RDD_BLOCK_ID_NOT_FOUND" : {
"message" : [
"Checkpoint block <rddBlockId> not found!",
"Either the executor that originally checkpointed this partition is no longer alive, or the original RDD is unpersisted.",
"If this problem persists, you may consider using `rdd.checkpoint()` instead, which is slower than local checkpointing but more fault-tolerant."
],
"sqlState" : "56000"
},
"CHECK_CONSTRAINT_VIOLATION" : {
"message" : [
"CHECK constraint <constraintName> <expression> violated by row with values:",
"<values>",
""
],
"sqlState" : "23001"
},
"CIRCULAR_CLASS_REFERENCE" : {
"message" : [
"Cannot have circular references in class, but got the circular reference of class <t>."
],
"sqlState" : "42602"
},
"CLASS_NOT_OVERRIDE_EXPECTED_METHOD" : {
"message" : [
"<className> must override either <method1> or <method2>."
],
"sqlState" : "38000"
},
"CLASS_UNSUPPORTED_BY_MAP_OBJECTS" : {
"message" : [
"`MapObjects` does not support the class <cls> as resulting collection."
],
"sqlState" : "0A000"
},
"CLUSTERING_COLUMNS_MISMATCH" : {
"message" : [
"Specified clustering does not match that of the existing table <tableName>.",
"Specified clustering columns: [<specifiedClusteringString>].",
"Existing clustering columns: [<existingClusteringString>]."
],
"sqlState" : "42P10"
},
"CLUSTERING_NOT_SUPPORTED" : {
"message" : [
"'<operation>' does not support clustering."
],
"sqlState" : "42000"
},
"CODEC_NOT_AVAILABLE" : {
"message" : [
"The codec <codecName> is not available."
],
"subClass" : {
"WITH_AVAILABLE_CODECS_SUGGESTION" : {
"message" : [
"Available codecs are <availableCodecs>."
]
},
"WITH_CONF_SUGGESTION" : {
"message" : [
"Consider to set the config <configKey> to <configVal>."
]
}
},
"sqlState" : "56038"
},
"CODEC_SHORT_NAME_NOT_FOUND" : {
"message" : [
"Cannot find a short name for the codec <codecName>."
],
"sqlState" : "42704"
},
"COLLATION_INVALID_NAME" : {
"message" : [
"The value <collationName> does not represent a correct collation name. Suggested valid collation names: [<proposals>]."
],
"sqlState" : "42704"
},
"COLLATION_INVALID_PROVIDER" : {
"message" : [
"The value <provider> does not represent a correct collation provider. Supported providers are: [<supportedProviders>]."
],
"sqlState" : "42704"
},
"COLLATION_MISMATCH" : {
"message" : [
"Could not determine which collation to use for string functions and operators."
],
"subClass" : {
"EXPLICIT" : {
"message" : [
"Error occurred due to the mismatch between explicit collations: [<explicitTypes>]. Decide on a single explicit collation and remove others."
]
},
"IMPLICIT" : {
"message" : [
"Error occurred due to the mismatch between implicit collations: [<implicitTypes>]. Use COLLATE function to set the collation explicitly."
]
}
},
"sqlState" : "42P21"
},
"COLLECTION_SIZE_LIMIT_EXCEEDED" : {
"message" : [
"Can't create array with <numberOfElements> elements which exceeding the array size limit <maxRoundedArrayLength>,"
],
"subClass" : {
"FUNCTION" : {
"message" : [
"unsuccessful try to create arrays in the function <functionName>."
]
},
"INITIALIZE" : {
"message" : [
"cannot initialize an array with specified parameters."
]
},
"PARAMETER" : {
"message" : [
"the value of parameter(s) <parameter> in the function <functionName> is invalid."
]
}
},
"sqlState" : "54000"
},
"COLUMN_ALIASES_NOT_ALLOWED" : {
"message" : [
"Column aliases are not allowed in <op>."
],
"sqlState" : "42601"
},
"COLUMN_ALREADY_EXISTS" : {
"message" : [
"The column <columnName> already exists. Choose another name or rename the existing column."
],
"sqlState" : "42711"
},
"COLUMN_ARRAY_ELEMENT_TYPE_MISMATCH" : {
"message" : [
"Some values in field <pos> are incompatible with the column array type. Expected type <type>."
],
"sqlState" : "0A000"
},
"COLUMN_NOT_DEFINED_IN_TABLE" : {
"message" : [
"<colType> column <colName> is not defined in table <tableName>, defined table columns are: <tableCols>."
],
"sqlState" : "42703"
},
"COLUMN_NOT_FOUND" : {
"message" : [
"The column <colName> cannot be found. Verify the spelling and correctness of the column name according to the SQL config <caseSensitiveConfig>."
],
"sqlState" : "42703"
},
"COLUMN_ORDINAL_OUT_OF_BOUNDS" : {
"message" : [
"Column ordinal out of bounds. The number of columns in the table is <attributesLength>, but the column ordinal is <ordinal>.",
"Attributes are the following: <attributes>."
],
"sqlState" : "22003"
},
"COMPARATOR_RETURNS_NULL" : {
"message" : [
"The comparator has returned a NULL for a comparison between <firstValue> and <secondValue>.",
"It should return a positive integer for \"greater than\", 0 for \"equal\" and a negative integer for \"less than\".",
"To revert to deprecated behavior where NULL is treated as 0 (equal), you must set \"spark.sql.legacy.allowNullComparisonResultInArraySort\" to \"true\"."
],
"sqlState" : "22004"
},
"COMPLEX_EXPRESSION_UNSUPPORTED_INPUT" : {
"message" : [
"Cannot process input data types for the expression: <expression>."
],
"subClass" : {
"BAD_INPUTS" : {
"message" : [
"The input data types to <functionName> must be valid, but found the input types <dataType>."
]
},
"MISMATCHED_TYPES" : {
"message" : [
"All input types must be the same except nullable, containsNull, valueContainsNull flags, but found the input types <inputTypes>."
]
},
"NO_INPUTS" : {
"message" : [
"The collection of input data types must not be empty."
]
}
},
"sqlState" : "42K09"
},
"CONCURRENT_QUERY" : {
"message" : [
"Another instance of this query was just started by a concurrent session."
],
"sqlState" : "0A000"
},
"CONCURRENT_STREAM_LOG_UPDATE" : {
"message" : [
"Concurrent update to the log. Multiple streaming jobs detected for <batchId>.",
"Please make sure only one streaming job runs on a specific checkpoint location at a time."
],
"sqlState" : "40000"
},
"CONFLICTING_DIRECTORY_STRUCTURES" : {
"message" : [
"Conflicting directory structures detected.",
"Suspicious paths:",
"<discoveredBasePaths>",
"If provided paths are partition directories, please set \"basePath\" in the options of the data source to specify the root directory of the table.",
"If there are multiple root directories, please load them separately and then union them."
],
"sqlState" : "KD009"
},
"CONFLICTING_PARTITION_COLUMN_NAMES" : {
"message" : [
"Conflicting partition column names detected:",
"<distinctPartColLists>",
"For partitioned table directories, data files should only live in leaf directories.",
"And directories at the same level should have the same partition column name.",
"Please check the following directories for unexpected files or inconsistent partition column names:",
"<suspiciousPaths>"
],
"sqlState" : "KD009"
},
"CONFLICTING_PARTITION_COLUMN_NAME_WITH_RESERVED" : {
"message" : [
"Partition column name '<partitionColumnName>' conflicts with reserved column name.",
"The schema of <tableName> is Hive-incompatible, Spark automatically generates a reserved column '<partitionColumnName>' to store the table in a specific way.",
"Please use a different name for the partition column."
],
"sqlState" : "KD009"
},
"CONNECT" : {
"message" : [
"Generic Spark Connect error."
],
"subClass" : {
"INTERCEPTOR_CTOR_MISSING" : {
"message" : [
"Cannot instantiate GRPC interceptor because <cls> is missing a default constructor without arguments."
]
},
"INTERCEPTOR_RUNTIME_ERROR" : {
"message" : [
"Error instantiating GRPC interceptor: <msg>"
]
},
"PLUGIN_CTOR_MISSING" : {
"message" : [
"Cannot instantiate Spark Connect plugin because <cls> is missing a default constructor without arguments."
]
},
"PLUGIN_RUNTIME_ERROR" : {
"message" : [
"Error instantiating Spark Connect plugin: <msg>"
]
},
"SESSION_NOT_SAME" : {
"message" : [
"Both Datasets must belong to the same SparkSession."
]
}
},
"sqlState" : "56K00"
},
"CONNECT_CLIENT_UNEXPECTED_MISSING_SQL_STATE" : {
"message" : [
"Unidentified Error: <message>"
],
"sqlState" : "XXKCM"
},
"CONNECT_INVALID_PLAN" : {
"message" : [
"The Spark Connect plan is invalid."
],
"subClass" : {
"AGGREGATE_NEEDS_PLAN_INPUT" : {
"message" : [
"Aggregate needs a plan input"
]
},
"AGGREGATE_WITH_PIVOT_REQUIRES_PIVOT" : {
"message" : [
"Aggregate with GROUP_TYPE_PIVOT requires a Pivot"
]
},
"ALIAS_WITH_MULTIPLE_IDENTIFIERS_AND_METADATA" : {
"message" : [
"Alias expressions with more than 1 identifier must not use optional metadata."
]
},
"ARRAY_LITERAL_MISSING_DATA_TYPE" : {
"message" : [
"Data type information is missing in the array literal."
]
},
"ARRAY_LITERAL_NOT_SET" : {
"message" : [
"Array literal is not set."
]
},
"ASSERTION_FAILURE" : {
"message" : [
"<message>"
]
},
"CANNOT_FIND_CACHED_LOCAL_RELATION" : {
"message" : [
"Cannot find a cached local relation for hash: <hash>"
]
},
"CANNOT_PARSE" : {
"message" : [
"Cannot decompress or parse the input plan (<errorMsg>)",
"This may be caused by a corrupted compressed plan.",
"To disable plan compression, set 'spark.connect.session.planCompression.threshold' to -1."
]
},
"CHUNKED_CACHED_LOCAL_RELATION_WITHOUT_DATA" : {
"message" : [
"ChunkedCachedLocalRelation should contain data."
]
},
"DATAFRAME_NOT_FOUND" : {
"message" : [
"No DataFrame with id <dfId> is found in the session <sessionId>"
]
},
"DATA_TYPE_UNSUPPORTED_CATALYST_TO_PROTO" : {
"message" : [
"Does not support convert <typeName> to connect proto types."
]
},
"DATA_TYPE_UNSUPPORTED_PROTO_TO_CATALYST" : {
"message" : [
"Does not support convert <kindCase> to catalyst types."
]
},
"DEDUPLICATE_ALL_COLUMNS_AND_SUBSET" : {
"message" : [
"Cannot deduplicate on both all columns and a subset of columns"
]
},
"DEDUPLICATE_NEEDS_INPUT" : {
"message" : [