Github user holdenk commented on a diff in the pull request:
https://github.com/apache/spark/pull/16225#discussion_r122166101
--- Diff: python/pyspark/sql/dataframe.py ---
@@ -1423,7 +1434,9 @@ def all_of_(xs):
subset = [subset]
# Verify we were not passed in mixed type generics."
- if not any(all_of_type(rep_dict.keys()) and
all_of_type(rep_dict.values())
+ if not any(all_of_type(rep_dict.keys())
+ and (all_of_type(rep_dict.values())
+ or list(rep_dict.values()).count(None) ==
len(rep_dict))
--- End diff --
In the Scala code null is allowed in to be the replacement value for some
of the elements but not in the Python code. Is this intentional? If so we
should document it clearly and expand on the error message bellow (otherwise we
should make it more flexible).
---
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]