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

Function splitName

src/DataTypes/NestedUtils.cpp:46–53  ·  view source on GitHub ↗

Name can be treated as compound if it contains dot (.) in the middle. */

Source from the content-addressed store, hash-verified

44/** Name can be treated as compound if it contains dot (.) in the middle.
45 */
46std::pair<std::string, std::string> splitName(const std::string & name)
47{
48 auto idx = name.find_first_of('.');
49 if (idx == std::string::npos || idx == 0 || idx + 1 == name.size())
50 return {name, {}};
51
52 return {name.substr(0, idx), name.substr(idx + 1)};
53}
54
55
56std::string extractTableName(const std::string & nested_name)

Callers 13

requiresObjectColumnsFunction · 0.85
createActionMethod · 0.85
extractTableNameFunction · 0.85
getSubcolumnsOfNestedFunction · 0.85
collectFunction · 0.85
convertToSubcolumnsFunction · 0.85
validateArraySizesFunction · 0.85
extractColumnMethod · 0.85
visitMethod · 0.85
prepareMethod · 0.85

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected