This is an automated email from the ASF dual-hosted git repository.
HyukjinKwon pushed a commit to branch branch-3.5
in repository https://gitbox.apache.org/repos/asf/spark.git
The following commit(s) were added to refs/heads/branch-3.5 by this push:
new 77117c7b32a4 [SPARK-56463][PYTHON][FOLLOWUP][3.5] Fix wrong kwargs
77117c7b32a4 is described below
commit 77117c7b32a434d2a9edc589d3bc060609cc68e8
Author: Kousuke Saruta <[email protected]>
AuthorDate: Sun May 10 19:00:33 2026 +0900
[SPARK-56463][PYTHON][FOLLOWUP][3.5] Fix wrong kwargs
### What changes were proposed in this pull request?
This PR fixes wrong kwargs `errorClass` and `messageParameters` for
`PySparkValueError` in `types.py`, which are introduced by #55330. They should
be `error_class` and `message_parameters`.
### Why are the changes needed?
Bug fix.
### Does this PR introduce _any_ user-facing change?
No.
### How was this patch tested?
Manual review because `dev/lint-python` doesn't work for now (Will fix in a
separate PR).
### Was this patch authored or co-authored using generative AI tooling?
No.
Closes #55781 from sarutak/followup-SPARK-56463-3.5.
Authored-by: Kousuke Saruta <[email protected]>
Signed-off-by: Hyukjin Kwon <[email protected]>
---
python/pyspark/sql/types.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/python/pyspark/sql/types.py b/python/pyspark/sql/types.py
index 04f430a259c0..bdeb21951e2e 100644
--- a/python/pyspark/sql/types.py
+++ b/python/pyspark/sql/types.py
@@ -1205,8 +1205,8 @@ class UserDefinedType(DataType):
m = __import__(pyModule, globals(), locals(), [pyClass])
if not hasattr(m, pyClass):
raise PySparkValueError(
- errorClass="UNSUPPORTED_OPERATION",
- messageParameters={"operation": "unpickling user defined
types"},
+ error_class="UNSUPPORTED_OPERATION",
+ message_parameters={"operation": "unpickling user defined
types"},
)
else:
UDT = getattr(m, pyClass)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]