mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-14 10:22:10 +00:00
33 lines
684 B
C++
33 lines
684 B
C++
|
#pragma once
|
||
|
|
||
|
#include <Interpreters/IInterpreter.h>
|
||
|
#include <Parsers/IAST_fwd.h>
|
||
|
|
||
|
|
||
|
namespace DB
|
||
|
{
|
||
|
|
||
|
class Context;
|
||
|
|
||
|
|
||
|
/// Returns a list of columns which meet some conditions.
|
||
|
class InterpreterShowColumnsQuery : public IInterpreter, WithMutableContext
|
||
|
{
|
||
|
public:
|
||
|
InterpreterShowColumnsQuery(const ASTPtr & query_ptr_, ContextMutablePtr context_);
|
||
|
|
||
|
BlockIO execute() override;
|
||
|
|
||
|
/// Ignore quota and limits here because execute() produces a SELECT query which checks quotas/limits by itself.
|
||
|
bool ignoreQuota() const override { return true; }
|
||
|
bool ignoreLimits() const override { return true; }
|
||
|
|
||
|
private:
|
||
|
ASTPtr query_ptr;
|
||
|
|
||
|
String getRewrittenQuery();
|
||
|
};
|
||
|
|
||
|
|
||
|
}
|