mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-30 11:32:03 +00:00
17 lines
321 B
C++
17 lines
321 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.starts_with("disk") && function->arguments->as<ASTExpressionList>();
|
|
}
|
|
|
|
}
|