mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-25 09:02:00 +00:00
Added comments
This commit is contained in:
parent
494ec4aecc
commit
ad2052e8e5
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user