MCPcopy Create free account
hub / github.com/ByConity/ByConity / isMapImplicitDataFileNameOfSpecialMapName

Function isMapImplicitDataFileNameOfSpecialMapName

src/DataTypes/MapHelpers.cpp:343–355  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

341}
342
343bool 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}

Callers 1

genMapChecksumsFunction · 0.85

Calls 4

isMapBaseFileFunction · 0.85
ExceptionClass · 0.50
findMethod · 0.45

Tested by

no test coverage detected