def compile(self): buf = StringIO() buf.write(self._create_line()) schema = ddl.format_schema(self.schema) buf.write('\n{0}'.format(schema)) props = self._get_table_properties() buf.write('\n') buf.write(ddl.format_tblproperties(props)) return buf.getvalue()
def compile(self): return '{}\n{}\n{}'.format( self._create_line(), ddl.format_schema(self.schema), ddl.format_tblproperties(self._get_table_properties()), )