#NEWLINE# def partition_schema( self ) : #NEWLINE# #INDENT# '\n        For partitioned tables, return the schema (names and types) for the\n        partition columns\n\n        Returns\n        -------\n        partition_schema : ibis Schema\n        ' #NEWLINE# schema = self . schema ( ) #NEWLINE# name_to_type = dict ( zip ( schema . names , schema . types ) ) #NEWLINE# result = self . partitions ( ) #NEWLINE# partition_fields = [ ] #NEWLINE# for x in result . columns : #NEWLINE# #INDENT# if ( x not in name_to_type ) : #NEWLINE# #INDENT# break #NEWLINE# #UNINDENT# partition_fields . append ( ( x , name_to_type [ x ] ) ) #NEWLINE# #UNINDENT# ( pnames , ptypes ) = zip ( * partition_fields ) #NEWLINE# return dt . Schema ( pnames , ptypes )