This is an automated email from the ASF dual-hosted git repository.

gurwls223 pushed a commit to branch branch-3.4
in repository https://gitbox.apache.org/repos/asf/spark.git


The following commit(s) were added to refs/heads/branch-3.4 by this push:
     new 508b800b585 [SPARK-42244][PYTHON][FOLLOWUP] Fix error messages to keep 
the consistency
508b800b585 is described below

commit 508b800b58574b7f9f6e960c026e9c04dfe31543
Author: itholic <[email protected]>
AuthorDate: Wed Feb 8 20:49:38 2023 +0900

    [SPARK-42244][PYTHON][FOLLOWUP] Fix error messages to keep the consistency
    
    ### What changes were proposed in this pull request?
    
    This PR follow-ups for https://github.com/apache/spark/pull/39815 to fix 
error messages that's not meet the consistency with other error messages.
    
    ### Why are the changes needed?
    
    To keep the consistency across all error messages.
    
    ### Does this PR introduce _any_ user-facing change?
    
    No, error message changes.
    
    ### How was this patch tested?
    
    The existing CI should pass.
    
    Closes #39935 from itholic/SPARK-42244-followup.
    
    Authored-by: itholic <[email protected]>
    Signed-off-by: Hyukjin Kwon <[email protected]>
    (cherry picked from commit 7dbf9f657857a3b914ccf7d6b6ab3a91158e3f39)
    Signed-off-by: Hyukjin Kwon <[email protected]>
---
 python/pyspark/errors/error_classes.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/python/pyspark/errors/error_classes.py 
b/python/pyspark/errors/error_classes.py
index 9d0f1c6e769..00d676b52b8 100644
--- a/python/pyspark/errors/error_classes.py
+++ b/python/pyspark/errors/error_classes.py
@@ -26,7 +26,7 @@ ERROR_CLASSES_JSON = """
   },
   "COLUMN_IN_LIST": {
     "message": [
-      "<func_name> does not allow a Column in a list."
+      "`<func_name>` does not allow a Column in a list."
     ]
   },
   "DISALLOWED_TYPE_FOR_CONTAINER" : {
@@ -96,7 +96,7 @@ ERROR_CLASSES_JSON = """
   },
   "NOT_DATAFRAME" : {
     "message" : [
-      "Argument `<arg_name>` must be a DataFrame, got <arg_type>."
+      "Argument `<arg_name>` should be a DataFrame, got <arg_type>."
     ]
   },
   "NOT_DICT" : {


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to