Skip to content

Commit c53959c

Browse files
committed
[MINOR][PYTHON] Reformat error classes
### What changes were proposed in this pull request? This PR proposes to reformat error classes by: ```python from pyspark.errors.exceptions import _write_self; _write_self() ``` ### Why are the changes needed? To remove the diff from auto formatted output. ### Does this PR introduce _any_ user-facing change? No. ### How was this patch tested? Existing CI ### Was this patch authored or co-authored using generative AI tooling? No. Closes #50241 from HyukjinKwon/minor-format. Authored-by: Hyukjin Kwon <gurwls223@apache.org> Signed-off-by: Hyukjin Kwon <gurwls223@apache.org>
1 parent c129972 commit c53959c

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

python/pyspark/errors/error-conditions.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -159,8 +159,8 @@
159159
"Calling property or member '<member>' is not supported in PySpark Classic, please use Spark Connect instead."
160160
]
161161
},
162-
"COLLATION_INVALID_PROVIDER" : {
163-
"message" : [
162+
"COLLATION_INVALID_PROVIDER": {
163+
"message": [
164164
"The value <provider> does not represent a correct collation provider. Supported providers are: [<supportedProviders>]."
165165
]
166166
},
@@ -372,8 +372,8 @@
372372
"All items in `<arg_name>` should be in <allowed_types>, got <item_type>."
373373
]
374374
},
375-
"INVALID_JSON_DATA_TYPE_FOR_COLLATIONS" : {
376-
"message" : [
375+
"INVALID_JSON_DATA_TYPE_FOR_COLLATIONS": {
376+
"message": [
377377
"Collations can only be applied to string types, but the JSON data type is <jsonType>."
378378
]
379379
},
@@ -502,8 +502,8 @@
502502
"<arg1> and <arg2> should be of the same length, got <arg1_length> and <arg2_length>."
503503
]
504504
},
505-
"MALFORMED_VARIANT" : {
506-
"message" : [
505+
"MALFORMED_VARIANT": {
506+
"message": [
507507
"Variant binary is malformed. Please check the data source is valid."
508508
]
509509
},
@@ -517,7 +517,7 @@
517517
"A master URL must be set in your configuration."
518518
]
519519
},
520-
"MEMORY_PROFILE_INVALID_SOURCE":{
520+
"MEMORY_PROFILE_INVALID_SOURCE": {
521521
"message": [
522522
"Memory profiler can only be used on editors with line numbers."
523523
]
@@ -812,7 +812,7 @@
812812
"<package_name> >= <minimum_version> must be installed; however, it was not found."
813813
]
814814
},
815-
"PANDAS_UDF_OUTPUT_EXCEEDS_INPUT_ROWS" : {
815+
"PANDAS_UDF_OUTPUT_EXCEEDS_INPUT_ROWS": {
816816
"message": [
817817
"The Pandas SCALAR_ITER UDF outputs more rows than input rows."
818818
]
@@ -1208,4 +1208,4 @@
12081208
"Index must be non-zero."
12091209
]
12101210
}
1211-
}
1211+
}

0 commit comments

Comments
 (0)