HyukjinKwon commented on a change in pull request #30181:
URL: https://github.com/apache/spark/pull/30181#discussion_r514342707



##########
File path: python/pyspark/sql/dataframe.pyi
##########
@@ -86,7 +86,7 @@ class DataFrame(PandasMapOpsMixin, PandasConversionMixin):
     def withWatermark(
         self, eventTime: ColumnOrName, delayThreshold: str
     ) -> DataFrame: ...
-    def hint(self, name: str, *parameters: Any) -> DataFrame: ...
+    def hint(self, name: str, *parameters: Union[str, list, float, int]) -> 
DataFrame: ...

Review comment:
       Hm, let me just stick to `Any` for simplicity for now - actually this 
should be `Union[List[Union[str, list, float, int]], str, list, float, int]`, 
right. Using `Any` is matched to the Scala side too.




----------------------------------------------------------------
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:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to