def compute_stats(self, name, database=None, incremental=False,
                      async=False):
        # TODO async + cancellation
        if async:
            raise NotImplementedError

        maybe_inc = 'INCREMENTAL ' if incremental else ''
        cmd = 'COMPUTE {0}STATS'.format(maybe_inc)

        stmt = self._table_command(cmd, name, database=database)
        self._execute(stmt)
Issue COMPUTE STATS command for a given table
dataset/ETHPy150Open cloudera/ibis/ibis/impala/client.py/ImpalaClient.compute_stats