mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-20 00:30:49 +00:00
Fix trash
This commit is contained in:
parent
baf0fa1458
commit
db9026b5ac
23
src/Parsers/ASTDescribeCacheQuery.cpp
Normal file
23
src/Parsers/ASTDescribeCacheQuery.cpp
Normal file
@ -0,0 +1,23 @@
|
||||
#include <Parsers/ASTDescribeCacheQuery.h>
|
||||
#include <Common/quoteString.h>
|
||||
|
||||
|
||||
namespace DB
|
||||
{
|
||||
|
||||
String ASTDescribeCacheQuery::getID(char) const { return "DescribeCacheQuery"; }
|
||||
|
||||
ASTPtr ASTDescribeCacheQuery::clone() const
|
||||
{
|
||||
auto res = std::make_shared<ASTDescribeCacheQuery>(*this);
|
||||
cloneOutputOptions(*res);
|
||||
return res;
|
||||
}
|
||||
|
||||
void ASTDescribeCacheQuery::formatQueryImpl(const FormatSettings & settings, FormatState &, FormatStateStacked) const
|
||||
{
|
||||
settings.ostr << (settings.hilite ? hilite_keyword : "") << "DESCRIBE FILESYSTEM CACHE" << (settings.hilite ? hilite_none : "")
|
||||
<< " " << quoteString(cache_name);
|
||||
}
|
||||
|
||||
}
|
@ -1,6 +1,8 @@
|
||||
#pragma once
|
||||
|
||||
#include <Parsers/ASTQueryWithOutput.h>
|
||||
|
||||
|
||||
namespace DB
|
||||
{
|
||||
|
||||
@ -9,20 +11,11 @@ class ASTDescribeCacheQuery : public ASTQueryWithOutput
|
||||
public:
|
||||
String cache_name;
|
||||
|
||||
String getID(char) const override { return "DescribeCacheQuery"; }
|
||||
|
||||
ASTPtr clone() const override
|
||||
{
|
||||
auto res = std::make_shared<ASTDescribeCacheQuery>(*this);
|
||||
cloneOutputOptions(*res);
|
||||
return res;
|
||||
}
|
||||
String getID(char) const override;
|
||||
ASTPtr clone() const override;
|
||||
|
||||
protected:
|
||||
void formatQueryImpl(const FormatSettings & settings, FormatState &, FormatStateStacked) const override
|
||||
{
|
||||
settings.ostr << (settings.hilite ? hilite_keyword : "") << "DESCRIBE FILESYSTEM CACHE" << (settings.hilite ? hilite_none : "") << " " << cache_name;
|
||||
}
|
||||
void formatQueryImpl(const FormatSettings & settings, FormatState &, FormatStateStacked) const override;
|
||||
};
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user