(self, aux_table, query, index_attrs=False)
:param aux_table: (AuxTable) auxiliary table to generate
        :param query: (str) SQL query whose result is used for generating the auxiliary table.
:param aux_table: (AuxTable) auxiliary table to generate
        :param query: (str) SQL query whose result is used for generating the auxiliary table.
: param aux_table : ( AuxTable ) auxiliary table to generate : param query : ( str ) SQL query whose result is used for generating the auxiliary table .
def generate_aux_table_sql(self, aux_table, query, index_attrs=False):
        """
        :param aux_table: (AuxTable) auxiliary table to generate
        :param query: (str) SQL query whose result is used for generating the auxiliary table.
        """
        try:
            self.aux_table[aux_table] = Table(aux_table.name, Source.SQL, table_query=query, db_engine=self.engine)
            if index_attrs:
                self.aux_table[aux_table].create_df_index(index_attrs)
                self.aux_table[aux_table].create_db_index(self.engine, index_attrs)
        except Exception:
            logging.error('generating aux_table %s', aux_table.name)
            raise
def generate_aux_table_sql ( self , aux_table , query , index_attrs = False ) : try : self . aux_table [ aux_table ] = Table ( aux_table . name , Source . SQL , table_query = query , db_engine = self . engine ) if index_attrs : self . aux_table [ aux_table ] . create_df_index ( index_attrs ) self . aux_table [ aux_table ] . create_db_index ( self . engine , index_attrs ) except Exception : logging . error ( 'generating aux_table %s' , aux_table . name ) raise