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

Function client_factory

tests/util/compute_table_stats.py:173–179  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

171
172 @contextmanager
173 def client_factory():
174 impala_client = create_connection(args.impalad,
175 use_kerberos=args.use_kerberos, use_ssl=args.use_ssl, protocol='hs2',
176 collect_profile_and_log=False)
177 impala_client.connect()
178 yield impala_client
179 impala_client.close()
180
181 compute_stats(client_factory, db_names=db_names, table_names=table_names,
182 exclude_table_names=exclude_table_names,

Callers 2

compute_stats_tableFunction · 0.85
compute_statsFunction · 0.85

Calls 3

create_connectionFunction · 0.90
closeMethod · 0.65
connectMethod · 0.45

Tested by

no test coverage detected