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



##########
File path: python/pyspark/sql/catalog.py
##########
@@ -29,31 +31,35 @@
 Column = namedtuple("Column", "name description dataType nullable isPartition 
isBucket")
 Function = namedtuple("Function", "name description className isTemporary")

Review comment:
       We should probably have these two (as well as `Database` and `Table`)  
annotated here. If we're going to in-line all annotations, it will require 
choosing a convention. Personally, I prefer 3.6 syntax:
   
   ```python
   class Coulumn(NamedTuple):
       name: str
       description: str
       dataType: str
       nullable: bool
       isPartition: bool
       isBucket: bool
   ```




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