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

ruifengz 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 c8d75c1f9f61 [SPARK-48620][PYTHON][FOLLOW-UP] Correct the error 
message for `CalendarIntervalType`
c8d75c1f9f61 is described below

commit c8d75c1f9f610be72e1052116b50abc6107e1dd4
Author: Ruifeng Zheng <[email protected]>
AuthorDate: Sat Jun 22 11:25:45 2024 +0800

    [SPARK-48620][PYTHON][FOLLOW-UP] Correct the error message for 
`CalendarIntervalType`
    
    ### What changes were proposed in this pull request?
    Correct the error message for `CalendarIntervalType`
    
    ### Why are the changes needed?
    the message is incorrect
    
    ### Does this PR introduce _any_ user-facing change?
    no, this error was just added, not yet released
    
    ### How was this patch tested?
    ci
    
    ### Was this patch authored or co-authored using generative AI tooling?
    no
    
    Closes #47041 from zhengruifeng/fail_interval_followup.
    
    Authored-by: Ruifeng Zheng <[email protected]>
    Signed-off-by: Ruifeng Zheng <[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 b7b0a977ec08..69074a17ca6c 100644
--- a/python/pyspark/sql/types.py
+++ b/python/pyspark/sql/types.py
@@ -675,13 +675,13 @@ class CalendarIntervalType(DataType, 
metaclass=DataTypeSingleton):
     def toInternal(self, obj: Any) -> Any:
         raise PySparkNotImplementedError(
             error_class="NOT_IMPLEMENTED",
-            message_parameters={"feature": "YearMonthIntervalType.toInternal"},
+            message_parameters={"feature": "CalendarIntervalType.toInternal"},
         )
 
     def fromInternal(self, obj: Any) -> Any:
         raise PySparkNotImplementedError(
             error_class="NOT_IMPLEMENTED",
-            message_parameters={"feature": 
"YearMonthIntervalType.fromInternal"},
+            message_parameters={"feature": 
"CalendarIntervalType.fromInternal"},
         )
 
 


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

Reply via email to