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

Method clone_table

tests/common/impala_test_suite.py:1429–1434  ·  view source on GitHub ↗
(self, src_tbl, dst_tbl, recover_partitions, vector)

Source from the content-addressed store, hash-verified

1427 return result
1428
1429 def clone_table(self, src_tbl, dst_tbl, recover_partitions, vector):
1430 src_loc = self._get_table_location(src_tbl, vector)
1431 self.client.execute("create external table {0} like {1} location '{2}'"
1432 .format(dst_tbl, src_tbl, src_loc))
1433 if recover_partitions:
1434 self.client.execute("alter table {0} recover partitions".format(dst_tbl))
1435
1436 def appx_equals(self, a, b, diff_perc):
1437 """Returns True if 'a' and 'b' are within 'diff_perc' percent of each other,

Calls 3

_get_table_locationMethod · 0.95
executeMethod · 0.45
formatMethod · 0.45

Tested by

no test coverage detected