#NEWLINE# def compile( self ) : #NEWLINE# #INDENT# buf = StringIO ( ) #NEWLINE# buf . write ( self . _create_line ( ) ) #NEWLINE# props = self . _get_table_properties ( ) #NEWLINE# buf . write ( '\n' ) #NEWLINE# buf . write ( ddl . format_tblproperties ( props ) ) #NEWLINE# select_query = self . select . compile ( ) #NEWLINE# buf . write ( ' AS\n{0}' . format ( select_query ) ) #NEWLINE# return buf . getvalue ( )