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
|
|
|
{
|
|
|
|
const auto & functions = TableFunctionFactory::instance().getAllTableFunctions();
|
|
|
|
for (const auto & pair : functions)
|
|
|
|
{
|
|
|
|
res_columns[0]->insert(pair.first);
|
|
|
|
}
|
|
|
|
}
|
2018-07-24 14:28:56 +00:00
|
|
|
|
2018-07-20 10:00:56 +00:00
|
|
|
}
|