mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-04 13:32:13 +00:00
59844b0a9d
Accepts CH client queries in the form of SHOW FUNCTIONS [LIKE | ILIKE '< pattern>'] Retrieves all columns from `functions` table in system database. Fixes #52757
28 lines
510 B
C++
28 lines
510 B
C++
#pragma once
|
|
|
|
#include <Interpreters/IInterpreter.h>
|
|
#include <Parsers/IAST_fwd.h>
|
|
|
|
namespace DB
|
|
{
|
|
|
|
class Context;
|
|
|
|
class InterpreterShowFunctionsQuery : public IInterpreter, WithMutableContext
|
|
{
|
|
public:
|
|
InterpreterShowFunctionsQuery(const ASTPtr & query_ptr_, ContextMutablePtr context_);
|
|
|
|
BlockIO execute() override;
|
|
|
|
bool ignoreQuota() const override { return true; }
|
|
bool ignoreLimits() const override { return true; }
|
|
|
|
private:
|
|
ASTPtr query_ptr;
|
|
|
|
String getRewrittenQuery();
|
|
};
|
|
|
|
}
|