Added comments

This commit is contained in:
Maksim Kita 2021-09-21 02:23:34 +03:00
parent 494ec4aecc
commit ad2052e8e5

View File

@ -31,6 +31,9 @@ namespace
const char * ASTSystemQuery::typeToString(Type type)
{
/** During parsing if SystemQuery is not parsed properly it is added to Expected variants as description check IParser.h.
* Description string must be statically allocated.
*/
static std::vector<std::string> type_index_to_type_name = getTypeIndexToTypeName();
const auto & type_name = type_index_to_type_name[static_cast<UInt64>(type)];
return type_name.data();