You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spark.apache.org by gu...@apache.org on 2025/03/12 15:39:58 UTC
(spark) branch master updated: [MINOR][PYTHON] Reformat error classes
This is an automated email from the ASF dual-hosted git repository.
gurwls223 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/spark.git
The following commit(s) were added to refs/heads/master by this push:
new c53959cd221f [MINOR][PYTHON] Reformat error classes
c53959cd221f is described below
commit c53959cd221f0a2278503088b86b3cff23b2d053
Author: Hyukjin Kwon <gu...@apache.org>
AuthorDate: Wed Mar 12 08:39:47 2025 -0700
[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 <gu...@apache.org>
Signed-off-by: Hyukjin Kwon <gu...@apache.org>
---
python/pyspark/errors/error-conditions.json | 18 +++++++++---------
1 file changed, 9 insertions(+), 9 deletions(-)
diff --git a/python/pyspark/errors/error-conditions.json b/python/pyspark/errors/error-conditions.json
index 33730f757dbd..c17c602034b0 100644
--- a/python/pyspark/errors/error-conditions.json
+++ b/python/pyspark/errors/error-conditions.json
@@ -159,8 +159,8 @@
"Calling property or member '<member>' is not supported in PySpark Classic, please use Spark Connect instead."
]
},
- "COLLATION_INVALID_PROVIDER" : {
- "message" : [
+ "COLLATION_INVALID_PROVIDER": {
+ "message": [
"The value <provider> does not represent a correct collation provider. Supported providers are: [<supportedProviders>]."
]
},
@@ -372,8 +372,8 @@
"All items in `<arg_name>` should be in <allowed_types>, got <item_type>."
]
},
- "INVALID_JSON_DATA_TYPE_FOR_COLLATIONS" : {
- "message" : [
+ "INVALID_JSON_DATA_TYPE_FOR_COLLATIONS": {
+ "message": [
"Collations can only be applied to string types, but the JSON data type is <jsonType>."
]
},
@@ -502,8 +502,8 @@
"<arg1> and <arg2> should be of the same length, got <arg1_length> and <arg2_length>."
]
},
- "MALFORMED_VARIANT" : {
- "message" : [
+ "MALFORMED_VARIANT": {
+ "message": [
"Variant binary is malformed. Please check the data source is valid."
]
},
@@ -517,7 +517,7 @@
"A master URL must be set in your configuration."
]
},
- "MEMORY_PROFILE_INVALID_SOURCE":{
+ "MEMORY_PROFILE_INVALID_SOURCE": {
"message": [
"Memory profiler can only be used on editors with line numbers."
]
@@ -812,7 +812,7 @@
"<package_name> >= <minimum_version> must be installed; however, it was not found."
]
},
- "PANDAS_UDF_OUTPUT_EXCEEDS_INPUT_ROWS" : {
+ "PANDAS_UDF_OUTPUT_EXCEEDS_INPUT_ROWS": {
"message": [
"The Pandas SCALAR_ITER UDF outputs more rows than input rows."
]
@@ -1208,4 +1208,4 @@
"Index must be non-zero."
]
}
-}
+}
\ No newline at end of file
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@spark.apache.org
For additional commands, e-mail: commits-help@spark.apache.org