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



##########
File path: python/pyspark/sql/avro/functions.py
##########
@@ -25,7 +25,6 @@
 from pyspark.util import _print_missing_jar
 
 
-@since(3.0)

Review comment:
       Also, it seems like `since` injected `versionadded` can render 
incorrectly, even if there is no format error. For example 
`Transformer.transform` renders like this, when decorator is used.
   
   
![Transformer.transform](https://user-images.githubusercontent.com/1554276/98161970-e8ab9a80-1ee0-11eb-92bf-4af57639de28.png)
   
   ```python
       @since("1.3.0")
       def transform(self, dataset, params=None):
           """
           Transforms the input dataset with optional parameters.
   
           Parameters
           ----------
           dataset : :py:class:`pyspark.sql.DataFrame`
               input dataset
           params : dict, optional
               an optional param map that overrides embedded params.
   
           Returns
           -------
           :py:class:`pyspark.sql.DataFrame`
               transformed dataset
           """
           ...
   ```




----------------------------------------------------------------
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