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

Method set_configuration_option

tests/common/impala_connection.py:413–422  ·  view source on GitHub ↗
(self, name, value, is_log_sql=True)

Source from the content-addressed store, hash-verified

411 return self.__host_port
412
413 def set_configuration_option(self, name, value, is_log_sql=True):
414 # Only set the option if it's not already set to the same value.
415 name = name.lower()
416 value = str(value)
417 if self.__beeswax_client.get_query_option(name) != value:
418 self.__beeswax_client.set_query_option(name, value)
419 if is_log_sql:
420 self.log_client("\n\nset {0}={1};\n".format(name, value))
421 return True
422 return False
423
424 def clear_configuration(self):
425 self.__beeswax_client.clear_query_options()

Callers 1

clear_configurationMethod · 0.95

Calls 4

get_query_optionMethod · 0.80
set_query_optionMethod · 0.80
log_clientMethod · 0.45
formatMethod · 0.45

Tested by

no test coverage detected