Skip to content

[MINOR][PYTHON] Fix try_to_date docstring typo#56618

Open
mh0w wants to merge 2 commits into
apache:masterfrom
mh0w:patch-1
Open

[MINOR][PYTHON] Fix try_to_date docstring typo#56618
mh0w wants to merge 2 commits into
apache:masterfrom
mh0w:patch-1

Conversation

@mh0w

@mh0w mh0w commented Jun 19, 2026

Copy link
Copy Markdown

What changes were proposed in this pull request?

This PR fixes a docstring typo in pyspark.sql.functions.try_to_date.

The current docstring says that try_to_date is a special version of try_to_date, which is self-referential. It should say that try_to_date is a special version of to_date, matching the actual relationship and the wording used by similar try_ functions.

Why are the changes needed?

The current wording appears to be a typo.

Does this PR introduce any user-facing change?

No.

How was this patch tested?

Not applicable. This PR only corrects a docstring typo.

Was this patch authored or co-authored using generative AI tooling?

No.

mh0w and others added 2 commits June 19, 2026 18:15
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant