Github user felixcheung commented on a diff in the pull request:
https://github.com/apache/spark/pull/17901#discussion_r115397915
--- Diff: python/pyspark/sql/functions.py ---
@@ -144,12 +144,6 @@ def _():
'measured in radians.',
}
-_functions_2_2 = {
- 'to_date': 'Converts a string date into a DateType using the
(optionally) specified format.',
- 'to_timestamp': 'Converts a string timestamp into a timestamp type
using the ' +
- '(optionally) specified format.',
-}
-
--- End diff --
actually, instead of deleting this we should keep it and we should add
```
for _name, _doc in _functions_2_2.items():
globals()[_name] = since(2.2)(_create_function(_name, _doc))
```
this is for doc tag
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]