mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-23 08:02:02 +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>();
|
|
}
|
|
|
|
}
|