From 2ec6765223602f6835b4f4d44dbc14482548f03c Mon Sep 17 00:00:00 2001 From: Matthew Hawkes_ONS <82766547+mh0w@users.noreply.github.com> Date: Fri, 19 Jun 2026 18:15:44 +0100 Subject: [PATCH 1/2] Fix typo in pyspark.sql.functions.try_to_date docstring MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fix a docstring typo in pyspark.sql.functions.try_to_date. Current text says “special version of try_to_date”, which is self-referential. Correct text is “special version of to_date”. See, for reference, the other try_ functions. --- python/pyspark/sql/functions/builtin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/pyspark/sql/functions/builtin.py b/python/pyspark/sql/functions/builtin.py index f62dc1d93520b..43340405193fb 100644 --- a/python/pyspark/sql/functions/builtin.py +++ b/python/pyspark/sql/functions/builtin.py @@ -11602,7 +11602,7 @@ def to_date(col: "ColumnOrName", format: Optional[str] = None) -> Column: @_try_remote_functions def try_to_date(col: "ColumnOrName", format: Optional[str] = None) -> Column: - """This is a special version of `try_to_date` that performs the same operation, but returns a + """This is a special version of `to_date` that performs the same operation, but returns a NULL value instead of raising an error if date cannot be created. .. _datetime pattern: https://spark.apache.org/docs/latest/sql-ref-datetime-pattern.html From 342af2452b50f999b0cda4da26fdef7e59ee78a9 Mon Sep 17 00:00:00 2001 From: Matthew Hawkes Date: Fri, 19 Jun 2026 18:37:21 +0100 Subject: [PATCH 2/2] Trigger Spark fork workflows