ClickHouse/src/Interpreters/InterpreterShowEngineQuery.h

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

30 lines
731 B
C++
Raw Normal View History

2023-01-31 15:35:10 +00:00
#pragma once
#include <Interpreters/IInterpreter.h>
#include <Parsers/IAST_fwd.h>
namespace DB
{
/** Return list of all engines
*/
class InterpreterShowEnginesQuery : public IInterpreter, WithMutableContext
{
public:
InterpreterShowEnginesQuery(const ASTPtr & query_ptr_, ContextMutablePtr context_)
: WithMutableContext(context_), query_ptr(query_ptr_) {}
BlockIO execute() override;
/// We ignore the quota and limits here because execute() will rewrite a show query as a SELECT query and then
2023-02-01 01:57:58 +00:00
/// the SELECT query will check the quota and limits.
2023-01-31 15:35:10 +00:00
bool ignoreQuota() const override { return true; }
bool ignoreLimits() const override { return true; }
private:
ASTPtr query_ptr;
};
}