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

Method prepare

tests/comparison/leopard/job.py:94–112  ·  view source on GitHub ↗

Prepares the environment and connects to Postgres and Impala running inside the Docker container.

(self)

Source from the content-addressed store, hash-verified

92 return result
93
94 def prepare(self):
95 '''Prepares the environment and connects to Postgres and Impala running inside the
96 Docker container.
97 '''
98 LOG.info('Starting Job Preparation')
99 self.impala_env.prepare()
100 LOG.info('Job Preparation Complete')
101
102 self.ref_connection = PostgresqlConnection(
103 user_name=POSTGRES_USER_NAME,
104 password=None,
105 host_name=self.impala_env.host,
106 port=self.impala_env.postgres_port,
107 db_name=POSTGRES_DATABASE_NAME)
108 LOG.info('Created ref_connection')
109
110 self.start_impala()
111
112 self.git_hash = self.impala_env.get_git_hash()
113
114 def get_stack(self):
115 stack_trace = self.impala_env.get_stack()

Callers 2

startMethod · 0.95
run_queryMethod · 0.95

Calls 4

start_impalaMethod · 0.95
get_git_hashMethod · 0.80
prepareMethod · 0.65

Tested by

no test coverage detected