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

Function parseKeyNameFromImplicitColName

src/DataTypes/MapHelpers.cpp:248–254  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

246}
247
248String 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
256String parseImplicitColumnFromImplicitFileName(const String & implicit_file_name, const String & map_col)
257{

Callers 7

writeNewPartMethod · 0.85
blockJoinBlocksMethod · 0.85
resumableReadRowsMethod · 0.85
writeBlockFunction · 0.85
reconstructAlterQueryFunction · 0.85
colNameForSqlFunction · 0.85

Calls 4

getMapKeyPrefixFunction · 0.85
startsWithFunction · 0.50
ExceptionClass · 0.50
sizeMethod · 0.45

Tested by

no test coverage detected