| 195 | } |
| 196 | |
| 197 | static inline void TrimAndRemoveEmptyString(vector<string>& values) { |
| 198 | int i = 0; |
| 199 | while (i < values.size()) { |
| 200 | trim(values[i]); |
| 201 | if (values[i].length() == 0) { |
| 202 | values.erase(values.begin() + i); |
| 203 | } else { |
| 204 | i++; |
| 205 | } |
| 206 | } |
| 207 | } |
| 208 | |
| 209 | // Returns the TImpalaQueryOptions enum for the given "key". Input is case insensitive. |
| 210 | // Return -1 if the input is an invalid option. |
no test coverage detected