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

Method SetQueryOption

be/src/service/query-options.cc:252–260  ·  view source on GitHub ↗

Note that we allow numerical values for boolean and enum options. This is because TQueryOptionsToMap() will output the numerical values, and we need to parse its output configuration.

Source from the content-addressed store, hash-verified

250// TQueryOptionsToMap() will output the numerical values, and we need to parse its output
251// configuration.
252Status impala::SetQueryOption(const string& key, const string& value,
253 TQueryOptions* query_options, QueryOptionsMask* set_query_options_mask) {
254 int option_int = GetQueryOptionForKey(key);
255 if (option_int < 0) {
256 return Status(Substitute("Invalid query option: $0", key));
257 }
258 return SetQueryOption(static_cast<TImpalaQueryOptions::type>(option_int),
259 value, query_options, set_query_options_mask);
260}
261
262Status impala::SetQueryOption(TImpalaQueryOptions::type option, const string& value,
263 TQueryOptions* query_options, QueryOptionsMask* set_query_options_mask) {

Callers

nothing calls this directly

Calls 15

GetQueryOptionForKeyFunction · 0.85
SubstituteFunction · 0.85
ResetQueryOptionFunction · 0.85
IsTrueFunction · 0.85
DebugActionVerifyOnlyFunction · 0.85
maxFunction · 0.85
GetThriftEnumFunction · 0.85
PrintValueFunction · 0.85
iequalsFunction · 0.85
TrimStringFunction · 0.85
TrimAndRemoveEmptyStringFunction · 0.85

Tested by

no test coverage detected