| 341 | } |
| 342 | |
| 343 | bool isMapImplicitDataFileNameOfSpecialMapName(const String & file_name, const String map_col) |
| 344 | { |
| 345 | if (isMapBaseFile(file_name)) |
| 346 | { |
| 347 | auto extension_loc = file_name.find('.'); /// only extension contain dot, other dots in column name are escaped. |
| 348 | if (extension_loc == String::npos) |
| 349 | throw Exception(ErrorCodes::INVALID_IMPLICIT_COLUMN_FILE_NAME, "Invalid implicit column file name {}", file_name); |
| 350 | |
| 351 | return file_name.substr(extension_loc) == DATA_FILE_EXTENSION; |
| 352 | } |
| 353 | |
| 354 | return isMapImplicitDataFileNameNotBaseOfSpecialMapName(file_name, map_col); |
| 355 | } |
| 356 | |
| 357 | } |
no test coverage detected