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

Method setup_method

tests/metadata/test_load.py:123–132  ·  view source on GitHub ↗
(self, method)

Source from the content-addressed store, hash-verified

121 super().teardown_method(method)
122
123 def setup_method(self, method):
124 super().setup_method(method)
125 # Defensively clean the data dirs if they exist.
126 self._clean_test_tables()
127
128 self.filesystem_client.make_dir(TMP_STAGING_PATH)
129 self.filesystem_client.copy(ALLTYPES_PATH, "{0}/100101.txt".format(TMP_STAGING_PATH))
130
131 self.client.execute("create table functional.{0} like functional.alltypesnopart"
132 " location '{1}/{0}'".format(TEST_TBL_NOPART_EXT, WAREHOUSE))
133
134 def test_load(self):
135 self.execute_query_expect_success(self.client, "load data inpath '{0}/100101.txt'"

Callers

nothing calls this directly

Calls 6

_clean_test_tablesMethod · 0.95
setup_methodMethod · 0.45
make_dirMethod · 0.45
copyMethod · 0.45
formatMethod · 0.45
executeMethod · 0.45

Tested by

no test coverage detected