MCPcopy Create free account
hub / github.com/apache/impala / compute_stats

Method compute_stats

tests/comparison/db_connection.py:904–911  ·  view source on GitHub ↗
(self, table_name=None)

Source from the content-addressed store, hash-verified

902 pass
903
904 def compute_stats(self, table_name=None):
905 if table_name:
906 self.execute("ANALYZE TABLE %s COMPUTE STATISTICS" % table_name)
907 self.execute("ANALYZE TABLE %s COMPUTE STATISTICS FOR COLUMNS" % table_name)
908 else:
909 for table_name in self.list_table_names():
910 self.execute("ANALYZE TABLE %s COMPUTE STATISTICS" % table_name)
911 self.execute("ANALYZE TABLE %s COMPUTE STATISTICS FOR COLUMNS" % table_name)
912
913
914class HiveConnection(ImpalaConnection):

Callers 2

loadFunction · 0.45
populate_dbMethod · 0.45

Calls 2

list_table_namesMethod · 0.80
executeMethod · 0.45

Tested by

no test coverage detected