ClickHouse/dbms/src/Storages/System/StorageSystemTableFunctions.cpp

22 lines
588 B
C++
Raw Normal View History

#include <Storages/System/StorageSystemTableFunctions.h>
#include <TableFunctions/TableFunctionFactory.h>
namespace DB
{
NamesAndTypesList StorageSystemTableFunctions::getNamesAndTypes()
{
return {{"name", std::make_shared<DataTypeString>()}};
}
void StorageSystemTableFunctions::fillData(MutableColumns & res_columns, const Context &, const SelectQueryInfo &) const
{
2019-07-29 13:50:13 +00:00
const auto & functions_names = TableFunctionFactory::instance().getAllRegisteredNames();
2019-08-03 11:02:40 +00:00
for (const auto & function_name : functions_names)
{
2019-08-03 11:02:40 +00:00
res_columns[0]->insert(function_name);
}
}
}