You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by GitBox <gi...@apache.org> on 2020/04/18 06:04:34 UTC

[GitHub] [spark] Fokko commented on a change in pull request #28238: [SPARK-23647][PYTHON][SQL][2.4] Adds more types for hint in pyspark

Fokko commented on a change in pull request #28238: [SPARK-23647][PYTHON][SQL][2.4] Adds more types for hint in pyspark
URL: https://github.com/apache/spark/pull/28238#discussion_r410651572
 
 

 ##########
 File path: python/pyspark/sql/dataframe.py
 ##########
 @@ -506,10 +506,12 @@ def hint(self, name, *parameters):
         if not isinstance(name, str):
             raise TypeError("name should be provided as str, got {0}".format(type(name)))
 
+        allowed_types = (basestring, list, float, int)
 
 Review comment:
   It doesn't really change behavior since it is a bug. Does this also apply for bugfixes? Let me know.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org