HyukjinKwon commented on code in PR #46975:
URL: https://github.com/apache/spark/pull/46975#discussion_r1642029978


##########
python/pyspark/sql/types.py:
##########
@@ -586,7 +586,10 @@ def fromInternal(self, micros: int) -> 
Optional[datetime.timedelta]:
 
 
 class YearMonthIntervalType(AnsiIntervalType):
-    """YearMonthIntervalType, represents year-month intervals of the SQL 
standard"""
+    """YearMonthIntervalType, represents year-month intervals of the SQL 
standard
+
+    Note that this data type doesn't support collection: df.collect/take/head.

Review Comment:
   Let's use `Note` section in numpydoc 
(https://numpydoc.readthedocs.io/en/latest/format.html#notes)



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

To unsubscribe, e-mail: [email protected]

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