Github user JoshRosen commented on a diff in the pull request:
https://github.com/apache/spark/pull/4808#discussion_r25539940
--- Diff: python/pyspark/sql/types.py ---
@@ -505,6 +508,9 @@ def __eq__(self, other):
def _parse_datatype_json_string(json_string):
"""Parses the given data type JSON string.
+ >>> import pickle
--- End diff --
It looks like this is a regression test for the singleton `__eq__` issue.
It feels a little odd to have this as a doctest as opposed to a dedicated
`unittest` regression test. Maybe we could move this into a new test case and
add a comment referencing this JIRA?
---
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]