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