| 260 | } |
| 261 | |
| 262 | String getMapFileNameFromImplicitFileName(const String & implicit_file_name) |
| 263 | { |
| 264 | String map_name = parseMapNameFromImplicitFileName(implicit_file_name); |
| 265 | auto extension_loc = implicit_file_name.find('.'); /// only extension contain dot, other dots in column name are escaped. |
| 266 | if (extension_loc == String::npos) |
| 267 | throw Exception(ErrorCodes::INVALID_IMPLICIT_COLUMN_FILE_NAME, "Invalid file name of implicit column: {}", implicit_file_name); |
| 268 | return escapeForFileName(map_name) + implicit_file_name.substr(extension_loc, implicit_file_name.size() - extension_loc); |
| 269 | } |
| 270 | |
| 271 | std::pair<bool, String> mayBeMapKVReservedKeys(const String & name) |
| 272 | { |
no test coverage detected