Github user HyukjinKwon commented on a diff in the pull request:
    --- Diff: python/pyspark/sql/ ---
    @@ -437,10 +437,11 @@ def hint(self, name, *parameters):
             if not isinstance(name, str):
                 raise TypeError("name should be provided as str, got 
    +        allowed = [str, list, float, int]
             for p in parameters:
    -            if not isinstance(p, str):
    +            if not type(p) in allowed:
    --- End diff --
    Hm? can't we just simply do `isinstance(p, (basestring, list, float, int))`?


To unsubscribe, e-mail:
For additional commands, e-mail:

Reply via email to