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.
| 250 | // TQueryOptionsToMap() will output the numerical values, and we need to parse its output |
| 251 | // configuration. |
| 252 | Status 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 | |
| 262 | Status impala::SetQueryOption(TImpalaQueryOptions::type option, const string& value, |
| 263 | TQueryOptions* query_options, QueryOptionsMask* set_query_options_mask) { |
nothing calls this directly
no test coverage detected