mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-11 08:52:06 +00:00
17 lines
311 B
C++
17 lines
311 B
C++
|
#include <Parsers/isDiskFunction.h>
|
||
|
#include <Parsers/ASTFunction.h>
|
||
|
|
||
|
namespace DB
|
||
|
{
|
||
|
|
||
|
bool isDiskFunction(ASTPtr ast)
|
||
|
{
|
||
|
if (!ast)
|
||
|
return false;
|
||
|
|
||
|
const auto * function = ast->as<ASTFunction>();
|
||
|
return function && function->name == "disk" && function->arguments->as<ASTExpressionList>();
|
||
|
}
|
||
|
|
||
|
}
|