| 246 | } |
| 247 | |
| 248 | String parseKeyNameFromImplicitColName(const String & implicit_col, const String & map_col) |
| 249 | { |
| 250 | String prefix = getMapKeyPrefix(map_col); |
| 251 | if (!startsWith(implicit_col, prefix)) |
| 252 | throw Exception(ErrorCodes::INVALID_IMPLICIT_COLUMN_NAME, "Invalid implicit column {} when parsing key", implicit_col); |
| 253 | return implicit_col.substr(prefix.size(), implicit_col.size() - prefix.size()); |
| 254 | } |
| 255 | |
| 256 | String parseImplicitColumnFromImplicitFileName(const String & implicit_file_name, const String & map_col) |
| 257 | { |
no test coverage detected