2018-07-20 10:00:56 +00:00
|
|
|
#include <Storages/System/StorageSystemTableFunctions.h>
|
|
|
|
|
|
|
|
#include <TableFunctions/TableFunctionFactory.h>
|
|
|
|
namespace DB
|
|
|
|
{
|
2018-07-24 14:28:56 +00:00
|
|
|
|
|
|
|
NamesAndTypesList StorageSystemTableFunctions::getNamesAndTypes()
|
|
|
|
{
|
|
|
|
return {{"name", std::make_shared<DataTypeString>()}};
|
|
|
|
}
|
|
|
|
|
|
|
|
void StorageSystemTableFunctions::fillData(MutableColumns & res_columns, const Context &, const SelectQueryInfo &) const
|
2018-07-20 10:00:56 +00:00
|
|
|
{
|
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)
|
2018-07-20 10:00:56 +00:00
|
|
|
{
|
2019-08-03 11:02:40 +00:00
|
|
|
res_columns[0]->insert(function_name);
|
2018-07-20 10:00:56 +00:00
|
|
|
}
|
|
|
|
}
|
2018-07-24 14:28:56 +00:00
|
|
|
|
2018-07-20 10:00:56 +00:00
|
|
|
}
|